diff --git a/dist/actions/setup-cpp.js b/dist/actions/setup-cpp.js index c20a4f56..02038cca 100644 --- a/dist/actions/setup-cpp.js +++ b/dist/actions/setup-cpp.js @@ -1,18 +1,18 @@ #!/usr/bin/env node -let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rF(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rj.sync(e.command,{path:n[rG({env:n})],pathExt:t?n1.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n1.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iI&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rD(e,t,r),i=rt.spawn(n.command,n.args,n.options);return rK.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ra).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ra).cwd(),path:n=c(ra).env[v()],execPath:i=c(ra).execPath}=e,o=i instanceof URL?c(rl).fileURLToPath(i):i,s=r instanceof URL?c(rl).fileURLToPath(r):r,a=c(ro).resolve(s),l=[];for(;t!==a;)l.push(c(ro).join(a,"node_modules/.bin")),t=a,a=c(ro).resolve(a,"..");return l.push(c(ro).resolve(s,o,"..")),[...l,n].join(c(ro).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r0(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=rQ.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await od(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new of());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oG(e,t,r),o=o$(e,t),s=oA(e,t);oM(s,i.options),oa(i.options);try{n=c(rs).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rs).ChildProcess)();return oR(e,Promise.reject(iV({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oO(n),l=os(n,i.options,a),u=ol(n,i.options,l),p={isCanceled:!1};n.kill=i7.bind(null,n.kill.bind(n)),n.cancel=oi.bind(null,n,p);let d=rz(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await ob(n,i.options,u),f=oB(i.options,l),h=oB(i.options,c),m=oB(i.options,d);if(e||0!==t||null!==r){let l=iV({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return oE(n,i.options),n.all=oy(n,i.options),op(n),oR(n,d),n;}function b(e,t,r){let n;let i=oG(e,t,r),o=o$(e,t),s=oA(e,t);oM(s,i.options);let a=ov(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iV({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oB(i.options,n.stdout,n.error),u=oB(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iV({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function I(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(rT).sync("sudo",{nothrow:!0});}function S(e,t=[],r=oq){return I()?function(e,t){let[r,...n]=o_(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function R(e,t=[],r=oq){return I()?function(e,t){let[r,...n]=o_(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function C(e){if(("linux"===process.platform||"darwin"===process.platform)&&I()&&void 0!==process.env.SUDO_USER){let t=c(n2).statSync(e).isDirectory();await R("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oq);}}function $(e){let t=function(){if(I()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n1.join)("/Users/",process.env.SUDO_USER):(0,n1.join)("/home/",process.env.SUDO_USER);{let e=(0,n0.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oX,t);}function A(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sd(n,i.options,u),f=s_(i.options,l),h=s_(i.options,c),m=s_(i.options,d);if(e||0!==t||null!==r){let l=oJ({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sl(n,i.options),n.all=sc(n,i.options),sn(n),sm(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(rT).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(rT).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function M(e,t,r=sL){let n={...sL,...r},i=function(e,t=!1){let r=t?c(nm)(e):e;return c(nv)(r,'"',"\\");}(t??"",n.shouldEscapeSpace);try{if(rx.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nf.exportVariable)(e,i);}catch(t){(0,rb.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function F(e){if(!(sk.some(t=>t.test(e))&&(process.env.PATH?.split(n1.delimiter)??[]).includes(e))){process.env.PATH=`${e}${n1.delimiter}${process.env.PATH}`;try{if(rx.GITHUB_ACTIONS)try{(0,nf.addPath)(e);}catch(t){(0,rb.error)(t),await B(e);}else await B(e);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nf.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?((0,n2.appendFileSync)(sD,` +let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rH(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rG.sync(e.command,{path:n[rV({env:n})],pathExt:t?n4.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n4.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iO&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rM(e,t,r),i=ri.spawn(n.command,n.args,n.options);return rY.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ru).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ru).cwd(),path:n=c(ru).env[v()],execPath:i=c(ru).execPath}=e,o=i instanceof URL?c(rp).fileURLToPath(i):i,s=r instanceof URL?c(rp).fileURLToPath(r):r,a=c(rl).resolve(s),l=[];for(;t!==a;)l.push(c(rl).join(a,"node_modules/.bin")),t=a,a=c(rl).resolve(a,"..");return l.push(c(rl).resolve(s,o,"..")),[...l,n].join(c(rl).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r3(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r1.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await om(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new ov());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oV(e,t,r),o=oN(e,t),s=oP(e,t);oB(s,i.options),ou(i.options);try{n=c(rc).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rc).ChildProcess)();return oC(e,Promise.reject(iK({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=o$(n),l=oc(n,i.options,a),u=op(n,i.options,l),p={isCanceled:!1};n.kill=or.bind(null,n.kill.bind(n)),n.cancel=oa.bind(null,n,p);let d=rJ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await oR(n,i.options,u),f=oq(i.options,l),h=oq(i.options,c),m=oq(i.options,d);if(e||0!==t||null!==r){let l=iK({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ox(n,i.options),n.all=ob(n,i.options),oh(n),oC(n,d),n;}function b(e,t,r){let n;let i=oV(e,t,r),o=oN(e,t),s=oP(e,t);oB(s,i.options);let a=oy(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iK({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oq(i.options,n.stdout,n.error),u=oq(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iK({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function I(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(rA).sync("sudo",{nothrow:!0});}function S(e,t=[],r=oz){return I()?function(e,t){let[r,...n]=oL(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function R(e,t=[],r=oz){return I()?function(e,t){let[r,...n]=oL(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function C(e){if(("linux"===process.platform||"darwin"===process.platform)&&I()&&void 0!==process.env.SUDO_USER){let t=c(n6).statSync(e).isDirectory();await R("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oz);}}function $(e){let t=function(){if(I()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n4.join)("/Users/",process.env.SUDO_USER):(0,n4.join)("/home/",process.env.SUDO_USER);{let e=(0,n3.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oW,t);}function A(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sm(n,i.options,u),f=sL(i.options,l),h=sL(i.options,c),m=sL(i.options,d);if(e||0!==t||null!==r){let l=o0({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sp(n,i.options),n.all=sd(n,i.options),ss(n),sE(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(rA).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(rA).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function M(e,t,r=sU){let n={...sU,...r},i=function(e,t=!1){let r=t?c(nE)(e):e;return c(ny)(r,'"',"\\");}(t??"",n.shouldEscapeSpace);try{if(rS.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nv.exportVariable)(e,i);}catch(t){(0,rR.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rR.error)(t),(0,nv.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function F(e){if(!(sj.some(t=>t.test(e))&&(process.env.PATH?.split(n4.delimiter)??[]).includes(e))){process.env.PATH=`${e}${n4.delimiter}${process.env.PATH}`;try{if(rS.GITHUB_ACTIONS)try{(0,nv.addPath)(e);}catch(t){(0,rR.error)(t),await B(e);}else await B(e);}catch(t){(0,rR.error)(t),(0,nv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nv.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?(await(0,rN.appendFile)(sM,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi -`),(0,nf.info)(`if not defined ${e} then ${e}="${n}" was added to "${sD}`)):((0,n2.appendFileSync)(sD,` +`),(0,nv.info)(`if not defined ${e} then ${e}="${n}" was added to "${sM}`)):(await(0,rN.appendFile)(sM,` export ${e}="${n}" -`),(0,nf.info)(`${e}="${n}" was added to "${sD}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nf.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),(0,n2.appendFileSync)(sD,` +`),(0,nv.info)(`${e}="${n}" was added to "${sM}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,rN.appendFile)(sM,` export PATH="${e}:$PATH" -`),(0,nf.info)(`"${e}" was added to "${sD}"`);return;default:return;}}async function H(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,nh.pathExists)(sD))&&!(0,n2.readFileSync)(sD,"utf8").includes(e)&&((0,n2.appendFileSync)(sD,` -${e} -`),(0,nf.info)(`Added ${e} to ${sD}`));let t=` +`),(0,nv.info)(`"${e}" was added to "${sM}"`);return;default:return;}}async function H(){if(sF)return;let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 -if [[ "$SOURCE_CPPRC" != 0 && -f "${sD}" ]]; then source "${sD}"; fi -`;try{let e=$("~/.profile");(await(0,nh.pathExists)(e))&&!(0,n2.readFileSync)(e,"utf-8").includes(t)&&((0,n2.appendFileSync)(e,t),(0,nf.info)(`${t} was added to ${e}`));let r=$("~/.bashrc");(await(0,nh.pathExists)(r))&&!(0,n2.readFileSync)(r,"utf-8").includes(t)&&((0,n2.appendFileSync)(r,t),(0,nf.info)(`${t} was added to ${r}`));}catch(e){(0,rb.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sU=!0;}async function V(){if(await(0,nh.pathExists)(sD)){let e=[...new Set((0,n2.readFileSync)(sD,"utf-8").split("\n").reverse())].reverse();(0,n2.writeFileSync)(sD,e.join("\n")),await C(sD);}}async function q(e,t=!1){let r;let n=z()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sM||t)&&(W(n),sM=!0),sF||(await Y(n),sF=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)S("add-apt-repository",["-y",e]);W(n);}let o=await Promise.all(e.map(e=>K(e.name,e.version)));try{S(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sG.some(e=>t.includes(e))&&((0,rb.warning)(`Failed to install packages ${o}. Retrying...`),S(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function X(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,ng.default)(e)}-${(0,ng.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function K(e,t){switch(await X(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${t??""}`);}}function z(){return null!==c(rT).sync("nala",{nothrow:!0});}function W(e){S(e,"nala"!==e?["update","-y"]:["update"]);}async function Y(e){S(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[Q(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),Q(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(M("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),M("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function J(){S("gpg",["-k"]);}async function Q(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nh.pathExists)(n))||(J(),await Promise.all(e.map(async e=>{await R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await R("chmod",["644",n]);}))),n;}catch(e){(0,rb.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function Z(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nh.pathExists)(r))||(J(),await q([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),S("chmod",["644",r])),r;}async function ee(e,t,r=40){return rx.GITHUB_ACTIONS?R("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sj(sD,` +if [[ "$SOURCE_CPPRC" != 0 && -f "${sM}" ]]; then source "${sM}"; fi +`;try{await Promise.all([V(),X(e),q(e)]);}catch(t){(0,rR.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${t}`);}sF=!0;}async function V(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,ng.pathExists)(sM))&&!(await(0,rN.readFile)(sM,"utf8")).includes(e)&&(await(0,rN.appendFile)(sM,` +${e} +`),(0,nv.info)(`Added ${e} to ${sM}`));}async function q(e){let t=$("~/.bashrc");(await(0,ng.pathExists)(t))&&!(await(0,rN.readFile)(t,"utf-8")).includes(e)&&(await(0,rN.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function X(e){let t=$("~/.profile");(await(0,ng.pathExists)(t))&&!(await(0,rN.readFile)(t,"utf-8")).includes(e)&&(await(0,rN.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function K(){if(await(0,ng.pathExists)(sM)){let e=[...new Set((await(0,rN.readFile)(sM,"utf-8")).split("\n").reverse())].reverse();await(0,rN.writeFile)(sM,e.join("\n")),await C(sM);}}async function z(e,t=!1){let r;let n=J()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rR.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sB||t)&&(Q(n),sB=!0),sH||(await Z(n),sH=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)S("add-apt-repository",["-y",e]);Q(n);}let o=await Promise.all(e.map(e=>Y(e.name,e.version)));try{S(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sV.some(e=>t.includes(e))&&((0,rR.warning)(`Failed to install packages ${o}. Retrying...`),S(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function W(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,nw.default)(e)}-${(0,nw.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function Y(e,t){switch(await W(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${t??""}`);}}function J(){return null!==c(rA).sync("nala",{nothrow:!0});}function Q(e){S(e,"nala"!==e?["update","-y"]:["update"]);}async function Z(e){S(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[et(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),et(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(M("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),M("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function ee(){S("gpg",["-k"]);}async function et(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,ng.pathExists)(n))||(ee(),await Promise.all(e.map(async e=>{await R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await R("chmod",["644",n]);}))),n;}catch(e){(0,rR.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function er(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,ng.pathExists)(r))||(ee(),await z([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),S("chmod",["644",r])),r;}async function en(e,t,r=40){return rS.GITHUB_ACTIONS?R("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sG(sM,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi -`));}async function et(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function er(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(rT).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,ny.dirname)(i)};let o=c(n1).join((0,n0.tmpdir)(),"setup-cpp","brew");await(0,nw.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n1.join)(o,"install.sh");return"linux"===process.platform&&(0,n2.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=en(),await F(t),{binDir:t};}function en(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ei(e,t,r=[]){(0,nf.info)(`Installing ${e} ${t??""} via brew`),sB&&null!==c(rT).sync("brew",{nothrow:!0})||(await er("","",process.arch),sB=!0);let n=en();return b((0,ny.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function eo(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(rT).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,ny.dirname)(i)};let o="powershell.exe",s=c(rT).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await F(a);let l=c(rT).sync("choco",{nothrow:!0});if(r=null!==l?(0,ny.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nh.pathExists)(r))return{binDir:r};}async function es(e,t,r=[]){(0,rb.info)(`Installing ${e} ${t??""} via chocolatey`),sH&&null!==c(rT).sync("choco",{nothrow:!0})||(await eo("","",process.arch),sH=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rb.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await F(o),{binDir:o};}async function ea(e){for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${r??""} via dnf`);return S("dnf",["-y","install",...(await Promise.all(e.map(e=>el(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function el(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rb.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ec(e,t,r){switch(process.platform){case"win32":return es("bazelisk",e);case"darwin":return ei("bazelisk",e);case"linux":if(k())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await ea([{name:"dnf-plugins-core"}]),S("dnf",["copr","enable","vbatts/bazel"]),ea([{name:"bazel4"}]);if(D()){let t=await Z("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return S("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),q([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eu(e,t,r){(0,rb.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(rT).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sV||"yay"===r||(S(n,["-Sy","--noconfirm"]),sV=!0),sq||"yay"===r||(S(n,["-S","--noconfirm","base-devel"]),sq=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):S(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await ep(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rb.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ep(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sX))r.push(e[1]);}catch(e){(0,rb.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ed(e,t){let r=[];t=t||sJ.arch();let n=sQ.join(eE(),e);if(sW.existsSync(n)){for(let e of sW.readdirSync(n))if(ev(e)){let i=sQ.join(n,e,t||"");sW.existsSync(i)&&sW.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ef(e){return nO(this,void 0,void 0,function*(){return e||(e=sQ.join(ey(),s3.default())),yield sz.mkdirP(e),e;});}function eh(e,t,r){return nO(this,void 0,void 0,function*(){let n=sQ.join(eE(),e,s0.clean(t)||t,r||"");sK.debug("destination "+n);let i=`${n}.complete`;return yield sz.rmRF(n),yield sz.rmRF(i),yield sz.mkdirP(n),n;});}function em(e,t,r){let n=sQ.join(eE(),e,s0.clean(t)||t,r||""),i=`${n}.complete`;sW.writeFileSync(i,""),sK.debug("finished caching tool");}function ev(e){let t=s0.clean(e)||"";sK.debug("isExplicit: "+t);let r=null!=s0.valid(t);return sK.debug("explicit? "+r),r;}function eg(e,t){let r="";sK.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s0.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s0.satisfies(i,t)){r=i;break;}}return r?sK.debug("matched: "+r):sK.debug("match not found"),r;}function eE(){let e=process.env.RUNNER_TOOL_CACHE||"";return t9.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ey(){let e=process.env.RUNNER_TEMP||"";return t9.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ew(e,t){let r=rv[e];return void 0!==r?r:t;}function ex(e,t,r){switch(process.platform){case"win32":return es("7zip",e);case"darwin":return ei("p7zip",e);case"linux":if(k())return eu("p7zip",e);if(L())return ea([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(D())return q([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,t){return await x(await eI(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await C(t),t;}async function eI(){return void 0===n&&(null===c(rT).sync("7z",{nothrow:!0})&&(await ex("","",process.arch)),n="7z"),n;}function eS(e,t){return eb(e,t);}function eR(e,t){return eb(e,t);}async function eO(e,t,r=["--strip-components=0"]){try{await(0,nw.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rb.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return C(t),t;}function eT(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new s9(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nx.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});s7||((0,rb.info)("Installing extraction dependencies"),"linux"===process.platform&&(k()?await Promise.all([eu("unzip"),eu("tar"),eu("xz")]):L()?await ea([{name:"unzip"},{name:"tar"},{name:"xz"}]):D()&&(await q([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),s7=!0),(0,rb.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,rb.info)(`Add ${d} to PATH`),await F(d),rx.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nx.cacheDir)(n,e,t)),{installDir:p,binDir:d};}function e$(e,t,r){let n=c(nL)(e)??e;switch(t){case"win32":{let t;let i=c(nk)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eR,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nk)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(nk)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eA(e,t,r){return eC("cmake",e,e$,t,r);}function e_(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nj.call(e,0):[];}function eN(e,t){return e===t||e!=e&&t!=t;}function eP(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eL(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eL(e.fn,eP(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=eP({isEqual:void 0===r?eN:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nU[r]||(t[r]=e[r]);return t;}(t)),d=new nM(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?e_(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:e_(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function ek(e,t){return new Promise(r=>{try{let n=(0,n6.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eD(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nB)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eU(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nG(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eD(e,r)){let e=await n(t,o);if(null!==e){if(await nG(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function ej(e,t=am){try{let r=await(0,nC.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(nL)(i)??void 0;}catch(e){console.error(e);return;}}async function eM(e,t,r=am){let n=await ej(e,r);return void 0!==n&&""!==t&&-1!==c(nB)(n,t);}function eF(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eG(e,t,r){let n=await eV(e,t,r);c(t9)(void 0!==n.bin);let i=n.bin;if(void 0===(await ez(i)))throw Error("pip was not installed correctly");return await eB(i),await eH(i),n;}async function eB(e){try{if(!(await e8(e)))try{await e5(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===tn("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e5(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eH(e){try{await e5(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e5(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eV(e,t,r){let n;let i=await eX(t);if(void 0!==i){let e=(0,ny.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rx.GITHUB_ACTIONS)try{(0,rb.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await ry("kqI8i");await o(e,t,r),i=await eX(t);let s=(0,ny.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rb.warning)(e.toString());}void 0===n&&(n=await eq(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eX(t),n.bin=i),n;}async function eq(e,t){let r;switch(process.platform){case"win32":{e?await es("python3",t,["--params=/InstallDir:"+e]):await es("python3",t);let n=await eX(e),i=(0,ny.dirname)(n);await F(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ei("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,ny.join)(e.stdout,"libexec","bin");await F(n);break;}case"linux":if(k())r=await eu("python",t);else if(L())r=await ea([{name:"python3",version:t}]);else if(D())r=await q([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eX(e){for(let t of["python3","python"]){let r=await eK(t,e);if(void 0!==r)return r;}}async function eK(e,t){try{if(void 0!==t){let r=(0,ny.join)(t,(0,ny.addExeExt)(e));if((await(0,nh.pathExists)(r))&&(await eM(r,ag.python)))return r;}for(let t of(await c(rT)(e,{nothrow:!0,all:!0}))??[])if(await eM(t,ag.python))return t;}catch{}}async function ez(e){let t=await eW();return void 0===t?((0,rb.info)("pip was not found. Installing pip"),await eJ(e),eW()):t;}async function eW(){for(let e of["pip3","pip"]){let t=await eY(e);if(void 0!==t)return t;}}async function eY(e){try{for(let t of(await c(rT)(e,{nothrow:!0,all:!0}))??[])if(null!==t&&(await eM(t,ag.pip)))return t;}catch{}}async function eJ(e){(await eQ(e))||(await tn("pip"),await eQ(e));}async function eQ(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rb.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rb.info)(e.toString());}}return!1;}async function eZ(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nC.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,ny.join)(r,"Scripts"),(0,ny.join)(r,"Scripts","bin"),(0,ny.join)(r,"bin")),[...new Set(t)];}function e0(e,t,r=null){return e1(t)&&"linux"===process.platform&&null!==r&&e in aE?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aE[e]):e1(t)&&e in av?av[e]:"true"===t?"":t??"";}function e1(e){return"true"===e||void 0===e;}async function e2(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rt.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e3(){try{if(!D())return null;{try{null===c(rT).sync("lsb_release",{nothrow:!0})&&(await q([{name:"lsb-release"}]));}catch{return e4();}let e=await(0,nV.getUbuntuVersion)();if(0===e.length)return e4();return e;}}catch(e){return(0,rb.warning)(e.toString()),null;}}function e4(){if(!("version"in c(n0)&&"function"==typeof c(n0).version))return null;let e=c(n0).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e6(e,t,r={}){return e5(await aI(),e,t,r);}async function e5(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await e8(e)),c=l?"pipx":"pip";if(await tt(e,t))try{(0,nf.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await ax(),i.PIPX_BIN_DIR=await ab()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nf.info)(`Failed to install ${t} via ${c}: ${e}.`),(await tn(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await tn(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ay(e),p=await tr(u,t);return await F(p),{binDir:p};}async function e8(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function e9(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=$("~/.local/pipx");if(await(0,nh.pathExists)(t))return t;switch(process.platform){case"win32":e=$("~/AppData/Local/pipx");break;case"darwin":e=$("~/Library/Application Support/pipx");break;default:e=$("~/.local/share/pipx");}return await ah(e),await ah((0,ny.join)(e,"trash")),await ah((0,ny.join)(e,"shared")),await ah((0,ny.join)(e,"venv")),e;}async function e7(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=$("~/.local/bin");return await F(e),await ah(e),e;}async function te(){let e=(await eG(e0("python",void 0,await aw()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function tt(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function tr(e,t){let r=(await Promise.all(e.map(e=>(0,nh.pathExists)((0,ny.join)(e,(0,ny.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(rT).sync((0,ny.addExeExt)(t),{nothrow:!0});return null!==n?(0,ny.dirname)(n):e[e.length-1];}function tn(e,t=!0){if("linux"===process.platform){if((0,nf.info)(`Installing ${e} via the system package manager`),k())return eu(t?"python-"+e:e);if(L())return ea([{name:t?"python3-"+e:e}]);if(D())return q([{name:t?"python3-"+e:e}]);}return null;}async function ti(e,t,r){switch(process.platform){case"win32":return await es("cppcheck",e),{binDir:await to()};case"darwin":return ei("cppcheck",e);case"linux":if(k())return eu("cppcheck",e);if(L())return ea([{name:"ccache",version:e}]);if(D())return q([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function to(){let e="C:/Program Files/Cppcheck";return await F(e),e;}async function ts(e,t,r){switch(process.platform){case"win32":return await es("graphviz",e),ta();case"darwin":return ei("graphviz",e);case"linux":if(k())return eu("graphviz",e);if(L())return ea([{name:"graphviz",version:e}]);if(D())return q([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ta(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await F(e),{binDir:e};}throw Error("Unsupported platform");}async function tl(e,t){let{ArchiveHdi:r}=await ry("jaABp"),n=new r(e);await n.read(async e=>{await e.extract((0,n1.join)(t,e.path));});}function tc(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nx.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eR,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tl,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tu(e,t,r){switch(process.platform){case"win32":{await c(nD)(()=>es("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});let t=await tp();return await ts(e0("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ei("doxygen",void 0);return aR()[0]>11&&(await ts(e0("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||k()||L()){if(k())n=await eu("doxygen",e);else if(L())return ea([{name:"doxygen",version:e}]);else if(D())n=await q([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(D())try{n=await eC("doxygen",e,tc,t,r);try{await q([{name:"libclang-cpp9"}]);}catch(e){(0,rb.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rb.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await q([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await ts(e0("graphviz",void 0,await aw()),"",r),n;}default:throw Error("Unsupported platform");}}async function tp(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nh.pathExists)((0,ny.join)(e,"doxygen.exe")))return await F(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function td(){if("darwin"===process.platform)try{let e=await(0,nC.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await M("SDKROOT",t.trim()):(0,rb.error)("SDKROOT not set");}catch(e){(0,rb.error)(e);}}function tf(e,t,r){if("win32"===t){let t=aO[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eb,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function th(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await es("gcc-arm-embedded",e));try{i=await eC("g++",e,tf,t,r);}catch(t){(0,rb.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tv(e,r);}break;case"darwin":i=await ei("gcc",e);break;case"linux":"x64"===r?k()?i=await eu("gcc",e):L()?i=await ea([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):D()&&(i=await q([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rb.info)(`Install g++-multilib because gcc for ${r} was requested`),k()?await eu("gcc-multilib",e):D()&&(await q([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tg(e,i.binDir,n),i;}async function tm(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return th(e,t,r);case"linux":k()?n=await eu("mingw-w64-gcc",e):L()?n=await ea([{name:"mingw64-gcc",version:e}]):D()&&(n=await q([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tv(e,t){let r;if(await es("mingw",e),"x64"===t&&(await(0,nh.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await F(r)):"ia32"===t&&(await(0,nh.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await F(r)):(await(0,nh.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tg(e,t,r=40){let n=[];if("win32"===process.platform)n.push(M("CC",(0,ny.addExeExt)(`${t}/gcc`)),M("CXX",(0,ny.addExeExt)(`${t}/g++`)));else{let i=c(nq)(c(nL)(e)??e);i>=5?(n.push(M("CC",`${t}/gcc-${i}`),M("CXX",`${t}/g++-${i}`)),D()&&n.push(ee("cc",`${t}/gcc-${i}`,r),ee("cxx",`${t}/g++-${i}`,r),ee("gcc",`${t}/gcc-${i}`,r),ee("g++",`${t}/g++-${i}`,r))):(n.push(M("CC",`${t}/gcc-${e}`),M("CXX",`${t}/g++-${e}`)),D()&&n.push(ee("cc",`${t}/gcc-${e}`,r),ee("cxx",`${t}/g++-${e}`,r),ee("gcc",`${t}/gcc-${e}`,r),ee("g++",`${t}/g++-${e}`,r)));}n.push(td()),rx.GITHUB_ACTIONS&&(await tE()),await Promise.all(n);}async function tE(){let e=(0,ny.join)(nX,"gcc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}function ty(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eR,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tw(e,t,r){return eC("ninja",e,ty,t,r);}function tx(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:eO};}function tb(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:tI};}async function tI(e,t){let r=await eO(e,t,["--strip-components=1"]),n=await tS();"linux"===process.platform&&(k()?await Promise.all([eu("libdwarf"),eu("libcurl-openssl")]):L()?await ea([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):D()&&(await q([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(rT).sync("patch",{nothrow:!0})){let e=(0,ny.join)(nK,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rb.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,ny.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tS(){let e=c(rT).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eA(e0("cmake",void 0,await aw()),(0,ny.join)($("~"),"cmake"),"");e=(0,ny.join)(t,"cmake");}return null===c(rT).sync("ninja",{nothrow:!0})&&(await tw(e0("ninja",void 0,await aw()),(0,ny.join)($("~"),"ninja"),"")),e;}async function tR(e,t,r){var n;let i;if("linux"!==process.platform){(0,rb.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await eC("kcov",s,tx,t,r),k()?await eu("binutils"):L()?await ea([{name:"binutils"}]):D()&&(await q([{name:"libbinutils"}]))):i=await eC("kcov",s,tb,t,r),i;}function tO(e){if(Object.values(ak).includes(e));else if(e in ak)return ak[e];return e;}function tT(e){let t;let r=tO(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rt.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nf.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n2.existsSync(n))return nf.info("Found with vswhere: "+n),n;nf.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(ak).includes(e));else for(let[t,r]of Object.entries(ak))if(r===e)return t;return e;}(e)]:aL;for(let e of aN)for(let t of i)for(let r of aP)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nf.info("Trying standard location: "+n),n2.existsSync(n))return nf.info("Found standard location: "+n),n;if(nf.info("Not found in standard locations"),n=`${a_}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n2.existsSync(n))return nf.info("Found VS 2015: "+n),n;throw nf.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tC(e,t,r,n,i,o,s){void 0!==t&&(await(0,nh.pathExists)(t))&&((0,rb.info)(`Adding ${t} to PATH`),await M("VCTargetsPath",t)),await nY(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function t$(e,t,r,n,i,o,s,a=aU){(0,nf.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aA(e)),e.addEventListener("abort",()=>{l(aA(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aT();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tA(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rb.error)(t),s.push(`${e} failed to install`);}return(0,nf.endGroup)(),l;}async function tA(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await tC(e0(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=aJ[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,ny.join)(o,i?"llvm":e);a=await s(e0(e,t,r),l,n);}return s.push(t1(e,a)),i;}async function t_(e,t=0){let r="/usr/lib/llvm-"+e;await q([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tN("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await q(n),await aF("/tmp/llvm-setup-cpp.sh","755"),await R("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aU}),await F(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tN(e,t,r,n){var i,o,s,a,l;let c=await aj(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tP(c),c=z()?l.replace(/apt-get/g,"nala"):l,await aM(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tP(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await et(r))&&((0,rm.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tL(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tk(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tD(e){let t;if(aB.has(e))return null;let r="LLVM-",n=c(nk)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nk)(e,"9.0.1"),o=!1;return i&&(t=tk(e,r,n),(await nG(t))||(o=!0)),(o||!i)&&(t=tL(e,r,n)),t;}function tU(e,t){switch(e){case"darwin":return function(e){if(aH.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nk)(e,"9.0.1")?tk(e,r,n):tL(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aV.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aG.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eD(aG,e)[0];}else""!==n&&n in aq?t=aq[n]:(t=aq[aX],(0,rb.warning)(`Falling back to LLVM version ${aX} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nk)(n,"9.0.1"))?tk(n,o,r):tL(n,o,r);}(t);case"win32":return tD(t);default:return null;}}async function tj(e,t,r){let[n,i]=await eU(aG,t,e,tU);return(0,rb.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ny.addExeExt)("clang"),extractFunction:"win32"===t?eS:(e,t)=>eO(e,t,["--strip-components=1"])};}async function tM(e,t,r){let n=await aK(e,t,r);return await tV(n.installDir??t),n;}async function tF(e,t,r){let[n,i,o]=await Promise.all([tG(e,t,r),aW(r),tq()]);return n;}async function tG(e,t,r,n=nJ.All){let i=parseInt(function(e){if(null===c(nH)(e))try{let t=c(nL)(e);if(null!==t)return(0,rb.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(D())return await t_(i,n);}catch(e){(0,rb.info)("Failed to install llvm via system package manager "+e);}let o=await eC("llvm",e,tj,t,r);return await az(i),o;}async function tB(e){D()&&(e<=10?await q([{name:"libtinfo5"}]):await q([{name:"libtinfo-dev"}]));}async function tH(e){"linux"===process.platform&&(await th(e0("gcc",void 0,await aw()),"",e,40));}async function tV(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[M("LLVM_PATH",e),M("LD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${t}`),M("DYLD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${r}`),M("LDFLAGS",`-L"${e}/lib"`),M("CPPFLAGS",`-I"${e}/include"`),M("CC",(0,ny.addExeExt)(`${e}/bin/clang`)),M("CXX",(0,ny.addExeExt)(`${e}/bin/clang++`)),M("LIBRARY_PATH",`${e}/lib`),td()];D()&&n.push(ee("cc",`${e}/bin/clang`,60),ee("cxx",`${e}/bin/clang++`,60),ee("clang",`${e}/bin/clang`),ee("clang++",`${e}/bin/clang++`),ee("lld",`${e}/bin/lld`),ee("ld.lld",`${e}/bin/ld.lld`),ee("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tq(){if(rx.GITHUB_ACTIONS){let e=(0,ny.join)(nQ,"llvm_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}}async function tX(e,t,r){switch(process.platform){case"win32":return es("make",e);case"darwin":return await ei("make",e),await F("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(k())return eu("make",e);if(L())return ea([{name:"make",version:e}]);if(D())return q([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tK(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nz(e);(0,rb.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nW(l);c=!0,(0,rb.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await es("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await es("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await es("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await es("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rb.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rb.error)(e);}await tC(l,a,r,s,n,i,o),rx.GITHUB_ACTIONS&&(await tz());}async function tz(){let e=(0,ny.join)(nZ,"msvc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}async function tW(e,t,r){if(!D())return;if("string"==typeof i)return{binDir:i};let n=c(rT).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,ny.dirname)(n)};let o=await Z("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");S("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await q([{name:"nala"}],!0):await q([{name:"nala-legacy"}],!0);}catch(e){await q([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tY(e,t,r){if("win32"===process.platform)return await es("opencppcoverage",e),{binDir:await tJ()};}async function tJ(){let e="C:/Program Files/OpenCppCoverage";return await F(e),e;}async function tQ(e,t,r){switch(process.platform){case"win32":{await es("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await F(t),{binDir:t};}case"darwin":return ei("powershell",e,["--cask"]);case"linux":if(k())return eu("powershell-bin",e,"yay");if(L())return ea([{name:"curl"}]),S("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ea([{name:"powershell",version:e}]);if(D()){await q([{name:"curl"}]);let t=await aw(),r=`${t[0]}.0${t[1]}`;return S("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),S("dpkg",["-i","packages-microsoft-prod.deb"]),q([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function tZ(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eR:eO,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t0(e,t,r){return aY&&null!==c(rT).sync("vcpkg",{nothrow:!0})?{binDir:(0,ny.dirname)(c(rT).sync("vcpkg"))}:("linux"===process.platform&&(k()?await Promise.all([eu("curl"),eu("zip"),eu("unzip"),eu("tar"),eu("git"),eu("pkg-config")]):L()?await ea([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):D()&&(await q([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nh.pathExists)((0,ny.join)(t,(0,ny.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rb.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ny.dirname)(t),stdio:"inherit"}),b((0,ny.addShExt)((0,ny.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await C(t),await F(t),aY=!0,{binDir:t});}function t1(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t2(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nH)(e)||(0,rb.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nf.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tM(e0("llvm",l,t),(0,n1.join)(r,"llvm"),n);await M("GCOV","llvm-cov gcov"),i.push(t1("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e0("mingw",l,t):e0("gcc",l,t),s="mingw"===a?await tm(e,(0,n1.join)(r,"gcc"),n):await th(e,(0,n1.join)(r,"gcc"),n);o&&(await M("CPPFLAGS","")),await function(e){let t=c(nH)(e),r=null!==t?c(nq)(t):e;return M("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t1("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tK(e0("msvc",l,t),(0,n1.join)(r,"msvc"),n);o&&(await M("CPPFLAGS","")),i.push(t1("msvc",e));break;}case"appleclang":case"applellvm":(0,nf.notice)("Assuming apple-clang is already installed"),await Promise.all([M("CC","clang"),M("CXX","clang++")]),i.push(t1("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rb.error)(t),s.push("Failed to install the "+e);}(0,nf.endGroup)();}async function t3(e){let t,r,n=Promise.resolve();rx.GITHUB_ACTIONS||(n=N(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...aZ,"timeout"],default:Object.fromEntries(aZ.map(e=>[e,function(e){let t=(0,nf.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rb.info)(` +`));}async function ei(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(rA).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nb.dirname)(i)};let o=c(n4).join((0,n3.tmpdir)(),"setup-cpp","brew");await(0,nI.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n4.join)(o,"install.sh");return"linux"===process.platform&&(0,n6.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=es(),await F(t),{binDir:t};}function es(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ea(e,t,r=[]){(0,nv.info)(`Installing ${e} ${t??""} via brew`),sq&&null!==c(rA).sync("brew",{nothrow:!0})||(await eo("","",process.arch),sq=!0);let n=es();return b((0,nb.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function el(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(rA).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,nb.dirname)(i)};let o="powershell.exe",s=c(rA).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await F(a);let l=c(rA).sync("choco",{nothrow:!0});if(r=null!==l?(0,nb.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,ng.pathExists)(r))return{binDir:r};}async function ec(e,t,r=[]){(0,rR.info)(`Installing ${e} ${t??""} via chocolatey`),sX&&null!==c(rA).sync("choco",{nothrow:!0})||(await el("","",process.arch),sX=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rR.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await F(o),{binDir:o};}async function eu(e){for(let{name:t,version:r}of e)(0,rR.info)(`Installing ${t} ${r??""} via dnf`);return S("dnf",["-y","install",...(await Promise.all(e.map(e=>ep(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function ep(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rR.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ed(e,t,r){switch(process.platform){case"win32":return ec("bazelisk",e);case"darwin":return ea("bazelisk",e);case"linux":if(k())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await eu([{name:"dnf-plugins-core"}]),S("dnf",["copr","enable","vbatts/bazel"]),eu([{name:"bazel4"}]);if(D()){let t=await er("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return S("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),z([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ef(e,t,r){(0,rR.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(rA).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sK||"yay"===r||(S(n,["-Sy","--noconfirm"]),sK=!0),sz||"yay"===r||(S(n,["-S","--noconfirm","base-devel"]),sz=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):S(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eh(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rR.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eh(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sW))r.push(e[1]);}catch(e){(0,rR.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function em(e,t){let r=[];t=t||s0.arch();let n=s1.join(ex(),e);if(sQ.existsSync(n)){for(let e of sQ.readdirSync(n))if(ey(e)){let i=s1.join(n,e,t||"");sQ.existsSync(i)&&sQ.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ev(e){return n$(this,void 0,void 0,function*(){return e||(e=s1.join(eb(),s5.default())),yield sJ.mkdirP(e),e;});}function eg(e,t,r){return n$(this,void 0,void 0,function*(){let n=s1.join(ex(),e,s3.clean(t)||t,r||"");sY.debug("destination "+n);let i=`${n}.complete`;return yield sJ.rmRF(n),yield sJ.rmRF(i),yield sJ.mkdirP(n),n;});}function eE(e,t,r){let n=s1.join(ex(),e,s3.clean(t)||t,r||""),i=`${n}.complete`;sQ.writeFileSync(i,""),sY.debug("finished caching tool");}function ey(e){let t=s3.clean(e)||"";sY.debug("isExplicit: "+t);let r=null!=s3.valid(t);return sY.debug("explicit? "+r),r;}function ew(e,t){let r="";sY.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s3.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s3.satisfies(i,t)){r=i;break;}}return r?sY.debug("matched: "+r):sY.debug("match not found"),r;}function ex(){let e=process.env.RUNNER_TOOL_CACHE||"";return rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return rt.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eI(e,t){let r=ry[e];return void 0!==r?r:t;}function eS(e,t,r){switch(process.platform){case"win32":return ec("7zip",e);case"darwin":return ea("p7zip",e);case"linux":if(k())return ef("p7zip",e);if(L())return eu([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(D())return z([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eR(e,t){return await x(await eO(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await C(t),t;}async function eO(){return void 0===n&&(null===c(rA).sync("7z",{nothrow:!0})&&(await eS("","",process.arch)),n="7z"),n;}function eT(e,t){return eR(e,t);}function eC(e,t){return eR(e,t);}async function e$(e,t,r=["--strip-components=0"]){try{await(0,nI.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rR.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return C(t),t;}function eA(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new at(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nS.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rR.info)(e)});ar||((0,rR.info)("Installing extraction dependencies"),"linux"===process.platform&&(k()?await Promise.all([ef("unzip"),ef("tar"),ef("xz")]):L()?await eu([{name:"unzip"},{name:"tar"},{name:"xz"}]):D()&&(await z([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),ar=!0),(0,rR.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,rR.info)(`Add ${d} to PATH`),await F(d),rS.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nS.cacheDir)(n,e,t)),{installDir:p,binDir:d};}function eN(e,t,r){let n=c(nU)(e)??e;switch(t){case"win32":{let t;let i=c(nj)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eC,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nj)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nS.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(nj)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nS.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eP(e,t,r){return e_("cmake",e,eN,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nG.call(e,0):[];}function ek(e,t){return e===t||e!=e&&t!=t;}function eD(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eU(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eU(e.fn,eD(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=eD({isEqual:void 0===r?ek:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nF[r]||(t[r]=e[r]);return t;}(t)),d=new nB(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?eL(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function ej(e,t){return new Promise(r=>{try{let n=(0,n9.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eM(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nq)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eF(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nV(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eM(e,r)){let e=await n(t,o);if(null!==e){if(await nV(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function eG(e,t=aE){try{let r=await(0,n_.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(nU)(i)??void 0;}catch(e){console.error(e);return;}}async function eB(e,t,r=aE){let n=await eG(e,r);return void 0!==n&&""!==t&&-1!==c(nq)(n,t);}function eH(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eV(e,t,r){let n=await eK(e,t,r);c(rt)(void 0!==n.bin);let i=n.bin;if(void 0===(await eJ(i)))throw Error("pip was not installed correctly");return await eq(i),await eX(i),n;}async function eq(e){try{if(!(await te(e)))try{await e7(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===ts("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e7(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rR.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eX(e){try{await e7(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e7(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rR.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eK(e,t,r){let n;let i=await eW(t);if(void 0!==i){let e=(0,nb.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rS.GITHUB_ACTIONS)try{(0,rR.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rb("kqI8i");await o(e,t,r),i=await eW(t);let s=(0,nb.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rR.warning)(e.toString());}void 0===n&&(n=await ez(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eW(t),n.bin=i),n;}async function ez(e,t){let r;switch(process.platform){case"win32":{e?await ec("python3",t,["--params=/InstallDir:"+e]):await ec("python3",t);let n=await eW(e),i=(0,nb.dirname)(n);await F(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ea("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nb.join)(e.stdout,"libexec","bin");await F(n);break;}case"linux":if(k())r=await ef("python",t);else if(L())r=await eu([{name:"python3",version:t}]);else if(D())r=await z([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eW(e){for(let t of["python3","python"]){let r=await eY(t,e);if(void 0!==r)return r;}}async function eY(e,t){try{if(void 0!==t){let r=(0,nb.join)(t,(0,nb.addExeExt)(e));if((await(0,ng.pathExists)(r))&&(await eB(r,aw.python)))return r;}for(let t of(await c(rA)(e,{nothrow:!0,all:!0}))??[])if(await eB(t,aw.python))return t;}catch{}}async function eJ(e){let t=await eQ();return void 0===t?((0,rR.info)("pip was not found. Installing pip"),await e0(e),eQ()):t;}async function eQ(){for(let e of["pip3","pip"]){let t=await eZ(e);if(void 0!==t)return t;}}async function eZ(e){try{for(let t of(await c(rA)(e,{nothrow:!0,all:!0}))??[])if(null!==t&&(await eB(t,aw.pip)))return t;}catch{}}async function e0(e){(await e1(e))||(await ts("pip"),await e1(e));}async function e1(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rR.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rR.info)(e.toString());}}return!1;}async function e2(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,n_.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nb.join)(r,"Scripts"),(0,nb.join)(r,"Scripts","bin"),(0,nb.join)(r,"bin")),[...new Set(t)];}function e3(e,t,r=null){return e4(t)&&"linux"===process.platform&&null!==r&&e in ax?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,ax[e]):e4(t)&&e in ay?ay[e]:"true"===t?"":t??"";}function e4(e){return"true"===e||void 0===e;}async function e6(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{ri.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e5(){try{if(!D())return null;{try{null===c(rA).sync("lsb_release",{nothrow:!0})&&(await z([{name:"lsb-release"}]));}catch{return e8();}let e=await(0,nK.getUbuntuVersion)();if(0===e.length)return e8();return e;}}catch(e){return(0,rR.warning)(e.toString()),null;}}function e8(){if(!("version"in c(n3)&&"function"==typeof c(n3).version))return null;let e=c(n3).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e9(e,t,r={}){return e7(await aO(),e,t,r);}async function e7(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await te(e)),c=l?"pipx":"pip";if(await ti(e,t))try{(0,nv.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aS(),i.PIPX_BIN_DIR=await aR()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nv.info)(`Failed to install ${t} via ${c}: ${e}.`),(await ts(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await ts(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ab(e),p=await to(u,t);return await F(p),{binDir:p};}async function te(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tt(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=$("~/.local/pipx");if(await(0,ng.pathExists)(t))return t;switch(process.platform){case"win32":e=$("~/AppData/Local/pipx");break;case"darwin":e=$("~/Library/Application Support/pipx");break;default:e=$("~/.local/share/pipx");}return await ag(e),await ag((0,nb.join)(e,"trash")),await ag((0,nb.join)(e,"shared")),await ag((0,nb.join)(e,"venv")),e;}async function tr(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=$("~/.local/bin");return await F(e),await ag(e),e;}async function tn(){let e=(await eV(e3("python",void 0,await aI()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function ti(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function to(e,t){let r=(await Promise.all(e.map(e=>(0,ng.pathExists)((0,nb.join)(e,(0,nb.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(rA).sync((0,nb.addExeExt)(t),{nothrow:!0});return null!==n?(0,nb.dirname)(n):e[e.length-1];}function ts(e,t=!0){if("linux"===process.platform){if((0,nv.info)(`Installing ${e} via the system package manager`),k())return ef(t?"python-"+e:e);if(L())return eu([{name:t?"python3-"+e:e}]);if(D())return z([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await ec("cppcheck",e),{binDir:await tl()};case"darwin":return ea("cppcheck",e);case"linux":if(k())return ef("cppcheck",e);if(L())return eu([{name:"ccache",version:e}]);if(D())return z([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tl(){let e="C:/Program Files/Cppcheck";return await F(e),e;}async function tc(e,t,r){switch(process.platform){case"win32":return await ec("graphviz",e),tu();case"darwin":return ea("graphviz",e);case"linux":if(k())return ef("graphviz",e);if(L())return eu([{name:"graphviz",version:e}]);if(D())return z([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await F(e),{binDir:e};}throw Error("Unsupported platform");}async function tp(e,t){let{ArchiveHdi:r}=await rb("jaABp"),n=new r(e);await n.read(async e=>{await e.extract((0,n4.join)(t,e.path));});}function td(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nS.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eC,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tp,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tf(e,t,r){switch(process.platform){case"win32":{await c(nM)(()=>ec("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rR.info)(e)});let t=await th();return await tc(e3("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ea("doxygen",void 0);return aC()[0]>11&&(await tc(e3("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||k()||L()){if(k())n=await ef("doxygen",e);else if(L())return eu([{name:"doxygen",version:e}]);else if(D())n=await z([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(D())try{n=await e_("doxygen",e,td,t,r);try{await z([{name:"libclang-cpp9"}]);}catch(e){(0,rR.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rR.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await z([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tc(e3("graphviz",void 0,await aI()),"",r),n;}default:throw Error("Unsupported platform");}}async function th(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,ng.pathExists)((0,nb.join)(e,"doxygen.exe")))return await F(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tm(){if("darwin"===process.platform)try{let e=await(0,n_.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await M("SDKROOT",t.trim()):(0,rR.error)("SDKROOT not set");}catch(e){(0,rR.error)(e);}}function tv(e,t,r){if("win32"===t){let t=a$[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eR,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tg(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await ec("gcc-arm-embedded",e));try{i=await e_("g++",e,tv,t,r);}catch(t){(0,rR.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await ty(e,r);}break;case"darwin":i=await ea("gcc",e);break;case"linux":"x64"===r?k()?i=await ef("gcc",e):L()?i=await eu([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):D()&&(i=await z([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rR.info)(`Install g++-multilib because gcc for ${r} was requested`),k()?await ef("gcc-multilib",e):D()&&(await z([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tw(e,i.binDir,n),i;}async function tE(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tg(e,t,r);case"linux":k()?n=await ef("mingw-w64-gcc",e):L()?n=await eu([{name:"mingw64-gcc",version:e}]):D()&&(n=await z([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function ty(e,t){let r;if(await ec("mingw",e),"x64"===t&&(await(0,ng.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await F(r)):"ia32"===t&&(await(0,ng.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await F(r)):(await(0,ng.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tw(e,t,r=40){let n=[];if("win32"===process.platform)n.push(M("CC",(0,nb.addExeExt)(`${t}/gcc`)),M("CXX",(0,nb.addExeExt)(`${t}/g++`)));else{let i=c(nz)(c(nU)(e)??e);i>=5?(n.push(M("CC",`${t}/gcc-${i}`),M("CXX",`${t}/g++-${i}`)),D()&&n.push(en("cc",`${t}/gcc-${i}`,r),en("cxx",`${t}/g++-${i}`,r),en("gcc",`${t}/gcc-${i}`,r),en("g++",`${t}/g++-${i}`,r))):(n.push(M("CC",`${t}/gcc-${e}`),M("CXX",`${t}/g++-${e}`)),D()&&n.push(en("cc",`${t}/gcc-${e}`,r),en("cxx",`${t}/g++-${e}`,r),en("gcc",`${t}/gcc-${e}`,r),en("g++",`${t}/g++-${e}`,r)));}n.push(tm()),rS.GITHUB_ACTIONS&&(await tx()),await Promise.all(n);}async function tx(){let e=(0,nb.join)(nW,"gcc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}function tb(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eC,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tI(e,t,r){return e_("ninja",e,tb,t,r);}function tS(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:e$};}function tR(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:tO};}async function tO(e,t){let r=await e$(e,t,["--strip-components=1"]),n=await tT();"linux"===process.platform&&(k()?await Promise.all([ef("libdwarf"),ef("libcurl-openssl")]):L()?await eu([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):D()&&(await z([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(rA).sync("patch",{nothrow:!0})){let e=(0,nb.join)(nY,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rR.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nb.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tT(){let e=c(rA).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eP(e3("cmake",void 0,await aI()),(0,nb.join)($("~"),"cmake"),"");e=(0,nb.join)(t,"cmake");}return null===c(rA).sync("ninja",{nothrow:!0})&&(await tI(e3("ninja",void 0,await aI()),(0,nb.join)($("~"),"ninja"),"")),e;}async function tC(e,t,r){var n;let i;if("linux"!==process.platform){(0,rR.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await e_("kcov",s,tS,t,r),k()?await ef("binutils"):L()?await eu([{name:"binutils"}]):D()&&(await z([{name:"libbinutils"}]))):i=await e_("kcov",s,tR,t,r),i;}function t$(e){if(Object.values(aj).includes(e));else if(e in aj)return aj[e];return e;}function tA(e){let t;let r=t$(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return ri.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nv.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n6.existsSync(n))return nv.info("Found with vswhere: "+n),n;nv.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aj).includes(e));else for(let[t,r]of Object.entries(aj))if(r===e)return t;return e;}(e)]:aU;for(let e of ak)for(let t of i)for(let r of aD)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nv.info("Trying standard location: "+n),n6.existsSync(n))return nv.info("Found standard location: "+n),n;if(nv.info("Not found in standard locations"),n=`${aL}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n6.existsSync(n))return nv.info("Found VS 2015: "+n),n;throw nv.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function t_(e,t,r,n,i,o,s){void 0!==t&&(await(0,ng.pathExists)(t))&&((0,rR.info)(`Adding ${t} to PATH`),await M("VCTargetsPath",t)),await nZ(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tN(e,t,r,n,i,o,s,a=aF){(0,nv.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aP(e)),e.addEventListener("abort",()=>{l(aP(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aA();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tP(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rR.error)(t),s.push(`${e} failed to install`);}return(0,nv.endGroup)(),l;}async function tP(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await t_(e3(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=a0[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nb.join)(o,i?"llvm":e);a=await s(e3(e,t,r),l,n);}return s.push(t4(e,a)),i;}async function tL(e,t=0){let r="/usr/lib/llvm-"+e;await z([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tk("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await z(n),await aH("/tmp/llvm-setup-cpp.sh","755"),await R("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aF}),await F(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tk(e,t,r,n){var i,o,s,a,l;let c=await aG(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tD(c),c=J()?l.replace(/apt-get/g,"nala"):l,await aB(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tD(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await ei(r))&&((0,rE.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tU(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tj(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tM(e){let t;if(aq.has(e))return null;let r="LLVM-",n=c(nj)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nj)(e,"9.0.1"),o=!1;return i&&(t=tj(e,r,n),(await nV(t))||(o=!0)),(o||!i)&&(t=tU(e,r,n)),t;}function tF(e,t){switch(e){case"darwin":return function(e){if(aX.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nj)(e,"9.0.1")?tj(e,r,n):tU(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aK.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aV.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eM(aV,e)[0];}else""!==n&&n in az?t=az[n]:(t=az[aW],(0,rR.warning)(`Falling back to LLVM version ${aW} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nj)(n,"9.0.1"))?tj(n,o,r):tU(n,o,r);}(t);case"win32":return tM(t);default:return null;}}async function tG(e,t,r){let[n,i]=await eF(aV,t,e,tF);return(0,rR.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nb.addExeExt)("clang"),extractFunction:"win32"===t?eT:(e,t)=>e$(e,t,["--strip-components=1"])};}async function tB(e,t,r){let n=await aY(e,t,r);return await tK(n.installDir??t),n;}async function tH(e,t,r){let[n,i,o]=await Promise.all([tV(e,t,r),aQ(r),tz()]);return n;}async function tV(e,t,r,n=n0.All){let i=parseInt(function(e){if(null===c(nX)(e))try{let t=c(nU)(e);if(null!==t)return(0,rR.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(D())return await tL(i,n);}catch(e){(0,rR.info)("Failed to install llvm via system package manager "+e);}let o=await e_("llvm",e,tG,t,r);return await aJ(i),o;}async function tq(e){D()&&(e<=10?await z([{name:"libtinfo5"}]):await z([{name:"libtinfo-dev"}]));}async function tX(e){"linux"===process.platform&&(await tg(e3("gcc",void 0,await aI()),"",e,40));}async function tK(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[M("LLVM_PATH",e),M("LD_LIBRARY_PATH",`${e}/lib${n4.delimiter}${t}`),M("DYLD_LIBRARY_PATH",`${e}/lib${n4.delimiter}${r}`),M("LDFLAGS",`-L"${e}/lib"`),M("CPPFLAGS",`-I"${e}/include"`),M("CC",(0,nb.addExeExt)(`${e}/bin/clang`)),M("CXX",(0,nb.addExeExt)(`${e}/bin/clang++`)),M("LIBRARY_PATH",`${e}/lib`),tm()];D()&&n.push(en("cc",`${e}/bin/clang`,60),en("cxx",`${e}/bin/clang++`,60),en("clang",`${e}/bin/clang`),en("clang++",`${e}/bin/clang++`),en("lld",`${e}/bin/lld`),en("ld.lld",`${e}/bin/ld.lld`),en("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tz(){if(rS.GITHUB_ACTIONS){let e=(0,nb.join)(n1,"llvm_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}}async function tW(e,t,r){switch(process.platform){case"win32":return ec("make",e);case"darwin":return await ea("make",e),await F("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(k())return ef("make",e);if(L())return eu([{name:"make",version:e}]);if(D())return z([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tY(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nJ(e);(0,rR.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nQ(l);c=!0,(0,rR.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await ec("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await ec("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await ec("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await ec("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rR.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rR.error)(e);}await t_(l,a,r,s,n,i,o),rS.GITHUB_ACTIONS&&(await tJ());}async function tJ(){let e=(0,nb.join)(n2,"msvc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}async function tQ(e,t,r){if(!D())return;if("string"==typeof i)return{binDir:i};let n=c(rA).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nb.dirname)(n)};let o=await er("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");S("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await z([{name:"nala"}],!0):await z([{name:"nala-legacy"}],!0);}catch(e){await z([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tZ(e,t,r){if("win32"===process.platform)return await ec("opencppcoverage",e),{binDir:await t0()};}async function t0(){let e="C:/Program Files/OpenCppCoverage";return await F(e),e;}async function t1(e,t,r){switch(process.platform){case"win32":{await ec("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await F(t),{binDir:t};}case"darwin":return ea("powershell",e,["--cask"]);case"linux":if(k())return ef("powershell-bin",e,"yay");if(L())return eu([{name:"curl"}]),S("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),eu([{name:"powershell",version:e}]);if(D()){await z([{name:"curl"}]);let t=await aI(),r=`${t[0]}.0${t[1]}`;return S("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),S("dpkg",["-i","packages-microsoft-prod.deb"]),z([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function t2(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eC:e$,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t3(e,t,r){return aZ&&null!==c(rA).sync("vcpkg",{nothrow:!0})?{binDir:(0,nb.dirname)(c(rA).sync("vcpkg"))}:("linux"===process.platform&&(k()?await Promise.all([ef("curl"),ef("zip"),ef("unzip"),ef("tar"),ef("git"),ef("pkg-config")]):L()?await eu([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):D()&&(await z([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,ng.pathExists)((0,nb.join)(t,(0,nb.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rR.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nb.dirname)(t),stdio:"inherit"}),b((0,nb.addShExt)((0,nb.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await C(t),await F(t),aZ=!0,{binDir:t});}function t4(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t6(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nX)(e)||(0,rR.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nv.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tB(e3("llvm",l,t),(0,n4.join)(r,"llvm"),n);await M("GCOV","llvm-cov gcov"),i.push(t4("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e3("mingw",l,t):e3("gcc",l,t),s="mingw"===a?await tE(e,(0,n4.join)(r,"gcc"),n):await tg(e,(0,n4.join)(r,"gcc"),n);o&&(await M("CPPFLAGS","")),await function(e){let t=c(nX)(e),r=null!==t?c(nz)(t):e;return M("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t4("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tY(e3("msvc",l,t),(0,n4.join)(r,"msvc"),n);o&&(await M("CPPFLAGS","")),i.push(t4("msvc",e));break;}case"appleclang":case"applellvm":(0,nv.notice)("Assuming apple-clang is already installed"),await Promise.all([M("CC","clang"),M("CXX","clang++")]),i.push(t4("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rR.error)(t),s.push("Failed to install the "+e);}(0,nv.endGroup)();}async function t5(e){let t,r,n=Promise.resolve();rS.GITHUB_ACTIONS||(n=N(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...a2,"timeout"],default:Object.fromEntries(a2.map(e=>[e,function(e){let t=(0,nv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rR.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true @@ -25,15 +25,15 @@ Install all the tools required for building and testing C++/C projects. --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: -`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??$("~"),a=[],l=[],u=rR.create({autoloadLocales:!0});rR.addLocale(c(rO)),rI.addLocale(c(rS));let p=await aw();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e1(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,rb.error)("The same version must be used for llvm, clangformat and clangtidy"),1;k()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rb.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let d=!1,f=!1;for(let e of aQ){if(rx.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await t$(e,n,p,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,rb.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t2(e,p,s,o,a,d,l);let r=Date.now();(0,rb.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await V(),0===a.length&&0===l.length)return(0,rb.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rb.success)(e)),l.forEach(e=>(0,rb.error)(e)),(0,rb.info)("setup-cpp finished"),!rx.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rb.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rb.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t4,t6,t5,t8,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rI,rS,rR,rO,rT,rC,r$,rA,r_,rN,rP,rL,rk,rD,rU,rj,rM,rF,rG,rB,rH,rV,rq,rX,rK,rz,rW,rY,rJ,rQ,rZ,r0,r1,r2,r3,r4,r6,r5,r8,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nI,nS,nR,nO,nT,nC,n$,nA,n_,nN,nP,nL,nk,nD,nU,nj,nM,nF,nG,nB,nH,nV,nq,nX,nK,nz,nW,nY,nJ,nQ,nZ,n0=require("os"),n1=require("path"),n2=require("fs"),n3=require("crypto"),n4=require("http"),n6=require("https");require("net"),t5=require("tls"),t8=require("events"),t9=require("assert"),t7=require("util"),re=require("fs"),rt=require("child_process"),rr=require("string_decoder"),rn=require("timers"),ri=require("buffer"),ro=require("path"),rs=require("child_process"),ra=require("process"),rl=require("url"),rc=require("os"),ru=require("buffer"),rp=require("stream"),rd=require("util"),rf=require("process"),rh=require("url"),rm=require("console"),rg={},rE={},null==(ry=(rv=globalThis).parcelRequire810d)&&((ry=function(e){if(e in rg)return rg[e].exports;if(e in rE){var t=rE[e];delete rE[e];var r={id:e,exports:{}};return rg[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rE[e]=t;},rv.parcelRequire810d=ry),(rw=ry.register)("l5aZl",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=ry("48im1");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rw("48im1",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rw("g0Mwp",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=ry("lUL8q"),n=ry("l5aZl");}),rw("lUL8q",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=ry("87j2H"),a=ry("7Dlql"),l=ry("gYkCt");let E=i(n0),y=i(n1);c=ry("5oMT9"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=ry("jaLnB"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=ry("jaLnB"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=ry("eCzrY"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rw("87j2H",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n0);o=ry("gYkCt"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rw("gYkCt",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rw("7Dlql",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n2),l=i(n0);o=ry("hpOkk"),s=ry("gYkCt"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rw("hpOkk",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=ry("g7JSE"),n=ry("jSP38"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rw("g7JSE",function(e,t){function r(){return i>n.length-16&&(c(n3).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rw("jSP38",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("2OgOb");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rw("2OgOb",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("2UMly"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rw("2UMly",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rw("5oMT9",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=ry("l6zH0"),i=ry("5civ3"),o=ry("lUL8q");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. +`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??$("~"),a=[],l=[],u=rC.create({autoloadLocales:!0});rC.addLocale(c(r$)),rO.addLocale(c(rT));let p=await aI();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e4(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,rR.error)("The same version must be used for llvm, clangformat and clangtidy"),1;k()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rR.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ef("python-pygments"));let d=!1,f=!1;for(let e of a1){if(rS.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await tN(e,n,p,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,rR.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t6(e,p,s,o,a,d,l);let r=Date.now();(0,rR.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await K(),0===a.length&&0===l.length)return(0,rR.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rR.success)(e)),l.forEach(e=>(0,rR.error)(e)),(0,rR.info)("setup-cpp finished"),!rS.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rR.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rR.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t8,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rI,rS,rR,rO,rT,rC,r$,rA,r_,rN,rP,rL,rk,rD,rU,rj,rM,rF,rG,rB,rH,rV,rq,rX,rK,rz,rW,rY,rJ,rQ,rZ,r0,r1,r2,r3,r4,r6,r5,r8,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nI,nS,nR,nO,nT,nC,n$,nA,n_,nN,nP,nL,nk,nD,nU,nj,nM,nF,nG,nB,nH,nV,nq,nX,nK,nz,nW,nY,nJ,nQ,nZ,n0,n1,n2,n3=require("os"),n4=require("path"),n6=require("fs"),n5=require("crypto"),n8=require("http"),n9=require("https");require("net"),t7=require("tls"),re=require("events"),rt=require("assert"),rr=require("util"),rn=require("fs"),ri=require("child_process"),ro=require("string_decoder"),rs=require("timers"),ra=require("buffer"),rl=require("path"),rc=require("child_process"),ru=require("process"),rp=require("url"),rd=require("os"),rf=require("buffer"),rh=require("stream"),rm=require("util"),rv=require("process"),rg=require("url"),rE=require("console"),rw={},rx={},null==(rb=(ry=globalThis).parcelRequire810d)&&((rb=function(e){if(e in rw)return rw[e].exports;if(e in rx){var t=rx[e];delete rx[e];var r={id:e,exports:{}};return rw[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rx[e]=t;},ry.parcelRequire810d=rb),(rI=rb.register)("l5aZl",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rb("48im1");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rI("48im1",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rI("g0Mwp",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rb("lUL8q"),n=rb("l5aZl");}),rI("lUL8q",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=rb("87j2H"),a=rb("7Dlql"),l=rb("gYkCt");let E=i(n3),y=i(n4);c=rb("5oMT9"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=rb("jaLnB"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rb("jaLnB"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rb("eCzrY"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rI("87j2H",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n3);o=rb("gYkCt"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rI("gYkCt",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rI("7Dlql",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n6),l=i(n3);o=rb("hpOkk"),s=rb("gYkCt"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rI("hpOkk",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rb("g7JSE"),n=rb("jSP38"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rI("g7JSE",function(e,t){function r(){return i>n.length-16&&(c(n5).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rI("jSP38",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("2OgOb");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rI("2OgOb",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("2UMly"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rI("2UMly",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rI("5oMT9",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rb("l6zH0"),i=rb("5civ3"),o=rb("lUL8q");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} - Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rw("l6zH0",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n4),d=i(n6),f=i(ry("40WgE")),h=i(ry("3zxaw"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rw("40WgE",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rw("3zxaw",function(e,t){e.exports=ry("zoNP8");}),rw("zoNP8",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n4.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t5.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n4.request,t;},n=function(e){var t=new c(e);return t.request=n4.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n6.request,t;},o=function(e){var t=new c(e);return t.request=n6.request,t.createSocket=u,t.defaultPort=443,t;},t7.inherits(c,t8.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rw("5civ3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rw("jaLnB",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n2.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n2.constants.R_OK|n2.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n0.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rw("eCzrY",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n1);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rw("kspKY",function(e,t){var r=n1.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rw("dl3mv",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=ry("hapVv"),i=ry("joCBa");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rw("hapVv",function(e,t){e.exports=ry("kspKY");}),rw("joCBa",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rw("eYpZW",function(e,t){l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>R),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n2.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:I,unlink:S,utimes:R,writeFile:O}=n2.promises,T="rm"in n2.promises?n2.promises.rm:(0,t7.promisify)(n2.unlink);}),rw("ipr2f",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rw("84nXv",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rw("dc2zw",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rw("bmedX",function(e,t){var r=ry("dc2zw"),n=ry("84nXv"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=ry("aYJ5s"),a=s.safeRe,l=s.t,c=ry("9rxnK"),u=ry("lG7j5").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rw("9rxnK",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rw("lG7j5",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rw("9fZKy",function(e,t){var r=ry("bmedX");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rw("SUO5C",function(e,t){var r=ry("9fZKy");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rw("5UYbM",function(e,t){var r=ry("9fZKy");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rw("g4dmV",function(e,t){var r=ry("bmedX");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rw("avNOz",function(e,t){var r=ry("9fZKy");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rw("3nHUu",function(e,t){var r=ry("bmedX");e.exports=(e,t)=>new r(e,t).major;}),rw("dYfT7",function(e,t){var r=ry("bmedX");e.exports=(e,t)=>new r(e,t).minor;}),rw("9h5Uk",function(e,t){var r=ry("bmedX");e.exports=(e,t)=>new r(e,t).patch;}),rw("1oG7j",function(e,t){var r=ry("9fZKy");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rw("dKY2K",function(e,t){var r=ry("bmedX");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rw("9fB4n",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>r(t,e,n);}),rw("b7w7T",function(e,t){var r=ry("dKY2K");e.exports=(e,t)=>r(e,t,!0);}),rw("4Cdie",function(e,t){var r=ry("bmedX");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rw("4Jb5D",function(e,t){var r=ry("4Cdie");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rw("hhi7M",function(e,t){var r=ry("4Cdie");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rw("cmfRl",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>r(e,t,n)>0;}),rw("9cmQV",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>0>r(e,t,n);}),rw("dLLSg",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>0===r(e,t,n);}),rw("7CMva",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>0!==r(e,t,n);}),rw("8dSFQ",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rw("eekMY",function(e,t){var r=ry("dKY2K");e.exports=(e,t,n)=>0>=r(e,t,n);}),rw("3ktqT",function(e,t){var r=ry("dLLSg"),n=ry("7CMva"),i=ry("cmfRl"),o=ry("8dSFQ"),s=ry("9cmQV"),a=ry("eekMY");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rw("h5EpL",function(e,t){var r=ry("bmedX"),n=ry("9fZKy"),i=ry("aYJ5s"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rw("hf4vi",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=ry("9rxnK"),o=ry("aYJ5s"),s=o.safeRe,a=o.t,l=ry("3ktqT"),c=ry("dc2zw"),u=ry("bmedX"),p=ry("3ZIKH");}),rw("3ZIKH",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,A(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>$(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=S(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},S=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),$=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),A=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rw("tPjHU",function(e,t){var r=ry("8VtHa");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rw("8VtHa",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rw("iGUY3",function(e,t){var r=ry("3ZIKH");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rw("jpWIo",function(e,t){var r=ry("bmedX"),n=ry("3ZIKH");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("dJyj1",function(e,t){var r=ry("bmedX"),n=ry("3ZIKH");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("9inVR",function(e,t){var r=ry("bmedX"),n=ry("3ZIKH"),i=ry("cmfRl");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rw("5wxvo",function(e,t){var r=ry("3ZIKH");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rw("16OoL",function(e,t){var r=ry("bmedX"),n=ry("hf4vi");let{ANY:i}=n;var o=ry("3ZIKH"),s=ry("h0AH5"),a=ry("cmfRl"),l=ry("9cmQV"),c=ry("eekMY"),u=ry("8dSFQ");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rw("aNIaY",function(e,t){var r=ry("16OoL");e.exports=(e,t,n)=>r(e,t,">",n);}),rw("huA22",function(e,t){var r=ry("16OoL");e.exports=(e,t,n)=>r(e,t,"<",n);}),rw("hRcmf",function(e,t){var r=ry("3ZIKH");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rw("fnXJa",function(e,t){var r=ry("h0AH5"),n=ry("dKY2K");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rw("6afW1",function(e,t){async function r(e){try{return await(0,re.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rw("fQ0Jj",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rw("e19ul",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n1.basename)(e):(0,n1.basename)(e,(0,n1.extname)(e));}function w(e){return(0,n1.normalize)(e).replace(RegExp((0,r.default)(n1.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n1.extname)(e),n=`${t}${(0,n1.basename)(e,r)}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function I(e,t){let r=(0,n1.extname)(e),n=`${(0,n1.basename)(e,r)}${t}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function S(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function R(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n1.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,n1.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n1.sep)||r===(0,n1.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>S),l(e.exports,"addShRelativePrefix",()=>R),l(e.exports,"dirname",()=>n1.dirname),l(e.exports,"join",()=>n1.join),r=ry("hImoI"),n=ry("f2mBC"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>I),E(d={},"addShExt",()=>S),E(f={},"addShRelativePrefix",()=>R),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>C),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rw("hImoI",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rw("f2mBC",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n1.basename(e,n1.extname(e))+t,i=n1.join(n1.dirname(e),n);return(r=e.slice(0,2))==="."+n1.sep||"./"===r?"."+n1.sep+i:i;};}),rw("jGHPG",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){t9.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n1),p=i(ry("akQoU"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rw("akQoU",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n2),c=i(n1);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rw("aUW7f",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(ry("1mmqj"));s=ry("lUL8q"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n0.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n0.platform(),r="";if("darwin"===t)r=rt.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n2.existsSync(e)?r=n2.readFileSync(e).toString():n2.existsSync(t)&&(r=n2.readFileSync(t).toString()),r;};}),rw("1mmqj",function(e,t){function r(e){$[e]=A++;}function n(e){for(var t=0;tI||!(t.loose?T[$.LOOSE]:T[$.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>I)throw TypeError("version is longer than "+I+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[$.LOOSE]:T[$.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>S||this.major<0)throw TypeError("Invalid major version");if(this.minor>S||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>S||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===k?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",I=256,S=Number.MAX_SAFE_INTEGER||9007199254740991,R=I-6,O=t.re=[],T=t.safeRe=[],C=t.src=[],$=t.tokens={},A=0,N=[["\\s",1],["\\d",I],[_="[a-zA-Z0-9-]",R]],r("NUMERICIDENTIFIER"),C[$.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[$.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[$.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),C[$.MAINVERSION]="("+C[$.NUMERICIDENTIFIER]+")\\.("+C[$.NUMERICIDENTIFIER]+")\\.("+C[$.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[$.MAINVERSIONLOOSE]="("+C[$.NUMERICIDENTIFIERLOOSE]+")\\.("+C[$.NUMERICIDENTIFIERLOOSE]+")\\.("+C[$.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[$.PRERELEASEIDENTIFIER]="(?:"+C[$.NUMERICIDENTIFIER]+"|"+C[$.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[$.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[$.NUMERICIDENTIFIERLOOSE]+"|"+C[$.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[$.PRERELEASE]="(?:-("+C[$.PRERELEASEIDENTIFIER]+"(?:\\."+C[$.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[$.PRERELEASELOOSE]="(?:-?("+C[$.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[$.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[$.BUILDIDENTIFIER]=_+"+",r("BUILD"),C[$.BUILD]="(?:\\+("+C[$.BUILDIDENTIFIER]+"(?:\\."+C[$.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[$.FULLPLAIN]="v?"+C[$.MAINVERSION]+C[$.PRERELEASE]+"?"+C[$.BUILD]+"?",C[$.FULL]="^"+C[$.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[$.LOOSEPLAIN]="[v=\\s]*"+C[$.MAINVERSIONLOOSE]+C[$.PRERELEASELOOSE]+"?"+C[$.BUILD]+"?",r("LOOSE"),C[$.LOOSE]="^"+C[$.LOOSEPLAIN]+"$",r("GTLT"),C[$.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[$.XRANGEIDENTIFIERLOOSE]=C[$.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[$.XRANGEIDENTIFIER]=C[$.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[$.XRANGEPLAIN]="[v=\\s]*("+C[$.XRANGEIDENTIFIER]+")(?:\\.("+C[$.XRANGEIDENTIFIER]+")(?:\\.("+C[$.XRANGEIDENTIFIER]+")(?:"+C[$.PRERELEASE]+")?"+C[$.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[$.XRANGEPLAINLOOSE]="[v=\\s]*("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:"+C[$.PRERELEASELOOSE]+")?"+C[$.BUILD]+"?)?)?",r("XRANGE"),C[$.XRANGE]="^"+C[$.GTLT]+"\\s*"+C[$.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[$.XRANGELOOSE]="^"+C[$.GTLT]+"\\s*"+C[$.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[$.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[$.COERCERTL]=RegExp(C[$.COERCE],"g"),T[$.COERCERTL]=RegExp(n(C[$.COERCE]),"g"),r("LONETILDE"),C[$.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[$.TILDETRIM]="(\\s*)"+C[$.LONETILDE]+"\\s+",O[$.TILDETRIM]=RegExp(C[$.TILDETRIM],"g"),T[$.TILDETRIM]=RegExp(n(C[$.TILDETRIM]),"g"),r("TILDE"),C[$.TILDE]="^"+C[$.LONETILDE]+C[$.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[$.TILDELOOSE]="^"+C[$.LONETILDE]+C[$.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[$.LONECARET]="(?:\\^)",r("CARETTRIM"),C[$.CARETTRIM]="(\\s*)"+C[$.LONECARET]+"\\s+",O[$.CARETTRIM]=RegExp(C[$.CARETTRIM],"g"),T[$.CARETTRIM]=RegExp(n(C[$.CARETTRIM]),"g"),r("CARET"),C[$.CARET]="^"+C[$.LONECARET]+C[$.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[$.CARETLOOSE]="^"+C[$.LONECARET]+C[$.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[$.COMPARATORLOOSE]="^"+C[$.GTLT]+"\\s*("+C[$.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[$.COMPARATOR]="^"+C[$.GTLT]+"\\s*("+C[$.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[$.COMPARATORTRIM]="(\\s*)"+C[$.GTLT]+"\\s*("+C[$.LOOSEPLAIN]+"|"+C[$.XRANGEPLAIN]+")",O[$.COMPARATORTRIM]=RegExp(C[$.COMPARATORTRIM],"g"),T[$.COMPARATORTRIM]=RegExp(n(C[$.COMPARATORTRIM]),"g"),P="$1$2$3",r("HYPHENRANGE"),C[$.HYPHENRANGE]="^\\s*("+C[$.XRANGEPLAIN]+")\\s+-\\s+("+C[$.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[$.HYPHENRANGELOOSE]="^\\s*("+C[$.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[$.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[$.STAR]="(<|>)?=?\\s*\\*";for(var b,I,S,R,O,T,C,$,A,_,N,P,L,k,D=0;D=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,k={},m.prototype.parse=function(e){var t=this.options.loose?T[$.COMPARATORLOOSE]:T[$.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=k;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[$.HYPHENRANGELOOSE]:T[$.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[$.COMPARATORTRIM],P),b("comparator trim",e,T[$.COMPARATORTRIM]),e=(e=(e=e.replace(T[$.TILDETRIM],"$1~")).replace(T[$.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[$.COMPARATORLOOSE]:T[$.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[$.CARETLOOSE]:T[$.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[$.TILDELOOSE]:T[$.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[$.XRANGELOOSE]:T[$.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[$.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[$.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[$.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[$.COERCERTL].lastIndex=-1;}else n=e.match(T[$.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rw("b4HqL",function(e,t){var r=ry("djHKf"),n=ry("CMWjw");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rw("djHKf",function(e,t){e.exports=function(){return n3.randomBytes(16);};}),rw("CMWjw",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rw("ioM8U",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(ry("7Ee0q"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new rr.StringDecoder("utf8"),c=new rr.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rw("7Ee0q",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n0),a=i(t8),l=i(rt),c=i(n1),u=i(ry("jGHPG")),p=i(ry("akQoU")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rn.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rw("kqI8i",function(e,t){e.exports=Promise.resolve(require("./actions_python.e93d39c0.js")).then(()=>ry("i1n7v"));}),rw("jaABp",function(e,t){e.exports=Promise.resolve(require("./hdi.4215b06b.js")).then(()=>ry("dTPU2"));}),rx=ry("l5aZl"),rb=ry("g0Mwp"),rI=ry("hapVv"),function(){ry("kspKY").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rS={}),rR={},rR=ry("dl3mv"),rO={},rO={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rT={},l(rC={},"isexe",()=>n5),l(rC,"sync",()=>n8),r$=ry("eYpZW");const n5=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n9(await(0,r$.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n8=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n9((0,n2.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n9=(e,t)=>e.isFile()&&n7(e,t),n7=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(rA={},"isexe",()=>ie),l(rA,"sync",()=>it),r$=ry("eYpZW");const ie=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii(await(0,r$.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii((0,n2.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ir=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&ir(t,r),io="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rA:rC,is=io.isexe,ia=io.sync;r_=n1.join,rN=n1.delimiter,rP=n1.sep,rL=n1.posix;const il="win32"===process.platform,ic=new RegExp(`[${rL.sep}${rP===rL.sep?"":rP}]`.replace(/(\\)/g,"\\$1")),iu=RegExp("^\\."+ic.source),ip=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),id=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rN})=>{let i=e.match(ic)?[""]:[...(il?[process.cwd()]:[]),...(t||"").split(n)];if(il){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ih=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&iu.test(t)?t.slice(0,2):"")+r_(r,t);},im=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(await is(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);};rT=im,im.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(ia(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);},rk={},rD={},rU={},rj={};const iv="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ig=iv?";":":";rM={},"win32"===process.platform||rv.TESTING_WINDOWS?rF=ry("ipr2f"):rF=ry("bn5RY"),rM=u,u.sync=function(e,t){try{return rF.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iE=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iy=(e,t)=>{let r=t.colon||ig,n=e.match(/\//)||iv&&e.match(/\\/)?[""]:[...(iv?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iv?i.split(r):[""];return iv&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iw=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=iy(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iE(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n1.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rM(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rj=iw,iw.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iy(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rG=ix).default=ix,rU=function(e){return p(e)||p(e,!0);};rB=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rH=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rV={},rq={},rX={},rX=/^#!(.*)/,rq=(e="")=>{let t=e.match(rX);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rV=function(e){let t;let r=Buffer.alloc(150);try{t=n2.openSync(e,"r"),n2.readSync(t,r,0,150,0),n2.closeSync(t);}catch(e){}return rq(r.toString());};const ib="win32"===process.platform;rD=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!ib)return e;let t=function(e){e.file=rU(e);let t=e.file&&rV(e.file);return t?(e.args.unshift(e.file),e.command=t,rU(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n1.normalize(e.command),e.command=rB(e.command),e.args=e.args.map(e=>rH(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rK={};const iI="win32"===process.platform;rK={hookChildProcess:function(e,t){if(!iI)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iI&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rk=h).spawn=h,rk.sync=function(e,t,r){let n=rD(e,t,r),i=rt.spawnSync(n.command,n.args,n.options);return i.error=i.error||rK.verifyENOENTSync(i.status,n),i;},rk._parse=rD,rk._enoent=rK;const iS=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iR(i,o)||!n)&&Object.defineProperty(e,r,o);},iR=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iO=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iT=(e,t)=>`/* Wrapped ${e}*/ -${t}`,iC=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),i$=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iA=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iT.bind(null,n,t.toString());Object.defineProperty(i,"name",i$),Object.defineProperty(e,"toString",{...iC,value:i});},i_=new WeakMap(),iN=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(i_.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iS(e,t,n,r);iO(e,t),iA(e,t,n);}(o,e),i_.set(o,n),o;};iN.callCount=e=>{if(!i_.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i_.get(e);},rz=iN;const iP=()=>Array.from({length:iD-ik+1},iL),iL=(e,t)=>({name:"SIGRT"+(t+1),number:ik+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ik=34,iD=64,iU=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],ij=()=>[...iU,...iP()].map(iM),iM=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rc.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iF=Object.fromEntries(ij().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iG=(e,t)=>{let r=iB(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iB=(e,t)=>{let r=t.find(({name:t})=>rc.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=ij();return Object.assign({},...Array.from({length:iD+1},(t,r)=>iG(r,e)));})();const iH=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iV=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ra).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iF[i].description,m=iH({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} -${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iq=["stdin","stdout","stderr"],iX=e=>iq.some(t=>void 0!==e[t]),iK=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iq.map(t=>e[t]);if(iX(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iq.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iq.length)},(e,r)=>t[r]);};rW={};const iz=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iz(rY=rv.process)){var iW,iY=t9,iJ=ry("97KW0"),iQ=/^win/i.test(rY.platform),iZ=t8;"function"!=typeof iZ&&(iZ=iZ.EventEmitter),rY.__signal_exit_emitter__?iW=rY.__signal_exit_emitter__:((iW=rY.__signal_exit_emitter__=new iZ()).count=0,iW.emitted={}),iW.infinite||(iW.setMaxListeners(1/0),iW.infinite=!0);var i0=function(){i3&&iz(rv.process)&&(i3=!1,iJ.forEach(function(e){try{rY.removeListener(e,i2[e]);}catch(e){}}),rY.emit=i8,rY.reallyExit=i6,iW.count-=1);};(rW=function(e,t){if(!iz(rv.process))return function(){};iY.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i3&&i4();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iW.on(r,e),function(){iW.removeListener(r,e),0===iW.listeners("exit").length&&0===iW.listeners("afterexit").length&&i0();};}).unload=i0;var i1=function(e,t,r){iW.emitted[e]||(iW.emitted[e]=!0,iW.emit(e,t,r));},i2={};iJ.forEach(function(e){i2[e]=function(){iz(rv.process)&&rY.listeners(e).length===iW.count&&(i0(),i1("exit",null,e),i1("afterexit",null,e),iQ&&"SIGHUP"===e&&(e="SIGINT"),rY.kill(rY.pid,e));};}),rW.signals=function(){return iJ;};var i3=!1,i4=function(){!i3&&iz(rv.process)&&(i3=!0,iW.count+=1,iJ=iJ.filter(function(e){try{return rY.on(e,i2[e]),!0;}catch(e){return!1;}}),rY.emit=i9,rY.reallyExit=i5);};rW.load=i4;var i6=rY.reallyExit,i5=function(e){iz(rv.process)&&(rY.exitCode=e||0,i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),i6.call(rY,rY.exitCode));},i8=rY.emit,i9=function(e,t){if(!("exit"===e&&iz(rv.process)))return i8.apply(this,arguments);void 0!==t&&(rY.exitCode=t);var r=i8.apply(this,arguments);return i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),r;};}else rW=function(){return function(){};};const i7=(e,t="SIGTERM",r={})=>{let n=e(t);return oe(e,t,r,n),n;},oe=(e,t,r,n)=>{if(!ot(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},on(r));i.unref&&i.unref();},ot=(e,{forceKillAfterTimeout:t},r)=>or(e)&&!1!==t&&r,or=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),on=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oi=(e,t)=>{e.kill()&&(t.isCanceled=!0);},oo=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},os=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{oo(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oa=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},ol=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rW)(()=>{e.kill();});return n.finally(()=>{i();});},oc=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,ou=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!oc(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},op=e=>{null!==e.stdout&&(e.pipeStdout=ou.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ou.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ou.bind(void 0,e,"all"));};rJ={},rQ=ru.constants,rZ=t7.promisify,r0={},r1=rp.PassThrough,r0=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r1({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const od=rZ(rp.pipeline);class of extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(rJ=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),rJ.array=(e,t)=>w(e,{...t,array:!0}),rJ.MaxBufferError=of,r2={},r3=rp.PassThrough,r2=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r3({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const oh=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},om=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.readFileSync)(t)),ov=e=>{let t=om(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},og=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.createReadStream)(t)),oE=(e,t)=>{let r=og(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},oy=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ow=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ox=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rJ)(e,{encoding:t,maxBuffer:n}):c(rJ).buffer(e,{maxBuffer:n});},ob=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ox(e,{encoding:n,buffer:i,maxBuffer:o}),l=ox(t,{encoding:n,buffer:i,maxBuffer:o}),c=ox(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ow(e,a),ow(t,l),ow(r,c)]);}},oI=(async()=>{})().constructor.prototype,oS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oI,e)]),oR=(e,t)=>{for(let[r,n]of oS){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oO=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),oT=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oC=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,o$=(e,t)=>oT(e,t).join(" "),oA=(e,t)=>oT(e,t).map(e=>oC(e)).join(" "),o_=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},oN=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oP=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oL=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=oP(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return oP(s,Array.isArray(a)?a.map(e=>oN(e)):[oN(a)],o.endsWith(" "));},ok=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oL({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oD=(0,rd.debuglog)("execa").enabled,oU=(e,t)=>(e+"").padStart(t,"0"),oj=()=>{let e=new Date();return`${oU(e.getHours(),2)}:${oU(e.getMinutes(),2)}:${oU(e.getSeconds(),2)}.${oU(e.getMilliseconds(),3)}`;},oM=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${oj()}] ${e} -`);},oF=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oG=(e,t,r={})=>{let n=c(rk)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oD,...r}).env=oF(r),r.stdio=iK(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oB=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oH=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oV=(e={})=>({preferLocal:!0,...oH(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=ok(n,i);return x(o,s,oV(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=ok(e,r);return b(n,i,oV(t));},r;}();const oq={stdio:"inherit",shell:!0},oX=/^~(?=$|\/|\\)/;rb=ry("g0Mwp"),r4={},r6=ry("24j9d"),r5=rf.env.npm_package_json,r9=!!((r8=rf.env.npm_config_user_agent)&&r8.startsWith("npm")),r7=!!(r5&&r5.endsWith("package.json")),ne=r9||r7,nt=!!(r8&&r8.startsWith("yarn")),nr=ne||nt,nn=n0.homedir(),ni=process.env.XDG_CONFIG_HOME||n1.join(nn,".config","simple-update-notifier"),no=function(e){return n1.join(ni,"".concat(e.replace("@","").replace("/","__"),".json"));},ns=function(){n2.existsSync(ni)||n2.mkdirSync(ni,{recursive:!0});},na=function(e){var t=no(e);try{if(!n2.existsSync(t))return;return JSON.parse(n2.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nl=function(e){var t=no(e);n2.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nc=function(e,t){return A(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n6.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nu=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return A(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(ns(),e=na(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nm=function(e){return oK?e.replace(/(\s+)/g,"\\$1"):oW(.../(\d+\.\d+)\.(\d+)/.exec(oz).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=ry("fQ0Jj"),t=function(e){return e.split("").reverse().join("");},nv=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nv={});const oY=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oJ=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iF[i].description,f=oY({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} -${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},oQ=["stdin","stdout","stderr"],oZ=e=>oQ.some(t=>void 0!==e[t]),o0=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oQ.map(t=>e[t]);if(oZ(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oQ.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oQ.length)},(e,r)=>t[r]);},o1=(e,t="SIGTERM",r={})=>{let n=e(t);return o2(e,t,r,n),n;},o2=(e,t,r,n)=>{if(!o3(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o6(r));i.unref&&i.unref();},o3=(e,{forceKillAfterTimeout:t},r)=>o4(e)&&!1!==t&&r,o4=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o6=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o5=(e,t)=>{e.kill()&&(t.isCanceled=!0);},o8=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o9=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{o8(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},o7=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},se=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rW)(()=>{e.kill();});return n.finally(()=>{i();});},st=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,sr=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!st(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},sn=e=>{null!==e.stdout&&(e.pipeStdout=sr.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=sr.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=sr.bind(void 0,e,"all"));},si=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},so=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.readFileSync)(t)),ss=e=>{let t=so(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},sa=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.createReadStream)(t)),sl=(e,t)=>{let r=sa(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sc=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},su=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sp=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rJ)(e,{encoding:t,maxBuffer:n}):c(rJ).buffer(e,{maxBuffer:n});},sd=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sp(e,{encoding:n,buffer:i,maxBuffer:o}),l=sp(t,{encoding:n,buffer:i,maxBuffer:o}),c=sp(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},su(e,a),su(t,l),su(r,c)]);}},sf=(async()=>{})().constructor.prototype,sh=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sf,e)]),sm=(e,t)=>{for(let[r,n]of sh){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sv=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sg=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sE=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sy=(e,t)=>sg(e,t).join(" "),sw=(e,t)=>sg(e,t).map(e=>sE(e)).join(" "),sx=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sb=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sI=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sb(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sb(s,Array.isArray(a)?a.map(e=>sx(e)):[sx(a)],o.endsWith(" "));},sS=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sI({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sR=(0,rd.debuglog)("execa").enabled,sO=(e,t)=>(e+"").padStart(t,"0"),sT=()=>{let e=new Date();return`${sO(e.getHours(),2)}:${sO(e.getMinutes(),2)}:${sO(e.getSeconds(),2)}.${sO(e.getMilliseconds(),3)}`;},sC=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${sT()}] ${e} -`);},s$=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sA=(e,t,r={})=>{let n=c(rk)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sR,...r}).env=s$(r),r.stdio=o0(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},s_=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sN=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sP=(e={})=>({preferLocal:!0,...sN(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sS(n,i);return U(o,s,sP(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sS(e,r);return function(e,t,r){let n;let i=sA(e,t,r),o=sy(e,t),s=sw(e,t);sC(s,i.options);let a=ss(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oJ({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=s_(i.options,n.stdout,n.error),u=s_(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oJ({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sP(t));},r;}(),nh=ry("6afW1");const sL={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sk=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sD=$("~/.cpprc");let sU=!1;rb=ry("g0Mwp"),ng=ry("hImoI");const{appendFile:sj}=n2.promises;let sM=!1,sF=!1;const sG=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t4=nE||(nE={}))[t4.NameDashVersion=0]="NameDashVersion",t4[t4.NameEqualsVersion=1]="NameEqualsVersion",t4[t4.Name=2]="Name",t4[t4.None=3]="None",nf=ry("lUL8q"),ny=ry("e19ul"),nw=ry("jGHPG"),ny=ry("e19ul");let sB=!1;rb=ry("g0Mwp"),nh=ry("6afW1"),ny=ry("e19ul");let sH=!1;rb=ry("g0Mwp"),rb=ry("g0Mwp");let sV=!1,sq=!1;const sX=/Version\s*:\s*(.*)/g;nx={},nb=n1.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nI=nx&&nx.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nS=nx&&nx.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nR=nx&&nx.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nI(t,e,r);return nS(t,e),t;},nO=nx&&nx.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},nT=nx&&nx.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nx,"__esModule",{value:!0}),nx.evaluateVersions=nx.isExplicitVersion=nx.findFromManifest=nx.getManifestFromRepo=nx.findAllVersions=nx.find=nx.cacheFile=nx.cacheDir=nx.extractZip=nx.extractXar=nx.extractTar=nx.extract7z=nx.downloadTool=nx.HTTPError=void 0;const sK=nR(ry("lUL8q")),sz=nR(ry("jGHPG")),sW=nR(n2),sY=nR(ry("aUW7f")),sJ=nR(n0),sQ=nR(n1),sZ=nR(ry("l6zH0")),s0=nR(ry("1mmqj")),s1=nR(rp),s2=nR(t7),s3=nT(ry("b4HqL"));nC=ry("ioM8U"),nA=(n$={},n$.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),n_=n$&&n$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nN=n$&&n$.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nA(t,e,r);return n_(t,e),t;},nP=n$&&n$.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(n$,"__esModule",{value:!0}),n$.RetryHelper=void 0;const s4=nN(ry("lUL8q"));n$.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nP(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s6 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nx.HTTPError=s6;const s5="win32"===process.platform,s8="darwin"===process.platform;nx.downloadTool=function(e,t,r,n){return nO(this,void 0,void 0,function*(){t=t||sQ.join(ey(),s3.default()),yield sz.mkdirP(sQ.dirname(t)),sK.debug("Downloading "+e),sK.debug("Destination "+t);let i=ew("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=ew("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new n$.RetryHelper(3,i,o);return yield s.execute(()=>nO(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(sW.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sZ.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sK.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s6(o.message.statusCode);throw sK.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s2.promisify(s1.pipeline),a=ew("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sW.createWriteStream(t)),sK.debug("download complete"),l=!0,t;}finally{if(!l){sK.debug("download failed");try{yield sz.rmRF(t);}catch(e){sK.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s6)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nx.extract7z=function(e,t,r){return nO(this,void 0,void 0,function*(){t9.ok(s5,"extract7z() not supported on current OS"),t9.ok(e,'parameter "file" is required'),t=yield ef(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sK.isDebug()?"-bb1":"-bb0";yield nC.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=sQ.join(nb,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sz.which("powershell",!0);yield nC.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nx.extractTar=function(e,t,r="xz"){return nO(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ef(t),sK.debug("Checking tar --version");let i="";yield nC.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sK.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sK.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s5&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield nC.exec("tar",n),t;});},nx.extractXar=function(e,t,r=[]){return nO(this,void 0,void 0,function*(){let n;t9.ok(s8,"extractXar() not supported on current OS"),t9.ok(e,'parameter "file" is required'),t=yield ef(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sK.isDebug()&&n.push("-v");let i=yield sz.which("xar",!0);return yield nC.exec(`"${i}"`,Array.from(new Set(n))),t;});},nx.extractZip=function(e,t){return nO(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ef(t),s5?yield function(e,t){return nO(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sz.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sK.debug("Using pwsh at path: "+i),yield nC.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sz.which("powershell",!0);sK.debug("Using powershell at path: "+t),yield nC.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nO(this,void 0,void 0,function*(){let r=yield sz.which("unzip",!0),n=[e];sK.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nC.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nx.cacheDir=function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(r=s0.clean(r)||r,n=n||sJ.arch(),sK.debug(`Caching tool ${t} ${r} ${n}`),sK.debug("source dir: "+e),!sW.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eh(t,r,n);for(let t of sW.readdirSync(e)){let r=sQ.join(e,t);yield sz.cp(r,i,{recursive:!0});}return em(t,r,n),i;});},nx.cacheFile=function(e,t,r,n,i){return nO(this,void 0,void 0,function*(){if(n=s0.clean(n)||n,i=i||sJ.arch(),sK.debug(`Caching tool ${r} ${n} ${i}`),sK.debug("source file: "+e),!sW.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eh(r,n,i),s=sQ.join(o,t);return sK.debug("destination file "+s),yield sz.cp(e,s),em(r,n,i),o;});},nx.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sJ.arch(),ev(t)||(t=eg(ed(e,r),t));let n="";if(t){t=s0.clean(t)||"";let i=sQ.join(eE(),e,t,r);sK.debug("checking cache: "+i),sW.existsSync(i)&&sW.existsSync(`${i}.complete`)?(sK.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sK.debug("not found");}return n;},nx.findAllVersions=ed,nx.getManifestFromRepo=function(e,t,r,n="master"){return nO(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new sZ.HttpClient("tool-cache"),a={};r&&(sK.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sK.debug("Invalid json");}}return i;});},nx.findFromManifest=function(e,t,r,n=sJ.arch()){return nO(this,void 0,void 0,function*(){return yield sY._findMatch(e,t,r,n);});},nx.isExplicitVersion=ev,nx.evaluateVersions=eg,ny=ry("e19ul"),nL=ry("h5EpL"),nk=ry("eekMY"),nw=ry("jGHPG"),rb=ry("g0Mwp"),rb=ry("g0Mwp"),ny=ry("e19ul"),rx=ry("l5aZl"),nh=ry("6afW1"),Object.defineProperty(nD={},"__esModule",{value:!0}),nD.retryAsPromised=nD.TimeoutError=void 0;class s9 extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nD.TimeoutError=s9,nD.retryAsPromised=eT,nD.default=eT;let s7=!1;nf=ry("lUL8q"),nU={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nj=Array.prototype.slice,nM=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:e_(this.keys),size:this.size,values:e_(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const ae=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n2.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n2.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n2.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n2.mkdirSync,t;},at=(e,t,r)=>{let n=(0,n1.dirname)(e),i={...ae(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return at(e,i,at(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ar=Object.assign(async(e,t,r)=>{let n=ae(t);n.recursive=!1;let i=(0,n1.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ar(i,n).then(t=>ar(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:at}),an=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?an(e,(0,n1.dirname)(t),t):void 0);},ai=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?ai(e,(0,n1.dirname)(t),t):void 0;}},ao=(e,t)=>{let r=ae(t);if(r.recursive=!0,(0,n1.dirname)(e)===e)return r.mkdirSync(e,r);let n=ai(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return at(e,r);throw t;}},as=Object.assign(async(e,t)=>{let r={...ae(t),recursive:!0};return(0,n1.dirname)(e)===e?await r.mkdirAsync(e,r):an(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ar(e,r);throw t;}));},{sync:ao}),aa=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,al=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n1.resolve)(e),"win32"===aa){let{root:t}=(0,n1.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ac=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),au=+ac[0]>10||10==+ac[0]&&+ac[1]>=12,ap=au?e=>ae(e).mkdirSync===n2.mkdirSync:()=>!1,ad=Object.assign(au?e=>ae(e).mkdir===n2.mkdir:()=>!1,{sync:ap}),af=(e,t)=>{e=al(e);let r=ae(t);return ap(r)?ao(e,r):at(e,r);},ah=Object.assign(async(e,t)=>{e=al(e);let r=ae(t);return ad(r)?as(e,r):ar(e,r);},{mkdirpSync:af,mkdirpNative:as,mkdirpNativeSync:ao,mkdirpManual:ar,mkdirpManualSync:at,sync:af,native:as,nativeSync:ao,manual:ar,manualSync:at,useNative:ad,useNativeSync:ap});nh=ry("6afW1"),ny=ry("e19ul"),nC=ry("ioM8U"),rx=ry("l5aZl"),rb=ry("g0Mwp"),nh=ry("6afW1"),ny=ry("e19ul"),nC=ry("ioM8U"),rb=ry("g0Mwp"),nF=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rh.URL(t),!0;}catch{return!1;}},nG=async e=>{if(!nF(e))return!1;let t=await ek(e,"HEAD");return!!t||!!(t=await ek(e,"GET"));},nL=ry("h5EpL"),nB=ry("dKY2K"),nH=ry("SUO5C");const am=/v?(\d\S*)/,av={llvm:eF(),clangtidy:eF(),clangformat:eF(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:k()?"1.10.0-1":"1.10.0",gcc:k()?"13.2.1-3":"13"},ag={pip:"22.2.0",python:"3.7.9"},aE={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ay=eL(eZ,{isPromise:!0});rb=ry("g0Mwp"),Object.defineProperty(nV={},"__esModule",{value:!0}),nV.getUbuntuVersion=void 0,nV.getUbuntuVersion=e2;const aw=eL(e3,{isPromise:!0}),ax=eL(e9,{isPromise:!0}),ab=eL(e7,{isPromise:!0}),aI=eL(te,{isPromise:!0});rb=ry("g0Mwp"),ny=ry("e19ul"),nh=ry("6afW1");const aS=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aR=eL(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rc).release()).split(".")[0];let[t,r]=aS.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rx=ry("l5aZl"),rb=ry("g0Mwp"),nh=ry("6afW1"),ny=ry("e19ul"),nL=ry("h5EpL"),nq=ry("3nHUu"),nC=ry("ioM8U"),rb=ry("g0Mwp"),nX=n1.resolve(__dirname,"../../src/gcc");const aO={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nq=ry("3nHUu"),nH=ry("SUO5C"),rb=ry("g0Mwp"),ny=ry("e19ul"),ny=ry("e19ul"),nK=n1.resolve(__dirname,"../../src/kcov"),rx=ry("l5aZl"),rb=ry("g0Mwp"),nh=ry("6afW1"),ny=ry("e19ul"),nf=ry("lUL8q"),rb=ry("g0Mwp");class aT extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aC extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const a$=e=>void 0===globalThis.DOMException?new aC(e):new DOMException(e),aA=e=>{let t=void 0===e.reason?a$("This operation was aborted."):e.reason;return t instanceof Error?t:a$(t);};ny=ry("e19ul"),rb=ry("g0Mwp"),nf=ry("lUL8q");const a_=rf.env["ProgramFiles(x86)"],aN=[rf.env["ProgramFiles(x86)"],rf.env.ProgramFiles],aP=["Enterprise","Professional","Community","BuildTools"],aL=["2022","2019","2017"],ak={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nz=tO;const aD=`${a_}\\Microsoft Visual Studio\\Installer`;nW=tT,nY=function(e,t,r,n,i,o){if("win32"!=rf.platform){nf.info("This is not a Windows virtual environment, bye!");return;}rf.env.PATH+=n1.delimiter+aD;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tT(o)}" ${a.join(" ")}`;nf.debug("vcvars command-line: "+l);let c=rt.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nf.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nf.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nf.exportVariable(t,r));}nf.endGroup(),nf.info("Configured Developer Command Prompt");},nh=ry("6afW1");const aU=12e5,{readFile:aj,writeFile:aM,chmod:aF}=n2.promises;(t6=nJ||(nJ={}))[t6.All=0]="All",t6[t6.ClangFormat=1]="ClangFormat",t6[t6.Core=2]="Core",rb=ry("g0Mwp"),ny=ry("e19ul"),nk=ry("eekMY");const aG=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aB=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aH=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aV=new Map(),aq={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},aX="17.0.6";nQ=n1.resolve(__dirname,"../../src/llvm");const aK=eL(tF,{isPromise:!0}),az=eL(tB,{isPromise:!0}),aW=eL(tH,{isPromise:!0});rx=ry("l5aZl"),ny=ry("e19ul"),rb=ry("g0Mwp"),nh=ry("6afW1"),nZ=n1.resolve(__dirname,"../../src/msvc"),ny=ry("e19ul"),ny=ry("e19ul"),rb=ry("g0Mwp"),nh=ry("6afW1"),ny=ry("e19ul");let aY=!1;const aJ={nala:tW,cmake:eA,ninja:tw,python:eG,vcpkg:t0,bazel:ec,conan:function(e,t,r){return e6("conan",e);},meson:function(e,t,r){return e6("meson",e);},gcovr:function(e,t,r){return e6("gcovr",e);},opencppcoverage:tY,llvm:tM,gcc:th,choco:eo,brew:er,powershell:tQ,ccache:function(e,t,r){switch(process.platform){case"win32":return es("ccache",e);case"darwin":return ei("ccache",e);case"linux":if(k())return eu("ccache",e);if(L())return ea([{name:"ccache",version:e}]);if(D())return q([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return es("sccache",e);case"linux":case"darwin":return ei("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tu,graphviz:ts,cppcheck:ti,clangtidy:function(e,t,r){return tG(e,t,r);},clangformat:function(e,t,r){return tG(e,t,r,nJ.ClangFormat);},msvc:tK,vcvarsall:tC,kcov:tR,make:tX,task:function(e,t,r){return eC("task",e,tZ,t,r);},sevenzip:ex},aQ=Object.keys(aJ),aZ=["compiler","architecture","timeout",...aQ];nf=ry("lUL8q"),rb=ry("g0Mwp"),nH=ry("SUO5C"),t3(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rb.error)("main() panicked!"),(0,rb.error)(e),process.exitCode=1;}); + Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rI("l6zH0",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n8),d=i(n9),f=i(rb("40WgE")),h=i(rb("3zxaw"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rI("40WgE",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rI("3zxaw",function(e,t){e.exports=rb("zoNP8");}),rI("zoNP8",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n8.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t7.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n8.request,t;},n=function(e){var t=new c(e);return t.request=n8.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n9.request,t;},o=function(e){var t=new c(e);return t.request=n9.request,t.createSocket=u,t.defaultPort=443,t;},rr.inherits(c,re.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rI("5civ3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rI("jaLnB",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n6.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n6.constants.R_OK|n6.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n3.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rI("eCzrY",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n4);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rI("kspKY",function(e,t){var r=n4.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rI("dl3mv",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=rb("hapVv"),i=rb("joCBa");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rI("hapVv",function(e,t){e.exports=rb("kspKY");}),rI("joCBa",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rI("eYpZW",function(e,t){l(e.exports,"appendFile",()=>n),l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>R),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n6.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:I,unlink:S,utimes:R,writeFile:O}=n6.promises,T="rm"in n6.promises?n6.promises.rm:(0,rr.promisify)(n6.unlink);}),rI("ipr2f",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rI("84nXv",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rI("dc2zw",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rI("bmedX",function(e,t){var r=rb("dc2zw"),n=rb("84nXv"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rb("aYJ5s"),a=s.safeRe,l=s.t,c=rb("9rxnK"),u=rb("lG7j5").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rI("9rxnK",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rI("lG7j5",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rI("9fZKy",function(e,t){var r=rb("bmedX");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rI("SUO5C",function(e,t){var r=rb("9fZKy");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rI("5UYbM",function(e,t){var r=rb("9fZKy");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rI("g4dmV",function(e,t){var r=rb("bmedX");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rI("avNOz",function(e,t){var r=rb("9fZKy");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rI("3nHUu",function(e,t){var r=rb("bmedX");e.exports=(e,t)=>new r(e,t).major;}),rI("dYfT7",function(e,t){var r=rb("bmedX");e.exports=(e,t)=>new r(e,t).minor;}),rI("9h5Uk",function(e,t){var r=rb("bmedX");e.exports=(e,t)=>new r(e,t).patch;}),rI("1oG7j",function(e,t){var r=rb("9fZKy");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rI("dKY2K",function(e,t){var r=rb("bmedX");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rI("9fB4n",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>r(t,e,n);}),rI("b7w7T",function(e,t){var r=rb("dKY2K");e.exports=(e,t)=>r(e,t,!0);}),rI("4Cdie",function(e,t){var r=rb("bmedX");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rI("4Jb5D",function(e,t){var r=rb("4Cdie");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rI("hhi7M",function(e,t){var r=rb("4Cdie");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rI("cmfRl",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>r(e,t,n)>0;}),rI("9cmQV",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>0>r(e,t,n);}),rI("dLLSg",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>0===r(e,t,n);}),rI("7CMva",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>0!==r(e,t,n);}),rI("8dSFQ",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rI("eekMY",function(e,t){var r=rb("dKY2K");e.exports=(e,t,n)=>0>=r(e,t,n);}),rI("3ktqT",function(e,t){var r=rb("dLLSg"),n=rb("7CMva"),i=rb("cmfRl"),o=rb("8dSFQ"),s=rb("9cmQV"),a=rb("eekMY");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rI("h5EpL",function(e,t){var r=rb("bmedX"),n=rb("9fZKy"),i=rb("aYJ5s"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rI("hf4vi",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rb("9rxnK"),o=rb("aYJ5s"),s=o.safeRe,a=o.t,l=rb("3ktqT"),c=rb("dc2zw"),u=rb("bmedX"),p=rb("3ZIKH");}),rI("3ZIKH",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,A(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>$(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=S(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},S=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),$=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),A=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rI("tPjHU",function(e,t){var r=rb("8VtHa");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rI("8VtHa",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rI("iGUY3",function(e,t){var r=rb("3ZIKH");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rI("jpWIo",function(e,t){var r=rb("bmedX"),n=rb("3ZIKH");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rI("dJyj1",function(e,t){var r=rb("bmedX"),n=rb("3ZIKH");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rI("9inVR",function(e,t){var r=rb("bmedX"),n=rb("3ZIKH"),i=rb("cmfRl");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rI("5wxvo",function(e,t){var r=rb("3ZIKH");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rI("16OoL",function(e,t){var r=rb("bmedX"),n=rb("hf4vi");let{ANY:i}=n;var o=rb("3ZIKH"),s=rb("h0AH5"),a=rb("cmfRl"),l=rb("9cmQV"),c=rb("eekMY"),u=rb("8dSFQ");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rI("aNIaY",function(e,t){var r=rb("16OoL");e.exports=(e,t,n)=>r(e,t,">",n);}),rI("huA22",function(e,t){var r=rb("16OoL");e.exports=(e,t,n)=>r(e,t,"<",n);}),rI("hRcmf",function(e,t){var r=rb("3ZIKH");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rI("fnXJa",function(e,t){var r=rb("h0AH5"),n=rb("dKY2K");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rI("6afW1",function(e,t){async function r(e){try{return await(0,rn.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rI("fQ0Jj",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rI("e19ul",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n4.basename)(e):(0,n4.basename)(e,(0,n4.extname)(e));}function w(e){return(0,n4.normalize)(e).replace(RegExp((0,r.default)(n4.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n4.extname)(e),n=`${t}${(0,n4.basename)(e,r)}${r}`;return(0,n4.join)((0,n4.dirname)(e),n);}function I(e,t){let r=(0,n4.extname)(e),n=`${(0,n4.basename)(e,r)}${t}${r}`;return(0,n4.join)((0,n4.dirname)(e),n);}function S(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function R(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n4.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,n4.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n4.sep)||r===(0,n4.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>S),l(e.exports,"addShRelativePrefix",()=>R),l(e.exports,"dirname",()=>n4.dirname),l(e.exports,"join",()=>n4.join),r=rb("hImoI"),n=rb("f2mBC"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>I),E(d={},"addShExt",()=>S),E(f={},"addShRelativePrefix",()=>R),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>C),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rI("hImoI",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rI("f2mBC",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n4.basename(e,n4.extname(e))+t,i=n4.join(n4.dirname(e),n);return(r=e.slice(0,2))==="."+n4.sep||"./"===r?"."+n4.sep+i:i;};}),rI("jGHPG",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){rt.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n4),p=i(rb("akQoU"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rI("akQoU",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n6),c=i(n4);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rI("aUW7f",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rb("1mmqj"));s=rb("lUL8q"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n3.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n3.platform(),r="";if("darwin"===t)r=ri.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n6.existsSync(e)?r=n6.readFileSync(e).toString():n6.existsSync(t)&&(r=n6.readFileSync(t).toString()),r;};}),rI("1mmqj",function(e,t){function r(e){$[e]=A++;}function n(e){for(var t=0;tI||!(t.loose?T[$.LOOSE]:T[$.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>I)throw TypeError("version is longer than "+I+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[$.LOOSE]:T[$.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>S||this.major<0)throw TypeError("Invalid major version");if(this.minor>S||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>S||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===k?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",I=256,S=Number.MAX_SAFE_INTEGER||9007199254740991,R=I-6,O=t.re=[],T=t.safeRe=[],C=t.src=[],$=t.tokens={},A=0,N=[["\\s",1],["\\d",I],[_="[a-zA-Z0-9-]",R]],r("NUMERICIDENTIFIER"),C[$.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[$.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[$.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),C[$.MAINVERSION]="("+C[$.NUMERICIDENTIFIER]+")\\.("+C[$.NUMERICIDENTIFIER]+")\\.("+C[$.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[$.MAINVERSIONLOOSE]="("+C[$.NUMERICIDENTIFIERLOOSE]+")\\.("+C[$.NUMERICIDENTIFIERLOOSE]+")\\.("+C[$.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[$.PRERELEASEIDENTIFIER]="(?:"+C[$.NUMERICIDENTIFIER]+"|"+C[$.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[$.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[$.NUMERICIDENTIFIERLOOSE]+"|"+C[$.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[$.PRERELEASE]="(?:-("+C[$.PRERELEASEIDENTIFIER]+"(?:\\."+C[$.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[$.PRERELEASELOOSE]="(?:-?("+C[$.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[$.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[$.BUILDIDENTIFIER]=_+"+",r("BUILD"),C[$.BUILD]="(?:\\+("+C[$.BUILDIDENTIFIER]+"(?:\\."+C[$.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[$.FULLPLAIN]="v?"+C[$.MAINVERSION]+C[$.PRERELEASE]+"?"+C[$.BUILD]+"?",C[$.FULL]="^"+C[$.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[$.LOOSEPLAIN]="[v=\\s]*"+C[$.MAINVERSIONLOOSE]+C[$.PRERELEASELOOSE]+"?"+C[$.BUILD]+"?",r("LOOSE"),C[$.LOOSE]="^"+C[$.LOOSEPLAIN]+"$",r("GTLT"),C[$.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[$.XRANGEIDENTIFIERLOOSE]=C[$.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[$.XRANGEIDENTIFIER]=C[$.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[$.XRANGEPLAIN]="[v=\\s]*("+C[$.XRANGEIDENTIFIER]+")(?:\\.("+C[$.XRANGEIDENTIFIER]+")(?:\\.("+C[$.XRANGEIDENTIFIER]+")(?:"+C[$.PRERELEASE]+")?"+C[$.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[$.XRANGEPLAINLOOSE]="[v=\\s]*("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[$.XRANGEIDENTIFIERLOOSE]+")(?:"+C[$.PRERELEASELOOSE]+")?"+C[$.BUILD]+"?)?)?",r("XRANGE"),C[$.XRANGE]="^"+C[$.GTLT]+"\\s*"+C[$.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[$.XRANGELOOSE]="^"+C[$.GTLT]+"\\s*"+C[$.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[$.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[$.COERCERTL]=RegExp(C[$.COERCE],"g"),T[$.COERCERTL]=RegExp(n(C[$.COERCE]),"g"),r("LONETILDE"),C[$.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[$.TILDETRIM]="(\\s*)"+C[$.LONETILDE]+"\\s+",O[$.TILDETRIM]=RegExp(C[$.TILDETRIM],"g"),T[$.TILDETRIM]=RegExp(n(C[$.TILDETRIM]),"g"),r("TILDE"),C[$.TILDE]="^"+C[$.LONETILDE]+C[$.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[$.TILDELOOSE]="^"+C[$.LONETILDE]+C[$.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[$.LONECARET]="(?:\\^)",r("CARETTRIM"),C[$.CARETTRIM]="(\\s*)"+C[$.LONECARET]+"\\s+",O[$.CARETTRIM]=RegExp(C[$.CARETTRIM],"g"),T[$.CARETTRIM]=RegExp(n(C[$.CARETTRIM]),"g"),r("CARET"),C[$.CARET]="^"+C[$.LONECARET]+C[$.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[$.CARETLOOSE]="^"+C[$.LONECARET]+C[$.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[$.COMPARATORLOOSE]="^"+C[$.GTLT]+"\\s*("+C[$.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[$.COMPARATOR]="^"+C[$.GTLT]+"\\s*("+C[$.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[$.COMPARATORTRIM]="(\\s*)"+C[$.GTLT]+"\\s*("+C[$.LOOSEPLAIN]+"|"+C[$.XRANGEPLAIN]+")",O[$.COMPARATORTRIM]=RegExp(C[$.COMPARATORTRIM],"g"),T[$.COMPARATORTRIM]=RegExp(n(C[$.COMPARATORTRIM]),"g"),P="$1$2$3",r("HYPHENRANGE"),C[$.HYPHENRANGE]="^\\s*("+C[$.XRANGEPLAIN]+")\\s+-\\s+("+C[$.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[$.HYPHENRANGELOOSE]="^\\s*("+C[$.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[$.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[$.STAR]="(<|>)?=?\\s*\\*";for(var b,I,S,R,O,T,C,$,A,_,N,P,L,k,D=0;D=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,k={},m.prototype.parse=function(e){var t=this.options.loose?T[$.COMPARATORLOOSE]:T[$.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=k;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[$.HYPHENRANGELOOSE]:T[$.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[$.COMPARATORTRIM],P),b("comparator trim",e,T[$.COMPARATORTRIM]),e=(e=(e=e.replace(T[$.TILDETRIM],"$1~")).replace(T[$.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[$.COMPARATORLOOSE]:T[$.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[$.CARETLOOSE]:T[$.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[$.TILDELOOSE]:T[$.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[$.XRANGELOOSE]:T[$.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[$.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[$.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[$.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[$.COERCERTL].lastIndex=-1;}else n=e.match(T[$.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rI("b4HqL",function(e,t){var r=rb("djHKf"),n=rb("CMWjw");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rI("djHKf",function(e,t){e.exports=function(){return n5.randomBytes(16);};}),rI("CMWjw",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rI("ioM8U",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(rb("7Ee0q"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new ro.StringDecoder("utf8"),c=new ro.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rI("7Ee0q",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n3),a=i(re),l=i(ri),c=i(n4),u=i(rb("jGHPG")),p=i(rb("akQoU")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rs.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rI("kqI8i",function(e,t){e.exports=Promise.resolve(require("./actions_python.e93d39c0.js")).then(()=>rb("i1n7v"));}),rI("jaABp",function(e,t){e.exports=Promise.resolve(require("./hdi.4215b06b.js")).then(()=>rb("dTPU2"));}),rS=rb("l5aZl"),rR=rb("g0Mwp"),rO=rb("hapVv"),function(){rb("kspKY").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rT={}),rC={},rC=rb("dl3mv"),r$={},r$={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rA={},l(r_={},"isexe",()=>n7),l(r_,"sync",()=>ie),rN=rb("eYpZW");const n7=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it(await(0,rN.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ie=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it((0,n6.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t)=>e.isFile()&&ir(e,t),ir=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(rP={},"isexe",()=>ii),l(rP,"sync",()=>io),rN=rb("eYpZW");const ii=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia(await(0,rN.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},io=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia((0,n6.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},is=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&is(t,r),il="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rP:r_,ic=il.isexe,iu=il.sync;rL=n4.join,rk=n4.delimiter,rD=n4.sep,rU=n4.posix;const ip="win32"===process.platform,id=new RegExp(`[${rU.sep}${rD===rU.sep?"":rD}]`.replace(/(\\)/g,"\\$1")),ih=RegExp("^\\."+id.source),im=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rk})=>{let i=e.match(id)?[""]:[...(ip?[process.cwd()]:[]),...(t||"").split(n)];if(ip){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ig=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&ih.test(t)?t.slice(0,2):"")+rL(r,t);},iE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(await ic(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);};rA=iE,iE.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(iu(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);},rj={},rM={},rF={},rG={};const iy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iw=iy?";":":";rB={},"win32"===process.platform||ry.TESTING_WINDOWS?rH=rb("ipr2f"):rH=rb("bn5RY"),rB=u,u.sync=function(e,t){try{return rH.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ix=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ib=(e,t)=>{let r=t.colon||iw,n=e.match(/\//)||iy&&e.match(/\\/)?[""]:[...(iy?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iy?i.split(r):[""];return iy&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iI=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ib(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ix(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n4.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rB(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rG=iI,iI.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ib(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rV=iS).default=iS,rF=function(e){return p(e)||p(e,!0);};rq=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rX=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rK={},rz={},rW={},rW=/^#!(.*)/,rz=(e="")=>{let t=e.match(rW);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rK=function(e){let t;let r=Buffer.alloc(150);try{t=n6.openSync(e,"r"),n6.readSync(t,r,0,150,0),n6.closeSync(t);}catch(e){}return rz(r.toString());};const iR="win32"===process.platform;rM=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!iR)return e;let t=function(e){e.file=rF(e);let t=e.file&&rK(e.file);return t?(e.args.unshift(e.file),e.command=t,rF(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n4.normalize(e.command),e.command=rq(e.command),e.args=e.args.map(e=>rX(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rY={};const iO="win32"===process.platform;rY={hookChildProcess:function(e,t){if(!iO)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iO&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rj=h).spawn=h,rj.sync=function(e,t,r){let n=rM(e,t,r),i=ri.spawnSync(n.command,n.args,n.options);return i.error=i.error||rY.verifyENOENTSync(i.status,n),i;},rj._parse=rM,rj._enoent=rY;const iT=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iC(i,o)||!n)&&Object.defineProperty(e,r,o);},iC=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},i$=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iA=(e,t)=>`/* Wrapped ${e}*/ +${t}`,i_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iN=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iP=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iA.bind(null,n,t.toString());Object.defineProperty(i,"name",iN),Object.defineProperty(e,"toString",{...i_,value:i});},iL=new WeakMap(),ik=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(iL.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iT(e,t,n,r);i$(e,t),iP(e,t,n);}(o,e),iL.set(o,n),o;};ik.callCount=e=>{if(!iL.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iL.get(e);},rJ=ik;const iD=()=>Array.from({length:iM-ij+1},iU),iU=(e,t)=>({name:"SIGRT"+(t+1),number:ij+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ij=34,iM=64,iF=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],iG=()=>[...iF,...iD()].map(iB),iB=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rd.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iH=Object.fromEntries(iG().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iV=(e,t)=>{let r=iq(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iq=(e,t)=>{let r=t.find(({name:t})=>rd.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iG();return Object.assign({},...Array.from({length:iM+1},(t,r)=>iV(r,e)));})();const iX=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iK=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ru).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,m=iX({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} +${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iz=["stdin","stdout","stderr"],iW=e=>iz.some(t=>void 0!==e[t]),iY=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iz.map(t=>e[t]);if(iW(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iz.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iz.length)},(e,r)=>t[r]);};rQ={};const iJ=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iJ(rZ=ry.process)){var iQ,iZ=rt,i0=rb("97KW0"),i1=/^win/i.test(rZ.platform),i2=re;"function"!=typeof i2&&(i2=i2.EventEmitter),rZ.__signal_exit_emitter__?iQ=rZ.__signal_exit_emitter__:((iQ=rZ.__signal_exit_emitter__=new i2()).count=0,iQ.emitted={}),iQ.infinite||(iQ.setMaxListeners(1/0),iQ.infinite=!0);var i3=function(){i5&&iJ(ry.process)&&(i5=!1,i0.forEach(function(e){try{rZ.removeListener(e,i6[e]);}catch(e){}}),rZ.emit=oe,rZ.reallyExit=i9,iQ.count-=1);};(rQ=function(e,t){if(!iJ(ry.process))return function(){};iZ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i5&&i8();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iQ.on(r,e),function(){iQ.removeListener(r,e),0===iQ.listeners("exit").length&&0===iQ.listeners("afterexit").length&&i3();};}).unload=i3;var i4=function(e,t,r){iQ.emitted[e]||(iQ.emitted[e]=!0,iQ.emit(e,t,r));},i6={};i0.forEach(function(e){i6[e]=function(){iJ(ry.process)&&rZ.listeners(e).length===iQ.count&&(i3(),i4("exit",null,e),i4("afterexit",null,e),i1&&"SIGHUP"===e&&(e="SIGINT"),rZ.kill(rZ.pid,e));};}),rQ.signals=function(){return i0;};var i5=!1,i8=function(){!i5&&iJ(ry.process)&&(i5=!0,iQ.count+=1,i0=i0.filter(function(e){try{return rZ.on(e,i6[e]),!0;}catch(e){return!1;}}),rZ.emit=ot,rZ.reallyExit=i7);};rQ.load=i8;var i9=rZ.reallyExit,i7=function(e){iJ(ry.process)&&(rZ.exitCode=e||0,i4("exit",rZ.exitCode,null),i4("afterexit",rZ.exitCode,null),i9.call(rZ,rZ.exitCode));},oe=rZ.emit,ot=function(e,t){if(!("exit"===e&&iJ(ry.process)))return oe.apply(this,arguments);void 0!==t&&(rZ.exitCode=t);var r=oe.apply(this,arguments);return i4("exit",rZ.exitCode,null),i4("afterexit",rZ.exitCode,null),r;};}else rQ=function(){return function(){};};const or=(e,t="SIGTERM",r={})=>{let n=e(t);return on(e,t,r,n),n;},on=(e,t,r,n)=>{if(!oi(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},os(r));i.unref&&i.unref();},oi=(e,{forceKillAfterTimeout:t},r)=>oo(e)&&!1!==t&&r,oo=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),os=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oa=(e,t)=>{e.kill()&&(t.isCanceled=!0);},ol=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oc=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{ol(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},ou=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},od=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,of=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!od(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oh=e=>{null!==e.stdout&&(e.pipeStdout=of.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=of.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=of.bind(void 0,e,"all"));};r0={},r1=rf.constants,r2=rr.promisify,r3={},r4=rh.PassThrough,r3=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r4({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const om=r2(rh.pipeline);class ov extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r0=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),r0.array=(e,t)=>w(e,{...t,array:!0}),r0.MaxBufferError=ov,r6={},r5=rh.PassThrough,r6=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r5({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const og=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oE=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.readFileSync)(t)),oy=e=>{let t=oE(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},ow=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.createReadStream)(t)),ox=(e,t)=>{let r=ow(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},ob=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},oI=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},oS=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},oR=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=oS(e,{encoding:n,buffer:i,maxBuffer:o}),l=oS(t,{encoding:n,buffer:i,maxBuffer:o}),c=oS(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},oI(e,a),oI(t,l),oI(r,c)]);}},oO=(async()=>{})().constructor.prototype,oT=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oO,e)]),oC=(e,t)=>{for(let[r,n]of oT){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},o$=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),oA=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],o_=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oN=(e,t)=>oA(e,t).join(" "),oP=(e,t)=>oA(e,t).map(e=>o_(e)).join(" "),oL=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},ok=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oD=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oU=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=oD(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return oD(s,Array.isArray(a)?a.map(e=>ok(e)):[ok(a)],o.endsWith(" "));},oj=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oU({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oM=(0,rm.debuglog)("execa").enabled,oF=(e,t)=>(e+"").padStart(t,"0"),oG=()=>{let e=new Date();return`${oF(e.getHours(),2)}:${oF(e.getMinutes(),2)}:${oF(e.getSeconds(),2)}.${oF(e.getMilliseconds(),3)}`;},oB=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${oG()}] ${e} +`);},oH=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oV=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oM,...r}).env=oH(r),r.stdio=iY(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oq=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oX=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oK=(e={})=>({preferLocal:!0,...oX(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oj(n,i);return x(o,s,oK(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oj(e,r);return b(n,i,oK(t));},r;}();const oz={stdio:"inherit",shell:!0},oW=/^~(?=$|\/|\\)/;rR=rb("g0Mwp"),r8={},r9=rb("24j9d"),r7=rv.env.npm_package_json,nt=!!((ne=rv.env.npm_config_user_agent)&&ne.startsWith("npm")),nr=!!(r7&&r7.endsWith("package.json")),nn=nt||nr,ni=!!(ne&&ne.startsWith("yarn")),no=nn||ni,ns=n3.homedir(),na=process.env.XDG_CONFIG_HOME||n4.join(ns,".config","simple-update-notifier"),nl=function(e){return n4.join(na,"".concat(e.replace("@","").replace("/","__"),".json"));},nc=function(){n6.existsSync(na)||n6.mkdirSync(na,{recursive:!0});},nu=function(e){var t=nl(e);try{if(!n6.existsSync(t))return;return JSON.parse(n6.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},np=function(e){var t=nl(e);n6.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nd=function(e,t){return A(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n9.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nf=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return A(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(nc(),e=nu(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nE=function(e){return oY?e.replace(/(\s+)/g,"\\$1"):oQ(.../(\d+\.\d+)\.(\d+)/.exec(oJ).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rb("fQ0Jj"),t=function(e){return e.split("").reverse().join("");},ny=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(ny={});const oZ=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",o0=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,f=oZ({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} +${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},o1=["stdin","stdout","stderr"],o2=e=>o1.some(t=>void 0!==e[t]),o3=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return o1.map(t=>e[t]);if(o2(e))throw Error("It's not possible to provide `stdio` in combination with one of "+o1.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,o1.length)},(e,r)=>t[r]);},o4=(e,t="SIGTERM",r={})=>{let n=e(t);return o6(e,t,r,n),n;},o6=(e,t,r,n)=>{if(!o5(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o9(r));i.unref&&i.unref();},o5=(e,{forceKillAfterTimeout:t},r)=>o8(e)&&!1!==t&&r,o8=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o9=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o7=(e,t)=>{e.kill()&&(t.isCanceled=!0);},se=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},st=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{se(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},sr=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},sn=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},si=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,so=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!si(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},ss=e=>{null!==e.stdout&&(e.pipeStdout=so.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=so.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=so.bind(void 0,e,"all"));},sa=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sl=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.readFileSync)(t)),sc=e=>{let t=sl(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},su=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.createReadStream)(t)),sp=(e,t)=>{let r=su(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sd=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sf=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sh=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},sm=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sh(e,{encoding:n,buffer:i,maxBuffer:o}),l=sh(t,{encoding:n,buffer:i,maxBuffer:o}),c=sh(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},sf(e,a),sf(t,l),sf(r,c)]);}},sv=(async()=>{})().constructor.prototype,sg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sv,e)]),sE=(e,t)=>{for(let[r,n]of sg){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sy=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sw=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sx=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sb=(e,t)=>sw(e,t).join(" "),sI=(e,t)=>sw(e,t).map(e=>sx(e)).join(" "),sS=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sR=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sO=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sR(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sR(s,Array.isArray(a)?a.map(e=>sS(e)):[sS(a)],o.endsWith(" "));},sT=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sO({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sC=(0,rm.debuglog)("execa").enabled,s$=(e,t)=>(e+"").padStart(t,"0"),sA=()=>{let e=new Date();return`${s$(e.getHours(),2)}:${s$(e.getMinutes(),2)}:${s$(e.getSeconds(),2)}.${s$(e.getMilliseconds(),3)}`;},s_=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${sA()}] ${e} +`);},sN=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sP=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sC,...r}).env=sN(r),r.stdio=o3(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sL=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sk=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sD=(e={})=>({preferLocal:!0,...sk(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sT(n,i);return U(o,s,sD(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sT(e,r);return function(e,t,r){let n;let i=sP(e,t,r),o=sb(e,t),s=sI(e,t);s_(s,i.options);let a=sc(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw o0({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sL(i.options,n.stdout,n.error),u=sL(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=o0({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sD(t));},r;}(),rN=rb("eYpZW"),ng=rb("6afW1");const sU={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sj=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sM=$("~/.cpprc");let sF=!1;rR=rb("g0Mwp"),nw=rb("hImoI");const{appendFile:sG}=n6.promises;let sB=!1,sH=!1;const sV=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t8=nx||(nx={}))[t8.NameDashVersion=0]="NameDashVersion",t8[t8.NameEqualsVersion=1]="NameEqualsVersion",t8[t8.Name=2]="Name",t8[t8.None=3]="None",nv=rb("lUL8q"),nb=rb("e19ul"),nI=rb("jGHPG"),nb=rb("e19ul");let sq=!1;rR=rb("g0Mwp"),ng=rb("6afW1"),nb=rb("e19ul");let sX=!1;rR=rb("g0Mwp"),rR=rb("g0Mwp");let sK=!1,sz=!1;const sW=/Version\s*:\s*(.*)/g;nS={},nR=n4.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nO=nS&&nS.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nT=nS&&nS.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nC=nS&&nS.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nO(t,e,r);return nT(t,e),t;},n$=nS&&nS.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},nA=nS&&nS.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nS,"__esModule",{value:!0}),nS.evaluateVersions=nS.isExplicitVersion=nS.findFromManifest=nS.getManifestFromRepo=nS.findAllVersions=nS.find=nS.cacheFile=nS.cacheDir=nS.extractZip=nS.extractXar=nS.extractTar=nS.extract7z=nS.downloadTool=nS.HTTPError=void 0;const sY=nC(rb("lUL8q")),sJ=nC(rb("jGHPG")),sQ=nC(n6),sZ=nC(rb("aUW7f")),s0=nC(n3),s1=nC(n4),s2=nC(rb("l6zH0")),s3=nC(rb("1mmqj")),s4=nC(rh),s6=nC(rr),s5=nA(rb("b4HqL"));n_=rb("ioM8U"),nP=(nN={},nN.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),nL=nN&&nN.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nk=nN&&nN.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nP(t,e,r);return nL(t,e),t;},nD=nN&&nN.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nN,"__esModule",{value:!0}),nN.RetryHelper=void 0;const s8=nk(rb("lUL8q"));nN.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nD(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s9 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nS.HTTPError=s9;const s7="win32"===process.platform,ae="darwin"===process.platform;nS.downloadTool=function(e,t,r,n){return n$(this,void 0,void 0,function*(){t=t||s1.join(eb(),s5.default()),yield sJ.mkdirP(s1.dirname(t)),sY.debug("Downloading "+e),sY.debug("Destination "+t);let i=eI("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eI("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nN.RetryHelper(3,i,o);return yield s.execute(()=>n$(this,void 0,void 0,function*(){return yield function(e,t,r,n){return n$(this,void 0,void 0,function*(){if(sQ.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s2.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sY.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s9(o.message.statusCode);throw sY.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s6.promisify(s4.pipeline),a=eI("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sQ.createWriteStream(t)),sY.debug("download complete"),l=!0,t;}finally{if(!l){sY.debug("download failed");try{yield sJ.rmRF(t);}catch(e){sY.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s9)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nS.extract7z=function(e,t,r){return n$(this,void 0,void 0,function*(){rt.ok(s7,"extract7z() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sY.isDebug()?"-bb1":"-bb0";yield n_.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=s1.join(nR,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sJ.which("powershell",!0);yield n_.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nS.extractTar=function(e,t,r="xz"){return n$(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ev(t),sY.debug("Checking tar --version");let i="";yield n_.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sY.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sY.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s7&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield n_.exec("tar",n),t;});},nS.extractXar=function(e,t,r=[]){return n$(this,void 0,void 0,function*(){let n;rt.ok(ae,"extractXar() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sY.isDebug()&&n.push("-v");let i=yield sJ.which("xar",!0);return yield n_.exec(`"${i}"`,Array.from(new Set(n))),t;});},nS.extractZip=function(e,t){return n$(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ev(t),s7?yield function(e,t){return n$(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sJ.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sY.debug("Using pwsh at path: "+i),yield n_.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sJ.which("powershell",!0);sY.debug("Using powershell at path: "+t),yield n_.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return n$(this,void 0,void 0,function*(){let r=yield sJ.which("unzip",!0),n=[e];sY.isDebug()||n.unshift("-q"),n.unshift("-o"),yield n_.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nS.cacheDir=function(e,t,r,n){return n$(this,void 0,void 0,function*(){if(r=s3.clean(r)||r,n=n||s0.arch(),sY.debug(`Caching tool ${t} ${r} ${n}`),sY.debug("source dir: "+e),!sQ.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of sQ.readdirSync(e)){let r=s1.join(e,t);yield sJ.cp(r,i,{recursive:!0});}return eE(t,r,n),i;});},nS.cacheFile=function(e,t,r,n,i){return n$(this,void 0,void 0,function*(){if(n=s3.clean(n)||n,i=i||s0.arch(),sY.debug(`Caching tool ${r} ${n} ${i}`),sY.debug("source file: "+e),!sQ.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),s=s1.join(o,t);return sY.debug("destination file "+s),yield sJ.cp(e,s),eE(r,n,i),o;});},nS.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||s0.arch(),ey(t)||(t=ew(em(e,r),t));let n="";if(t){t=s3.clean(t)||"";let i=s1.join(ex(),e,t,r);sY.debug("checking cache: "+i),sQ.existsSync(i)&&sQ.existsSync(`${i}.complete`)?(sY.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sY.debug("not found");}return n;},nS.findAllVersions=em,nS.getManifestFromRepo=function(e,t,r,n="master"){return n$(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s2.HttpClient("tool-cache"),a={};r&&(sY.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sY.debug("Invalid json");}}return i;});},nS.findFromManifest=function(e,t,r,n=s0.arch()){return n$(this,void 0,void 0,function*(){return yield sZ._findMatch(e,t,r,n);});},nS.isExplicitVersion=ey,nS.evaluateVersions=ew,nb=rb("e19ul"),nU=rb("h5EpL"),nj=rb("eekMY"),nI=rb("jGHPG"),rR=rb("g0Mwp"),rR=rb("g0Mwp"),nb=rb("e19ul"),rS=rb("l5aZl"),ng=rb("6afW1"),Object.defineProperty(nM={},"__esModule",{value:!0}),nM.retryAsPromised=nM.TimeoutError=void 0;class at extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nM.TimeoutError=at,nM.retryAsPromised=eA,nM.default=eA;let ar=!1;nv=rb("lUL8q"),nF={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nG=Array.prototype.slice,nB=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const an=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n6.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n6.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n6.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n6.mkdirSync,t;},ai=(e,t,r)=>{let n=(0,n4.dirname)(e),i={...an(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,i,ai(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ao=Object.assign(async(e,t,r)=>{let n=an(t);n.recursive=!1;let i=(0,n4.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ao(i,n).then(t=>ao(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:ai}),as=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?as(e,(0,n4.dirname)(t),t):void 0);},aa=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?aa(e,(0,n4.dirname)(t),t):void 0;}},al=(e,t)=>{let r=an(t);if(r.recursive=!0,(0,n4.dirname)(e)===e)return r.mkdirSync(e,r);let n=aa(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,r);throw t;}},ac=Object.assign(async(e,t)=>{let r={...an(t),recursive:!0};return(0,n4.dirname)(e)===e?await r.mkdirAsync(e,r):as(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ao(e,r);throw t;}));},{sync:al}),au=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,ap=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n4.resolve)(e),"win32"===au){let{root:t}=(0,n4.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ad=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),af=+ad[0]>10||10==+ad[0]&&+ad[1]>=12,ah=af?e=>an(e).mkdirSync===n6.mkdirSync:()=>!1,am=Object.assign(af?e=>an(e).mkdir===n6.mkdir:()=>!1,{sync:ah}),av=(e,t)=>{e=ap(e);let r=an(t);return ah(r)?al(e,r):ai(e,r);},ag=Object.assign(async(e,t)=>{e=ap(e);let r=an(t);return am(r)?ac(e,r):ao(e,r);},{mkdirpSync:av,mkdirpNative:ac,mkdirpNativeSync:al,mkdirpManual:ao,mkdirpManualSync:ai,sync:av,native:ac,nativeSync:al,manual:ao,manualSync:ai,useNative:am,useNativeSync:ah});ng=rb("6afW1"),nb=rb("e19ul"),n_=rb("ioM8U"),rS=rb("l5aZl"),rR=rb("g0Mwp"),ng=rb("6afW1"),nb=rb("e19ul"),n_=rb("ioM8U"),rR=rb("g0Mwp"),nH=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rg.URL(t),!0;}catch{return!1;}},nV=async e=>{if(!nH(e))return!1;let t=await ej(e,"HEAD");return!!t||!!(t=await ej(e,"GET"));},nU=rb("h5EpL"),nq=rb("dKY2K"),nX=rb("SUO5C");const aE=/v?(\d\S*)/,ay={llvm:eH(),clangtidy:eH(),clangformat:eH(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:k()?"1.10.0-1":"1.10.0",gcc:k()?"13.2.1-3":"13"},aw={pip:"22.2.0",python:"3.7.9"},ax={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ab=eU(e2,{isPromise:!0});rR=rb("g0Mwp"),Object.defineProperty(nK={},"__esModule",{value:!0}),nK.getUbuntuVersion=void 0,nK.getUbuntuVersion=e6;const aI=eU(e5,{isPromise:!0}),aS=eU(tt,{isPromise:!0}),aR=eU(tr,{isPromise:!0}),aO=eU(tn,{isPromise:!0});rR=rb("g0Mwp"),nb=rb("e19ul"),ng=rb("6afW1");const aT=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aC=eU(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rd).release()).split(".")[0];let[t,r]=aT.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rS=rb("l5aZl"),rR=rb("g0Mwp"),ng=rb("6afW1"),nb=rb("e19ul"),nU=rb("h5EpL"),nz=rb("3nHUu"),n_=rb("ioM8U"),rR=rb("g0Mwp"),nW=n4.resolve(__dirname,"../../src/gcc");const a$={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nz=rb("3nHUu"),nX=rb("SUO5C"),rR=rb("g0Mwp"),nb=rb("e19ul"),nb=rb("e19ul"),nY=n4.resolve(__dirname,"../../src/kcov"),rS=rb("l5aZl"),rR=rb("g0Mwp"),ng=rb("6afW1"),nb=rb("e19ul"),nv=rb("lUL8q"),rR=rb("g0Mwp");class aA extends Error{constructor(e){super(e),this.name="TimeoutError";}}class a_ extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aN=e=>void 0===globalThis.DOMException?new a_(e):new DOMException(e),aP=e=>{let t=void 0===e.reason?aN("This operation was aborted."):e.reason;return t instanceof Error?t:aN(t);};nb=rb("e19ul"),rR=rb("g0Mwp"),nv=rb("lUL8q");const aL=rv.env["ProgramFiles(x86)"],ak=[rv.env["ProgramFiles(x86)"],rv.env.ProgramFiles],aD=["Enterprise","Professional","Community","BuildTools"],aU=["2022","2019","2017"],aj={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nJ=t$;const aM=`${aL}\\Microsoft Visual Studio\\Installer`;nQ=tA,nZ=function(e,t,r,n,i,o){if("win32"!=rv.platform){nv.info("This is not a Windows virtual environment, bye!");return;}rv.env.PATH+=n4.delimiter+aM;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tA(o)}" ${a.join(" ")}`;nv.debug("vcvars command-line: "+l);let c=ri.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nv.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nv.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nv.exportVariable(t,r));}nv.endGroup(),nv.info("Configured Developer Command Prompt");},ng=rb("6afW1");const aF=12e5,{readFile:aG,writeFile:aB,chmod:aH}=n6.promises;(t9=n0||(n0={}))[t9.All=0]="All",t9[t9.ClangFormat=1]="ClangFormat",t9[t9.Core=2]="Core",rR=rb("g0Mwp"),nb=rb("e19ul"),nj=rb("eekMY");const aV=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aq=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aX=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aK=new Map(),az={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},aW="17.0.6";n1=n4.resolve(__dirname,"../../src/llvm");const aY=eU(tH,{isPromise:!0}),aJ=eU(tq,{isPromise:!0}),aQ=eU(tX,{isPromise:!0});rS=rb("l5aZl"),nb=rb("e19ul"),rR=rb("g0Mwp"),ng=rb("6afW1"),n2=n4.resolve(__dirname,"../../src/msvc"),nb=rb("e19ul"),nb=rb("e19ul"),rR=rb("g0Mwp"),ng=rb("6afW1"),nb=rb("e19ul");let aZ=!1;const a0={nala:tQ,cmake:eP,ninja:tI,python:eV,vcpkg:t3,bazel:ed,conan:function(e,t,r){return e9("conan",e);},meson:function(e,t,r){return e9("meson",e);},gcovr:function(e,t,r){return e9("gcovr",e);},opencppcoverage:tZ,llvm:tB,gcc:tg,choco:el,brew:eo,powershell:t1,ccache:function(e,t,r){switch(process.platform){case"win32":return ec("ccache",e);case"darwin":return ea("ccache",e);case"linux":if(k())return ef("ccache",e);if(L())return eu([{name:"ccache",version:e}]);if(D())return z([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return ec("sccache",e);case"linux":case"darwin":return ea("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tf,graphviz:tc,cppcheck:ta,clangtidy:function(e,t,r){return tV(e,t,r);},clangformat:function(e,t,r){return tV(e,t,r,n0.ClangFormat);},msvc:tY,vcvarsall:t_,kcov:tC,make:tW,task:function(e,t,r){return e_("task",e,t2,t,r);},sevenzip:eS},a1=Object.keys(a0),a2=["compiler","architecture","timeout",...a1];nv=rb("lUL8q"),rR=rb("g0Mwp"),nX=rb("SUO5C"),t5(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rR.error)("main() panicked!"),(0,rR.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map \ No newline at end of file diff --git a/dist/actions/setup-cpp.js.map b/dist/actions/setup-cpp.js.map index 6f767a9b..a14f9ef7 100644 --- a/dist/actions/setup-cpp.js.map +++ b/dist/actions/setup-cpp.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rF","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rj","sync","command","path","rG","pathExt","n1","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iI","file","original","h","rD","rt","spawn","rK","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ra","execPath","URL","rl","fileURLToPath","ro","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r0","getBufferedLength","rQ","MAX_LENGTH","bufferedData","getBufferedValue","od","on","of","x","oG","o$","oA","oM","oa","rs","ChildProcess","oR","reject","iV","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","oO","os","ol","kill","i7","bind","cancel","oi","rz","exitCode","signal","ob","oB","aborted","failed","oE","oy","op","b","ov","spawnSync","input","status","I","getuid","CI","rT","nothrow","S","oq","o_","O","T","R","map","C","SUDO_USER","n2","statSync","isDirectory","$","n0","homedir","replace","oX","A","next","throw","done","value","then","apply","_","return","call","label","ops","pop","trys","sent","Symbol","iterator","N","r4","pkg","nd","rb","warning","message","stack","P","Array","isArray","L","k","D","U","sA","sy","sw","sC","o7","sm","oJ","sv","o9","se","o1","o5","sd","s_","sl","sc","sn","j","stdio","M","sL","nm","nv","shouldEscapeSpace","rx","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nf","info","exportVariable","G","setFailed","F","sk","some","test","PATH","split","includes","addPath","B","H","appendFileSync","sD","sU","nh","pathExists","readFileSync","V","Set","writeFileSync","q","z","name","version","DEBIAN_FRONTEND","sM","W","sF","Y","flatMap","repositories","K","sG","binDir","X","ng","default","trim","Q","J","Z","ee","toString","sj","et","startsWith","er","ny","dirname","tmpdir","nw","mkdirP","NONINTERACTIVE","en","ei","sB","arch","eo","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","es","sH","TMP","TEMP","Path","extendEnv","ea","el","ec","eu","sV","sq","ep","matchAll","sX","ed","sJ","sQ","eE","sW","existsSync","readdirSync","ev","ef","ey","s3","sz","eh","s0","clean","sK","debug","rmRF","em","valid","eg","sort","gt","satisfies","RUNNER_TOOL_CACHE","t9","ok","RUNNER_TEMP","ew","rv","ex","eb","eI","eS","eR","eO","eT","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","s9","current","catch","RegExp","Math","pow","eC","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nx","installDir","nD","downloadTool","s7","cacheDir","e$","nL","nk","addExeExt","extractTar","eA","e_","nj","eN","eP","eL","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nU","nM","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","ek","n6","request","method","statusCode","end","eD","from","filter","nB","localeCompare","eU","nG","has","JSON","stringify","ej","am","nC","getExecOutput","console","eM","eF","eG","eV","bin","ez","eB","eH","e8","e5","upgrade","usePipx","tn","isLibrary","eX","setupActionsPython","ry","eq","eK","ag","python","eW","eJ","eY","pip","eQ","eZ","e0","e1","aE","parseInt","av","e2","execFile","encoding","shell","e3","e4","nV","getUbuntuVersion","e6","aI","user","tt","PIPX_HOME","ax","PIPX_BIN_DIR","ab","ay","tr","e9","ah","e7","te","aw","findIndex","ti","to","ts","ta","tl","ArchiveHdi","read","extract","tc","tu","tp","aR","notice","td","tf","aO","releaseName","fileSuffix","th","tv","tg","tm","nq","tE","nX","ty","tw","tx","tb","tI","tS","nK","tR","tO","ak","tT","execSync","entries","aL","aN","aP","a_","tC","nY","t$","aU","startGroup","milliseconds","fallback","customTimers","sign","aA","addEventListener","Number","POSITIVE_INFINITY","aT","finally","clear","tA","endGroup","aJ","t1","t_","tN","aF","aj","NODE_DEBUG","tP","aM","rm","tL","tk","tD","aB","tU","aH","aV","get","aG","aq","aX","tj","tM","aK","tV","tF","tG","aW","tq","nJ","All","nH","az","tB","tH","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","nQ","tX","tK","nz","nW","tz","nZ","tW","tY","tJ","tQ","tZ","t0","aY","addShExt","addShRelativePrefix","t2","compiler","t3","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","aZ","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rR","create","autoloadLocales","addLocale","rO","rI","rS","forEach","cppcheck","gcovr","aQ","isCI","now","parseFloat","format","success","t4","t6","r_","rN","rP","rL","rB","rH","rY","rZ","r1","r3","r5","r8","r9","r7","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nF","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","random","rng","n3","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n4","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t5","connect","localAddress","defaultPort","t7","inherits","t8","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","appendFile","writeFile","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","re","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","rr","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rn","HandleTimeout","rw","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","rC","n5","n9","r$","n8","n7","groups","getgroups","rA","ie","ii","it","ir","io","_ISEXE_TEST_PLATFORM_","is","isexe","ia","posix","il","ic","iu","source","ip","pathEnv","pathExtExe","ih","im","rk","rU","iv","OSTYPE","ig","rM","iE","iy","colon","iw","ix","rV","rq","rX","openSync","readSync","closeSync","ib","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iS","getOwnPropertyDescriptor","iR","iO","getPrototypeOf","iT","iC","Function","i$","iA","i_","WeakMap","iN","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","iP","iD","ik","iL","number","action","description","standard","iU","forced","ij","iM","signals","rc","supported","iF","iG","iB","iH","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iq","iX","iK","iz","reallyExit","pid","iW","iY","iJ","iQ","iZ","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i0","i3","i2","i8","i6","rW","equal","i4","alwaysLast","unload","i1","i9","i5","oe","ot","unref","forceKillAfterTimeout","or","SIGTERM","isFinite","oo","killSignal","race","cleanup","detached","oc","ou","createWriteStream","pipeStdout","pipeStderr","pipeAll","ru","rp","PassThrough","array","objectMode","setEncoding","pipeline","rJ","buffer","MaxBufferError","r2","readable","isEmpty","oh","om","inputFile","og","createReadStream","ow","ox","oI","oS","oT","oC","oN","ri","isBuffer","oP","oL","templates","expressions","template","oD","rd","debuglog","enabled","oU","padStart","oj","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oF","preferLocal","localDir","stripFinalNewline","windowsHide","oH","oV","rf","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r6","padEnd","isTTY","shouldNotifyInNpmScript","oK","oz","release","oW","oY","oQ","oZ","o0","o2","o3","o6","o4","o8","st","sr","si","so","ss","sa","su","sp","sf","sh","sg","sE","sx","sb","sI","sS","sR","sO","sT","s$","sN","sP","nE","nR","sY","sZ","s1","s2","nT","s4","nN","n$","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s6","httpStatusCode","new","target","HTTPError","s5","s8","nO","authorization","statusMessage","extract7z","nb","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","ae","fs","mkdirAsync","statAsync","at","ar","an","ai","ao","as","aa","__TESTING_MKDIRP_PLATFORM__","al","root","ac","__TESTING_MKDIRP_NODE_VERSION__","au","ap","ad","af","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rh","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aS","aC","a$","globalThis","DOMException","reason","ProgramFiles","aD","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-9d563254babe9e19.js","../../node_modules/@parcel/runtime-js/lib/runtime-53caae4b0bf6f856.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $fnyYE$os = require(\"os\");\nvar $fnyYE$path = require(\"path\");\nvar $fnyYE$fs = require(\"fs\");\nvar $fnyYE$crypto = require(\"crypto\");\nvar $fnyYE$http = require(\"http\");\nvar $fnyYE$https = require(\"https\");\nrequire(\"net\");\nvar $fnyYE$tls = require(\"tls\");\nvar $fnyYE$events = require(\"events\");\nvar $fnyYE$assert = require(\"assert\");\nvar $fnyYE$util = require(\"util\");\nvar $fnyYE$nodefs = require(\"node:fs\");\nvar $fnyYE$child_process = require(\"child_process\");\nvar $fnyYE$string_decoder = require(\"string_decoder\");\nvar $fnyYE$timers = require(\"timers\");\nvar $fnyYE$nodebuffer = require(\"node:buffer\");\nvar $fnyYE$nodepath = require(\"node:path\");\nvar $fnyYE$nodechild_process = require(\"node:child_process\");\nvar $fnyYE$nodeprocess = require(\"node:process\");\nvar $fnyYE$nodeurl = require(\"node:url\");\nvar $fnyYE$nodeos = require(\"node:os\");\nvar $fnyYE$buffer = require(\"buffer\");\nvar $fnyYE$stream = require(\"stream\");\nvar $fnyYE$nodeutil = require(\"node:util\");\nvar $fnyYE$process = require(\"process\");\nvar $fnyYE$url = require(\"url\");\nvar $fnyYE$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"l5aZl\", function(module, exports) {\n\"use strict\";\n\nvar $48im1 = parcelRequire(\"48im1\");\nconst $f59296ad9c7b5e96$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $48im1.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$48im1.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $f59296ad9c7b5e96$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$f59296ad9c7b5e96$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $f59296ad9c7b5e96$var$env && $f59296ad9c7b5e96$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$f59296ad9c7b5e96$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $f59296ad9c7b5e96$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($f59296ad9c7b5e96$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($f59296ad9c7b5e96$var$env.BUILD_ID || // Jenkins, Cloudbees\n$f59296ad9c7b5e96$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$f59296ad9c7b5e96$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$f59296ad9c7b5e96$var$env.CI_APP_ID || // Appflow\n$f59296ad9c7b5e96$var$env.CI_BUILD_ID || // Appflow\n$f59296ad9c7b5e96$var$env.CI_BUILD_NUMBER || // Appflow\n$f59296ad9c7b5e96$var$env.CI_NAME || // Codeship and others\n$f59296ad9c7b5e96$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$f59296ad9c7b5e96$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $f59296ad9c7b5e96$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$f59296ad9c7b5e96$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $f59296ad9c7b5e96$var$env[obj.env] && $f59296ad9c7b5e96$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$f59296ad9c7b5e96$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $f59296ad9c7b5e96$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"48im1\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"g0Mwp\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $074336114a247abe$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $074336114a247abe$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $074336114a247abe$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $074336114a247abe$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $074336114a247abe$export$a80b3bd66acc52ff);\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\nfunction $074336114a247abe$export$a3bc9b8ed74fc(err) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$491112666e282270(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$b31f6ae88848cf15(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$a80b3bd66acc52ff(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"lUL8q\", function(module, exports) {\n\"use strict\";\nvar $ff4363edb75397e4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ff4363edb75397e4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ff4363edb75397e4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ff4363edb75397e4$var$__createBinding(result, mod, k);\n }\n $ff4363edb75397e4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ff4363edb75397e4$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $87j2H = parcelRequire(\"87j2H\");\n\nvar $7Dlql = parcelRequire(\"7Dlql\");\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\n\nconst $ff4363edb75397e4$var$os = $ff4363edb75397e4$var$__importStar($fnyYE$os);\n\nconst $ff4363edb75397e4$var$path = $ff4363edb75397e4$var$__importStar($fnyYE$path);\n\nvar $5oMT9 = parcelRequire(\"5oMT9\");\n/**\n * The code to exit an action\n */ var $ff4363edb75397e4$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($ff4363edb75397e4$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$exportVariable(name, val) {\n const convertedVal = $gYkCt.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"ENV\", $7Dlql.prepareKeyValueMessage(name, val));\n $87j2H.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $ff4363edb75397e4$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $ff4363edb75397e4$var$setSecret(secret) {\n $87j2H.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $ff4363edb75397e4$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $ff4363edb75397e4$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $7Dlql.issueFileCommand(\"PATH\", inputPath);\n else $87j2H.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$ff4363edb75397e4$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $ff4363edb75397e4$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $ff4363edb75397e4$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $ff4363edb75397e4$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $ff4363edb75397e4$var$getMultilineInput(name, options) {\n const inputs = $ff4363edb75397e4$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $ff4363edb75397e4$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $ff4363edb75397e4$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $ff4363edb75397e4$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $ff4363edb75397e4$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"OUTPUT\", $7Dlql.prepareKeyValueMessage(name, value));\n process.stdout.write($ff4363edb75397e4$var$os.EOL);\n $87j2H.issueCommand(\"set-output\", {\n name: name\n }, $gYkCt.toCommandValue(value));\n}\nmodule.exports.setOutput = $ff4363edb75397e4$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $ff4363edb75397e4$var$setCommandEcho(enabled) {\n $87j2H.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $ff4363edb75397e4$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $ff4363edb75397e4$var$setFailed(message) {\n process.exitCode = $ff4363edb75397e4$var$ExitCode.Failure;\n $ff4363edb75397e4$var$error(message);\n}\nmodule.exports.setFailed = $ff4363edb75397e4$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $ff4363edb75397e4$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $ff4363edb75397e4$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $ff4363edb75397e4$var$debug(message) {\n $87j2H.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $ff4363edb75397e4$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$error(message, properties = {}) {\n $87j2H.issueCommand(\"error\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $ff4363edb75397e4$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$warning(message, properties = {}) {\n $87j2H.issueCommand(\"warning\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $ff4363edb75397e4$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$notice(message, properties = {}) {\n $87j2H.issueCommand(\"notice\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $ff4363edb75397e4$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $ff4363edb75397e4$var$info(message) {\n process.stdout.write(message + $ff4363edb75397e4$var$os.EOL);\n}\nmodule.exports.info = $ff4363edb75397e4$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $ff4363edb75397e4$var$startGroup(name) {\n $87j2H.issue(\"group\", name);\n}\nmodule.exports.startGroup = $ff4363edb75397e4$var$startGroup;\n/**\n * End an output group.\n */ function $ff4363edb75397e4$var$endGroup() {\n $87j2H.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $ff4363edb75397e4$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $ff4363edb75397e4$var$group(name, fn) {\n return $ff4363edb75397e4$var$__awaiter(this, void 0, void 0, function*() {\n $ff4363edb75397e4$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $ff4363edb75397e4$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $ff4363edb75397e4$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"STATE\", $7Dlql.prepareKeyValueMessage(name, value));\n $87j2H.issueCommand(\"save-state\", {\n name: name\n }, $gYkCt.toCommandValue(value));\n}\nmodule.exports.saveState = $ff4363edb75397e4$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $ff4363edb75397e4$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $ff4363edb75397e4$var$getState;\nfunction $ff4363edb75397e4$var$getIDToken(aud) {\n return $ff4363edb75397e4$var$__awaiter(this, void 0, void 0, function*() {\n return yield $5oMT9.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $ff4363edb75397e4$var$getIDToken;\n\nvar $jaLnB = parcelRequire(\"jaLnB\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $jaLnB.summary;\n }\n});\n\nvar $jaLnB = parcelRequire(\"jaLnB\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $jaLnB.markdownSummary;\n }\n});\n\nvar $eCzrY = parcelRequire(\"eCzrY\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"87j2H\", function(module, exports) {\n\"use strict\";\nvar $5e8dbfa4d1e1deba$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $5e8dbfa4d1e1deba$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $5e8dbfa4d1e1deba$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $5e8dbfa4d1e1deba$var$__createBinding(result, mod, k);\n }\n $5e8dbfa4d1e1deba$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $5e8dbfa4d1e1deba$var$os = $5e8dbfa4d1e1deba$var$__importStar($fnyYE$os);\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $5e8dbfa4d1e1deba$var$issueCommand(command, properties, message) {\n const cmd = new $5e8dbfa4d1e1deba$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $5e8dbfa4d1e1deba$var$os.EOL);\n}\nmodule.exports.issueCommand = $5e8dbfa4d1e1deba$var$issueCommand;\nfunction $5e8dbfa4d1e1deba$var$issue(name, message = \"\") {\n $5e8dbfa4d1e1deba$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $5e8dbfa4d1e1deba$var$issue;\nconst $5e8dbfa4d1e1deba$var$CMD_STRING = \"::\";\nclass $5e8dbfa4d1e1deba$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $5e8dbfa4d1e1deba$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$5e8dbfa4d1e1deba$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$5e8dbfa4d1e1deba$var$CMD_STRING}${$5e8dbfa4d1e1deba$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $5e8dbfa4d1e1deba$var$escapeData(s) {\n return $gYkCt.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $5e8dbfa4d1e1deba$var$escapeProperty(s) {\n return $gYkCt.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"gYkCt\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $c5b23e90a68f2b2b$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $c5b23e90a68f2b2b$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $c5b23e90a68f2b2b$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $c5b23e90a68f2b2b$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"7Dlql\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $58eccb47c7657cb4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $58eccb47c7657cb4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $58eccb47c7657cb4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $58eccb47c7657cb4$var$__createBinding(result, mod, k);\n }\n $58eccb47c7657cb4$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $58eccb47c7657cb4$var$fs = $58eccb47c7657cb4$var$__importStar($fnyYE$fs);\n\nconst $58eccb47c7657cb4$var$os = $58eccb47c7657cb4$var$__importStar($fnyYE$os);\n\nvar $hpOkk = parcelRequire(\"hpOkk\");\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\nfunction $58eccb47c7657cb4$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$58eccb47c7657cb4$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $58eccb47c7657cb4$var$fs.appendFileSync(filePath, `${$gYkCt.toCommandValue(message)}${$58eccb47c7657cb4$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $58eccb47c7657cb4$var$issueFileCommand;\nfunction $58eccb47c7657cb4$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$hpOkk.default()}`;\n const convertedValue = $gYkCt.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$58eccb47c7657cb4$var$os.EOL}${convertedValue}${$58eccb47c7657cb4$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $58eccb47c7657cb4$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"hpOkk\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $cadbcf52bebac8dd$export$2e2bcd8739ae039);\n\nvar $g7JSE = parcelRequire(\"g7JSE\");\n\nvar $jSP38 = parcelRequire(\"jSP38\");\nfunction $cadbcf52bebac8dd$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $g7JSE.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $jSP38.default)(rnds);\n}\nvar $cadbcf52bebac8dd$export$2e2bcd8739ae039 = $cadbcf52bebac8dd$var$v4;\n\n});\nparcelRegister(\"g7JSE\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $bbd0e3ad974fef75$export$2e2bcd8739ae039);\n\nconst $bbd0e3ad974fef75$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $bbd0e3ad974fef75$var$poolPtr = $bbd0e3ad974fef75$var$rnds8Pool.length;\nfunction $bbd0e3ad974fef75$export$2e2bcd8739ae039() {\n if ($bbd0e3ad974fef75$var$poolPtr > $bbd0e3ad974fef75$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($fnyYE$crypto))).randomFillSync($bbd0e3ad974fef75$var$rnds8Pool);\n $bbd0e3ad974fef75$var$poolPtr = 0;\n }\n return $bbd0e3ad974fef75$var$rnds8Pool.slice($bbd0e3ad974fef75$var$poolPtr, $bbd0e3ad974fef75$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"jSP38\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $e79aa8d3e7d7e8bc$export$2e2bcd8739ae039);\n\nvar $2OgOb = parcelRequire(\"2OgOb\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $e79aa8d3e7d7e8bc$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$e79aa8d3e7d7e8bc$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $e79aa8d3e7d7e8bc$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 0]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 1]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 2]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 3]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 4]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 5]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 6]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 7]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 8]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 9]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 10]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 11]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 12]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 13]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 14]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $2OgOb.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $e79aa8d3e7d7e8bc$export$2e2bcd8739ae039 = $e79aa8d3e7d7e8bc$var$stringify;\n\n});\nparcelRegister(\"2OgOb\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $20bd4a0f1d30b575$export$2e2bcd8739ae039);\n\nvar $2UMly = parcelRequire(\"2UMly\");\nfunction $20bd4a0f1d30b575$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $2UMly.default).test(uuid);\n}\nvar $20bd4a0f1d30b575$export$2e2bcd8739ae039 = $20bd4a0f1d30b575$var$validate;\n\n});\nparcelRegister(\"2UMly\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $21f6505b2e8f1384$export$2e2bcd8739ae039);\nvar $21f6505b2e8f1384$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"5oMT9\", function(module, exports) {\n\"use strict\";\nvar $3ee51de827d494c2$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $l6zH0 = parcelRequire(\"l6zH0\");\n\nvar $5civ3 = parcelRequire(\"5civ3\");\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\nclass $3ee51de827d494c2$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $l6zH0.HttpClient(\"actions/oidc-client\", [\n new $5civ3.BearerCredentialHandler($3ee51de827d494c2$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $3ee51de827d494c2$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $3ee51de827d494c2$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $3ee51de827d494c2$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $3ee51de827d494c2$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $lUL8q.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $3ee51de827d494c2$var$OidcClient.getCall(id_token_url);\n $lUL8q.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $3ee51de827d494c2$var$OidcClient;\n\n});\nparcelRegister(\"l6zH0\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $f5d5d851e959b23a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $f5d5d851e959b23a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $f5d5d851e959b23a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $f5d5d851e959b23a$var$__createBinding(result, mod, k);\n }\n $f5d5d851e959b23a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $f5d5d851e959b23a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $f5d5d851e959b23a$var$http = $f5d5d851e959b23a$var$__importStar($fnyYE$http);\n\nconst $f5d5d851e959b23a$var$https = $f5d5d851e959b23a$var$__importStar($fnyYE$https);\n\nconst $f5d5d851e959b23a$var$pm = $f5d5d851e959b23a$var$__importStar((parcelRequire(\"40WgE\")));\n\nconst $f5d5d851e959b23a$var$tunnel = $f5d5d851e959b23a$var$__importStar((parcelRequire(\"3zxaw\")));\nvar $f5d5d851e959b23a$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($f5d5d851e959b23a$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $f5d5d851e959b23a$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($f5d5d851e959b23a$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $f5d5d851e959b23a$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($f5d5d851e959b23a$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $f5d5d851e959b23a$var$getProxyUrl(serverUrl) {\n const proxyUrl = $f5d5d851e959b23a$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $f5d5d851e959b23a$var$getProxyUrl;\nconst $f5d5d851e959b23a$var$HttpRedirectCodes = [\n $f5d5d851e959b23a$var$HttpCodes.MovedPermanently,\n $f5d5d851e959b23a$var$HttpCodes.ResourceMoved,\n $f5d5d851e959b23a$var$HttpCodes.SeeOther,\n $f5d5d851e959b23a$var$HttpCodes.TemporaryRedirect,\n $f5d5d851e959b23a$var$HttpCodes.PermanentRedirect\n];\nconst $f5d5d851e959b23a$var$HttpResponseRetryCodes = [\n $f5d5d851e959b23a$var$HttpCodes.BadGateway,\n $f5d5d851e959b23a$var$HttpCodes.ServiceUnavailable,\n $f5d5d851e959b23a$var$HttpCodes.GatewayTimeout\n];\nconst $f5d5d851e959b23a$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $f5d5d851e959b23a$var$ExponentialBackoffCeiling = 10;\nconst $f5d5d851e959b23a$var$ExponentialBackoffTimeSlice = 5;\nclass $f5d5d851e959b23a$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $f5d5d851e959b23a$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $f5d5d851e959b23a$var$HttpClientError;\nclass $f5d5d851e959b23a$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $f5d5d851e959b23a$var$HttpClientResponse;\nfunction $f5d5d851e959b23a$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $f5d5d851e959b23a$var$isHttps;\nclass $f5d5d851e959b23a$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $f5d5d851e959b23a$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $f5d5d851e959b23a$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $f5d5d851e959b23a$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$f5d5d851e959b23a$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $f5d5d851e959b23a$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $f5d5d851e959b23a$var$https : $f5d5d851e959b23a$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $f5d5d851e959b23a$var$lowercaseKeys(this.requestOptions.headers), $f5d5d851e959b23a$var$lowercaseKeys(headers || {}));\n return $f5d5d851e959b23a$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $f5d5d851e959b23a$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $f5d5d851e959b23a$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $f5d5d851e959b23a$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $f5d5d851e959b23a$var$tunnel.httpsOverHttps : $f5d5d851e959b23a$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $f5d5d851e959b23a$var$tunnel.httpOverHttps : $f5d5d851e959b23a$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $f5d5d851e959b23a$var$https.Agent(options) : new $f5d5d851e959b23a$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $f5d5d851e959b23a$var$https.globalAgent : $f5d5d851e959b23a$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($f5d5d851e959b23a$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $f5d5d851e959b23a$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $f5d5d851e959b23a$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $f5d5d851e959b23a$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $f5d5d851e959b23a$var$HttpClient;\nconst $f5d5d851e959b23a$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"40WgE\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $2ec45c3c2f4db54c$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($2ec45c3c2f4db54c$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $2ec45c3c2f4db54c$var$getProxyUrl;\nfunction $2ec45c3c2f4db54c$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($2ec45c3c2f4db54c$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $2ec45c3c2f4db54c$var$checkBypass;\nfunction $2ec45c3c2f4db54c$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"3zxaw\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"zoNP8\"));\n\n});\nparcelRegister(\"zoNP8\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $06a68247c3f420bb$export$25cbd437c61a3835, (v) => $06a68247c3f420bb$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $06a68247c3f420bb$export$c06e3df7111bae43, (v) => $06a68247c3f420bb$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $06a68247c3f420bb$export$5d50e36ef656139f, (v) => $06a68247c3f420bb$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $06a68247c3f420bb$export$212d6605025321cc, (v) => $06a68247c3f420bb$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $06a68247c3f420bb$export$1c9f709888824e05, (v) => $06a68247c3f420bb$export$1c9f709888824e05 = v);\nvar $06a68247c3f420bb$export$25cbd437c61a3835;\nvar $06a68247c3f420bb$export$c06e3df7111bae43;\nvar $06a68247c3f420bb$export$5d50e36ef656139f;\nvar $06a68247c3f420bb$export$212d6605025321cc;\nvar $06a68247c3f420bb$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$06a68247c3f420bb$export$25cbd437c61a3835 = $06a68247c3f420bb$var$httpOverHttp;\n$06a68247c3f420bb$export$c06e3df7111bae43 = $06a68247c3f420bb$var$httpsOverHttp;\n$06a68247c3f420bb$export$5d50e36ef656139f = $06a68247c3f420bb$var$httpOverHttps;\n$06a68247c3f420bb$export$212d6605025321cc = $06a68247c3f420bb$var$httpsOverHttps;\nfunction $06a68247c3f420bb$var$httpOverHttp(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$http.request;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpsOverHttp(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$http.request;\n agent.createSocket = $06a68247c3f420bb$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpOverHttps(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$https.request;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpsOverHttps(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$https.request;\n agent.createSocket = $06a68247c3f420bb$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $06a68247c3f420bb$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $fnyYE$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $06a68247c3f420bb$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$fnyYE$util.inherits($06a68247c3f420bb$var$TunnelingAgent, $fnyYE$events.EventEmitter);\n$06a68247c3f420bb$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $06a68247c3f420bb$var$mergeOptions({\n request: req\n }, self.options, $06a68247c3f420bb$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$06a68247c3f420bb$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $06a68247c3f420bb$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $06a68247c3f420bb$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $06a68247c3f420bb$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $06a68247c3f420bb$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $06a68247c3f420bb$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $06a68247c3f420bb$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$06a68247c3f420bb$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $06a68247c3f420bb$var$createSecureSocket(options, cb) {\n var self = this;\n $06a68247c3f420bb$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $06a68247c3f420bb$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $fnyYE$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $06a68247c3f420bb$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $06a68247c3f420bb$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $06a68247c3f420bb$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $06a68247c3f420bb$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $06a68247c3f420bb$var$debug = function() {};\n$06a68247c3f420bb$export$1c9f709888824e05 = $06a68247c3f420bb$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"5civ3\", function(module, exports) {\n\"use strict\";\nvar $3c8c6c681042cd68$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $3c8c6c681042cd68$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $3c8c6c681042cd68$var$BasicCredentialHandler;\nclass $3c8c6c681042cd68$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $3c8c6c681042cd68$var$BearerCredentialHandler;\nclass $3c8c6c681042cd68$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $3c8c6c681042cd68$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"jaLnB\", function(module, exports) {\n\"use strict\";\nvar $df53b41ea025d161$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $df53b41ea025d161$var$access, appendFile: $df53b41ea025d161$var$appendFile, writeFile: $df53b41ea025d161$var$writeFile } = $fnyYE$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $df53b41ea025d161$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $df53b41ea025d161$var$access(pathFromEnv, $fnyYE$fs.constants.R_OK | $fnyYE$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $df53b41ea025d161$var$writeFile : $df53b41ea025d161$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($fnyYE$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $df53b41ea025d161$var$_summary = new $df53b41ea025d161$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $df53b41ea025d161$var$_summary;\nmodule.exports.summary = $df53b41ea025d161$var$_summary;\n\n});\n\nparcelRegister(\"eCzrY\", function(module, exports) {\n\"use strict\";\nvar $aa501cfb12138353$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $aa501cfb12138353$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $aa501cfb12138353$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $aa501cfb12138353$var$__createBinding(result, mod, k);\n }\n $aa501cfb12138353$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $aa501cfb12138353$var$path = $aa501cfb12138353$var$__importStar($fnyYE$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $aa501cfb12138353$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $aa501cfb12138353$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $aa501cfb12138353$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $aa501cfb12138353$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $aa501cfb12138353$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $aa501cfb12138353$var$path.sep);\n}\nmodule.exports.toPlatformPath = $aa501cfb12138353$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"kspKY\", function(module, exports) {\n\nvar $ee4a66e40b1acbbd$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($ee4a66e40b1acbbd$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"dl3mv\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $hapVv = parcelRequire(\"hapVv\");\n\nvar $joCBa = parcelRequire(\"joCBa\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $9b5fd826f3e9ee59$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $9b5fd826f3e9ee59$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $9b5fd826f3e9ee59$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $9b5fd826f3e9ee59$var$timeDeltaFactory,\n addLocale: $9b5fd826f3e9ee59$var$addLocale,\n defaultConfig: $9b5fd826f3e9ee59$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $9b5fd826f3e9ee59$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $9b5fd826f3e9ee59$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $9b5fd826f3e9ee59$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $9b5fd826f3e9ee59$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $9b5fd826f3e9ee59$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $9b5fd826f3e9ee59$var$format(firstDate, secondDate, config) {\n $9b5fd826f3e9ee59$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $9b5fd826f3e9ee59$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($9b5fd826f3e9ee59$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $9b5fd826f3e9ee59$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($9b5fd826f3e9ee59$var$hasLocale(locale)) return;\n if ($joCBa && autoload) $9b5fd826f3e9ee59$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $9b5fd826f3e9ee59$var$hasLocale(localeId) {\n return Boolean($9b5fd826f3e9ee59$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $9b5fd826f3e9ee59$var$requireLocale(localeId) {\n try {\n $9b5fd826f3e9ee59$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $9b5fd826f3e9ee59$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $9b5fd826f3e9ee59$var$pluralize(unit, value, config) {\n const unitTypeData = $9b5fd826f3e9ee59$var$getLocaleDataForUnitType(config);\n const unitString = $hapVv.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$getLocaleDataForUnitType(config) {\n const localeData = $9b5fd826f3e9ee59$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $9b5fd826f3e9ee59$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"hapVv\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"kspKY\"));\n\n});\n\nparcelRegister(\"joCBa\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"eYpZW\", function(module, exports) {\n\n$parcel$export(module.exports, \"chmod\", () => $16f1dcf8cea20950$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $16f1dcf8cea20950$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $16f1dcf8cea20950$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $16f1dcf8cea20950$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $16f1dcf8cea20950$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readlink\", () => $16f1dcf8cea20950$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $16f1dcf8cea20950$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $16f1dcf8cea20950$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $16f1dcf8cea20950$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $16f1dcf8cea20950$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $16f1dcf8cea20950$export$a1f77f18af3aebd5);\n\n\nvar $16f1dcf8cea20950$export$2e2bcd8739ae039 = $fnyYE$fs.promises;\nconst { access: $16f1dcf8cea20950$export$9bb0e144ba4929ca, appendFile: $16f1dcf8cea20950$export$31f54b44f813a103, chmod: $16f1dcf8cea20950$export$fe07cae62e774a05, chown: $16f1dcf8cea20950$export$86560bc0b866a003, copyFile: $16f1dcf8cea20950$export$c763efb2c06e223f, lchmod: $16f1dcf8cea20950$export$4d4374c7ea08c49f, lchown: $16f1dcf8cea20950$export$b34a65c440b523a2, link: $16f1dcf8cea20950$export$9c30223ca0a664fb, lstat: $16f1dcf8cea20950$export$c29f07eab13966a4, mkdir: $16f1dcf8cea20950$export$d9fa9670717a639d, mkdtemp: $16f1dcf8cea20950$export$bb440dc863a3b46a, open: $16f1dcf8cea20950$export$3ce6949f20cea765, readdir: $16f1dcf8cea20950$export$b1e07c405f785337, readFile: $16f1dcf8cea20950$export$72c04af63de9061a, readlink: $16f1dcf8cea20950$export$3d3ca76659ee9f39, realpath: $16f1dcf8cea20950$export$9f2c45015a422c45, rename: $16f1dcf8cea20950$export$7ac989ec0c9c279, rmdir: $16f1dcf8cea20950$export$3f660f6332b9a01d, stat: $16f1dcf8cea20950$export$f82f04a91eb6144a, symlink: $16f1dcf8cea20950$export$ed42c6f39f07f97, truncate: $16f1dcf8cea20950$export$6a506b36fdea397d, unlink: $16f1dcf8cea20950$export$5e0808041271ce04, utimes: $16f1dcf8cea20950$export$d85d919a687a608f, writeFile: $16f1dcf8cea20950$export$552bfb764b5cd2b4 } = $fnyYE$fs.promises;\nconst $16f1dcf8cea20950$export$a1f77f18af3aebd5 = \"rm\" in $fnyYE$fs.promises ? $fnyYE$fs.promises.rm : (0, $fnyYE$util.promisify)($fnyYE$fs.unlink);\n\n});\n\nparcelRegister(\"ipr2f\", function(module, exports) {\nmodule.exports = $d66f88745e8f63ab$var$isexe;\n$d66f88745e8f63ab$var$isexe.sync = $d66f88745e8f63ab$var$sync;\n\nfunction $d66f88745e8f63ab$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $d66f88745e8f63ab$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $d66f88745e8f63ab$var$checkPathExt(path, options);\n}\nfunction $d66f88745e8f63ab$var$isexe(path, options, cb) {\n $fnyYE$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $d66f88745e8f63ab$var$checkStat(stat, path, options));\n });\n}\nfunction $d66f88745e8f63ab$var$sync(path, options) {\n return $d66f88745e8f63ab$var$checkStat($fnyYE$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"bn5RY\", function(module, exports) {\nmodule.exports = $8476654426e5fdfb$var$isexe;\n$8476654426e5fdfb$var$isexe.sync = $8476654426e5fdfb$var$sync;\n\nfunction $8476654426e5fdfb$var$isexe(path, options, cb) {\n $fnyYE$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $8476654426e5fdfb$var$checkStat(stat, options));\n });\n}\nfunction $8476654426e5fdfb$var$sync(path, options) {\n return $8476654426e5fdfb$var$checkStat($fnyYE$fs.statSync(path), options);\n}\nfunction $8476654426e5fdfb$var$checkStat(stat, options) {\n return stat.isFile() && $8476654426e5fdfb$var$checkMode(stat, options);\n}\nfunction $8476654426e5fdfb$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"97KW0\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"24j9d\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\n\nvar $84nXv = parcelRequire(\"84nXv\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $lG7j5 = parcelRequire(\"lG7j5\");\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\nvar $5UYbM = parcelRequire(\"5UYbM\");\n\nvar $g4dmV = parcelRequire(\"g4dmV\");\n\nvar $avNOz = parcelRequire(\"avNOz\");\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $dYfT7 = parcelRequire(\"dYfT7\");\n\nvar $9h5Uk = parcelRequire(\"9h5Uk\");\n\nvar $1oG7j = parcelRequire(\"1oG7j\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n\nvar $9fB4n = parcelRequire(\"9fB4n\");\n\nvar $b7w7T = parcelRequire(\"b7w7T\");\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\n\nvar $4Jb5D = parcelRequire(\"4Jb5D\");\n\nvar $hhi7M = parcelRequire(\"hhi7M\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $dLLSg = parcelRequire(\"dLLSg\");\n\nvar $7CMva = parcelRequire(\"7CMva\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $3ktqT = parcelRequire(\"3ktqT\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $iGUY3 = parcelRequire(\"iGUY3\");\n\nvar $jpWIo = parcelRequire(\"jpWIo\");\n\nvar $dJyj1 = parcelRequire(\"dJyj1\");\n\nvar $9inVR = parcelRequire(\"9inVR\");\n\nvar $5wxvo = parcelRequire(\"5wxvo\");\n\nvar $16OoL = parcelRequire(\"16OoL\");\n\nvar $aNIaY = parcelRequire(\"aNIaY\");\n\nvar $huA22 = parcelRequire(\"huA22\");\n\nvar $hRcmf = parcelRequire(\"hRcmf\");\n\nvar $fnXJa = parcelRequire(\"fnXJa\");\n\nvar $cVjo2 = parcelRequire(\"cVjo2\");\nmodule.exports = {\n parse: $9fZKy,\n valid: $SUO5C,\n clean: $5UYbM,\n inc: $g4dmV,\n diff: $avNOz,\n major: $3nHUu,\n minor: $dYfT7,\n patch: $9h5Uk,\n prerelease: $1oG7j,\n compare: $dKY2K,\n rcompare: $9fB4n,\n compareLoose: $b7w7T,\n compareBuild: $4Cdie,\n sort: $4Jb5D,\n rsort: $hhi7M,\n gt: $cmfRl,\n lt: $9cmQV,\n eq: $dLLSg,\n neq: $7CMva,\n gte: $8dSFQ,\n lte: $eekMY,\n cmp: $3ktqT,\n coerce: $h5EpL,\n Comparator: $hf4vi,\n Range: $3ZIKH,\n satisfies: $h0AH5,\n toComparators: $iGUY3,\n maxSatisfying: $jpWIo,\n minSatisfying: $dJyj1,\n minVersion: $9inVR,\n validRange: $5wxvo,\n outside: $16OoL,\n gtr: $aNIaY,\n ltr: $huA22,\n intersects: $hRcmf,\n simplifyRange: $fnXJa,\n subset: $cVjo2,\n SemVer: $bmedX,\n re: $aYJ5s.re,\n src: $aYJ5s.src,\n tokens: $aYJ5s.t,\n SEMVER_SPEC_VERSION: $84nXv.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $84nXv.RELEASE_TYPES,\n compareIdentifiers: $lG7j5.compareIdentifiers,\n rcompareIdentifiers: $lG7j5.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"aYJ5s\", function(module, exports) {\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH = $84nXv.MAX_SAFE_COMPONENT_LENGTH;\nvar $7fe27b54ca3f8458$require$MAX_SAFE_BUILD_LENGTH = $84nXv.MAX_SAFE_BUILD_LENGTH;\nvar $7fe27b54ca3f8458$require$MAX_LENGTH = $84nXv.MAX_LENGTH;\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $7fe27b54ca3f8458$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $7fe27b54ca3f8458$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $dc2zw(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"84nXv\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $5e0148275b563db4$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $5e0148275b563db4$var$MAX_LENGTH = 256;\nconst $5e0148275b563db4$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $5e0148275b563db4$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $5e0148275b563db4$var$MAX_SAFE_BUILD_LENGTH = $5e0148275b563db4$var$MAX_LENGTH - 6;\nconst $5e0148275b563db4$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $5e0148275b563db4$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $5e0148275b563db4$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $5e0148275b563db4$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $5e0148275b563db4$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $5e0148275b563db4$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $5e0148275b563db4$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"dc2zw\", function(module, exports) {\nconst $99ae6419d8c8fc94$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $99ae6419d8c8fc94$var$debug;\n\n});\n\n\nparcelRegister(\"bmedX\", function(module, exports) {\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $844cc864cf80093e$require$MAX_LENGTH = $84nXv.MAX_LENGTH;\nvar $844cc864cf80093e$require$MAX_SAFE_INTEGER = $84nXv.MAX_SAFE_INTEGER;\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $844cc864cf80093e$require$re = $aYJ5s.safeRe;\nvar $844cc864cf80093e$require$t = $aYJ5s.t;\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $lG7j5 = parcelRequire(\"lG7j5\");\nvar $844cc864cf80093e$require$compareIdentifiers = $lG7j5.compareIdentifiers;\nclass $844cc864cf80093e$var$SemVer {\n constructor(version, options){\n options = $9rxnK(options);\n if (version instanceof $844cc864cf80093e$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $844cc864cf80093e$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$844cc864cf80093e$require$MAX_LENGTH} characters`);\n $dc2zw(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $844cc864cf80093e$require$re[$844cc864cf80093e$require$t.LOOSE] : $844cc864cf80093e$require$re[$844cc864cf80093e$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $844cc864cf80093e$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $dc2zw(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $844cc864cf80093e$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n return $844cc864cf80093e$require$compareIdentifiers(this.major, other.major) || $844cc864cf80093e$require$compareIdentifiers(this.minor, other.minor) || $844cc864cf80093e$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $dc2zw(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $844cc864cf80093e$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $dc2zw(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $844cc864cf80093e$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($844cc864cf80093e$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $844cc864cf80093e$var$SemVer;\n\n});\nparcelRegister(\"9rxnK\", function(module, exports) {\n// parse out just the options we care about\nconst $6e0087ab21a6c699$var$looseOption = Object.freeze({\n loose: true\n});\nconst $6e0087ab21a6c699$var$emptyOpts = Object.freeze({});\nconst $6e0087ab21a6c699$var$parseOptions = (options)=>{\n if (!options) return $6e0087ab21a6c699$var$emptyOpts;\n if (typeof options !== \"object\") return $6e0087ab21a6c699$var$looseOption;\n return options;\n};\nmodule.exports = $6e0087ab21a6c699$var$parseOptions;\n\n});\n\nparcelRegister(\"lG7j5\", function(module, exports) {\nconst $fc8330362673038c$var$numeric = /^[0-9]+$/;\nconst $fc8330362673038c$var$compareIdentifiers = (a, b)=>{\n const anum = $fc8330362673038c$var$numeric.test(a);\n const bnum = $fc8330362673038c$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $fc8330362673038c$var$rcompareIdentifiers = (a, b)=>$fc8330362673038c$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $fc8330362673038c$var$compareIdentifiers,\n rcompareIdentifiers: $fc8330362673038c$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"9fZKy\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $6bd569fe6daf4ade$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $bmedX) return version;\n try {\n return new $bmedX(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $6bd569fe6daf4ade$var$parse;\n\n});\n\nparcelRegister(\"SUO5C\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $0a511bed2d1a680e$var$valid = (version, options)=>{\n const v = $9fZKy(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $0a511bed2d1a680e$var$valid;\n\n});\n\nparcelRegister(\"5UYbM\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $44f0df021a9b0feb$var$clean = (version, options)=>{\n const s = $9fZKy(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $44f0df021a9b0feb$var$clean;\n\n});\n\nparcelRegister(\"g4dmV\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $bb2763cd0bca792e$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $bmedX(version instanceof $bmedX ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $bb2763cd0bca792e$var$inc;\n\n});\n\nparcelRegister(\"avNOz\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $7a7370cefff4d4d5$var$diff = (version1, version2)=>{\n const v1 = $9fZKy(version1, null, true);\n const v2 = $9fZKy(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $7a7370cefff4d4d5$var$diff;\n\n});\n\nparcelRegister(\"3nHUu\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $276594b9c180e0f0$var$major = (a, loose)=>new $bmedX(a, loose).major;\nmodule.exports = $276594b9c180e0f0$var$major;\n\n});\n\nparcelRegister(\"dYfT7\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $a2bd3401b9e3d9ac$var$minor = (a, loose)=>new $bmedX(a, loose).minor;\nmodule.exports = $a2bd3401b9e3d9ac$var$minor;\n\n});\n\nparcelRegister(\"9h5Uk\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $6c0a48b3f9338d20$var$patch = (a, loose)=>new $bmedX(a, loose).patch;\nmodule.exports = $6c0a48b3f9338d20$var$patch;\n\n});\n\nparcelRegister(\"1oG7j\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $1048b3e89636d643$var$prerelease = (version, options)=>{\n const parsed = $9fZKy(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $1048b3e89636d643$var$prerelease;\n\n});\n\nparcelRegister(\"dKY2K\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $a03e2595d876bcf8$var$compare = (a, b, loose)=>new $bmedX(a, loose).compare(new $bmedX(b, loose));\nmodule.exports = $a03e2595d876bcf8$var$compare;\n\n});\n\nparcelRegister(\"9fB4n\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $6bc2450a8af70fb2$var$rcompare = (a, b, loose)=>$dKY2K(b, a, loose);\nmodule.exports = $6bc2450a8af70fb2$var$rcompare;\n\n});\n\nparcelRegister(\"b7w7T\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $818944cadcc94a9c$var$compareLoose = (a, b)=>$dKY2K(a, b, true);\nmodule.exports = $818944cadcc94a9c$var$compareLoose;\n\n});\n\nparcelRegister(\"4Cdie\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $35c505c017250381$var$compareBuild = (a, b, loose)=>{\n const versionA = new $bmedX(a, loose);\n const versionB = new $bmedX(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $35c505c017250381$var$compareBuild;\n\n});\n\nparcelRegister(\"4Jb5D\", function(module, exports) {\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\nconst $3713f7a31735ad15$var$sort = (list, loose)=>list.sort((a, b)=>$4Cdie(a, b, loose));\nmodule.exports = $3713f7a31735ad15$var$sort;\n\n});\n\nparcelRegister(\"hhi7M\", function(module, exports) {\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\nconst $c942155432093a9e$var$rsort = (list, loose)=>list.sort((a, b)=>$4Cdie(b, a, loose));\nmodule.exports = $c942155432093a9e$var$rsort;\n\n});\n\nparcelRegister(\"cmfRl\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $8ff3d77984ea3cf4$var$gt = (a, b, loose)=>$dKY2K(a, b, loose) > 0;\nmodule.exports = $8ff3d77984ea3cf4$var$gt;\n\n});\n\nparcelRegister(\"9cmQV\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $6b26f620b01a90e5$var$lt = (a, b, loose)=>$dKY2K(a, b, loose) < 0;\nmodule.exports = $6b26f620b01a90e5$var$lt;\n\n});\n\nparcelRegister(\"dLLSg\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $a064ccf62d702cc4$var$eq = (a, b, loose)=>$dKY2K(a, b, loose) === 0;\nmodule.exports = $a064ccf62d702cc4$var$eq;\n\n});\n\nparcelRegister(\"7CMva\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $58d1b476ad4304dd$var$neq = (a, b, loose)=>$dKY2K(a, b, loose) !== 0;\nmodule.exports = $58d1b476ad4304dd$var$neq;\n\n});\n\nparcelRegister(\"8dSFQ\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $5fc9f2b6d040d887$var$gte = (a, b, loose)=>$dKY2K(a, b, loose) >= 0;\nmodule.exports = $5fc9f2b6d040d887$var$gte;\n\n});\n\nparcelRegister(\"eekMY\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $a5c27fc1b30916a7$var$lte = (a, b, loose)=>$dKY2K(a, b, loose) <= 0;\nmodule.exports = $a5c27fc1b30916a7$var$lte;\n\n});\n\nparcelRegister(\"3ktqT\", function(module, exports) {\n\nvar $dLLSg = parcelRequire(\"dLLSg\");\n\nvar $7CMva = parcelRequire(\"7CMva\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\nconst $26ca121a33818d4a$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $dLLSg(a, b, loose);\n case \"!=\":\n return $7CMva(a, b, loose);\n case \">\":\n return $cmfRl(a, b, loose);\n case \">=\":\n return $8dSFQ(a, b, loose);\n case \"<\":\n return $9cmQV(a, b, loose);\n case \"<=\":\n return $eekMY(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $26ca121a33818d4a$var$cmp;\n\n});\n\nparcelRegister(\"h5EpL\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $c71240ccd625fe7d$require$re = $aYJ5s.safeRe;\nvar $c71240ccd625fe7d$require$t = $aYJ5s.t;\nconst $c71240ccd625fe7d$var$coerce = (version, options)=>{\n if (version instanceof $bmedX) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCEFULL] : $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCERTLFULL] : $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $9fZKy(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $c71240ccd625fe7d$var$coerce;\n\n});\n\nparcelRegister(\"hf4vi\", function(module, exports) {\nconst $c8d754bc004d1996$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $c8d754bc004d1996$var$Comparator {\n static get ANY() {\n return $c8d754bc004d1996$var$ANY;\n }\n constructor(comp, options){\n options = $9rxnK(options);\n if (comp instanceof $c8d754bc004d1996$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $dc2zw(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $c8d754bc004d1996$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $dc2zw(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $c8d754bc004d1996$require$re[$c8d754bc004d1996$require$t.COMPARATORLOOSE] : $c8d754bc004d1996$require$re[$c8d754bc004d1996$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $c8d754bc004d1996$var$ANY;\n else this.semver = new $bmedX(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $dc2zw(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $c8d754bc004d1996$var$ANY || version === $c8d754bc004d1996$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $bmedX(version, this.options);\n } catch (er) {\n return false;\n }\n return $3ktqT(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $c8d754bc004d1996$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $3ZIKH(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $3ZIKH(this.value, options).test(comp.semver);\n }\n options = $9rxnK(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($3ktqT(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($3ktqT(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $c8d754bc004d1996$var$Comparator;\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $c8d754bc004d1996$require$re = $aYJ5s.safeRe;\nvar $c8d754bc004d1996$require$t = $aYJ5s.t;\n\nvar $3ktqT = parcelRequire(\"3ktqT\");\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\n});\nparcelRegister(\"3ZIKH\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $2e89c8759dc5e770$var$Range {\n constructor(range, options){\n options = $9rxnK(options);\n if (range instanceof $2e89c8759dc5e770$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $2e89c8759dc5e770$var$Range(range.raw, options);\n }\n if (range instanceof $hf4vi) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$2e89c8759dc5e770$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $2e89c8759dc5e770$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $2e89c8759dc5e770$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $2e89c8759dc5e770$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $2e89c8759dc5e770$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.HYPHENRANGELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.HYPHENRANGE];\n range = range.replace(hr, $2e89c8759dc5e770$var$hyphenReplace(this.options.includePrerelease));\n $dc2zw(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.COMPARATORTRIM], $2e89c8759dc5e770$require$comparatorTrimReplace);\n $dc2zw(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDETRIM], $2e89c8759dc5e770$require$tildeTrimReplace);\n $dc2zw(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARETTRIM], $2e89c8759dc5e770$require$caretTrimReplace);\n $dc2zw(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$2e89c8759dc5e770$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$2e89c8759dc5e770$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $dc2zw(\"loose invalid filter\", comp, this.options);\n return !!comp.match($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.COMPARATORLOOSE]);\n });\n $dc2zw(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $hf4vi(comp, this.options));\n for (const comp of comparators){\n if ($2e89c8759dc5e770$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $2e89c8759dc5e770$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $2e89c8759dc5e770$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $2e89c8759dc5e770$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $2e89c8759dc5e770$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $bmedX(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($2e89c8759dc5e770$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $2e89c8759dc5e770$var$Range;\n\nvar $tPjHU = parcelRequire(\"tPjHU\");\nconst $2e89c8759dc5e770$var$cache = new $tPjHU({\n max: 1000\n});\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $2e89c8759dc5e770$require$re = $aYJ5s.safeRe;\nvar $2e89c8759dc5e770$require$t = $aYJ5s.t;\nvar $2e89c8759dc5e770$require$comparatorTrimReplace = $aYJ5s.comparatorTrimReplace;\nvar $2e89c8759dc5e770$require$tildeTrimReplace = $aYJ5s.tildeTrimReplace;\nvar $2e89c8759dc5e770$require$caretTrimReplace = $aYJ5s.caretTrimReplace;\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $2e89c8759dc5e770$require$FLAG_INCLUDE_PRERELEASE = $84nXv.FLAG_INCLUDE_PRERELEASE;\nvar $2e89c8759dc5e770$require$FLAG_LOOSE = $84nXv.FLAG_LOOSE;\nconst $2e89c8759dc5e770$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $2e89c8759dc5e770$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $2e89c8759dc5e770$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $2e89c8759dc5e770$var$parseComparator = (comp, options)=>{\n $dc2zw(\"comp\", comp, options);\n comp = $2e89c8759dc5e770$var$replaceCarets(comp, options);\n $dc2zw(\"caret\", comp);\n comp = $2e89c8759dc5e770$var$replaceTildes(comp, options);\n $dc2zw(\"tildes\", comp);\n comp = $2e89c8759dc5e770$var$replaceXRanges(comp, options);\n $dc2zw(\"xrange\", comp);\n comp = $2e89c8759dc5e770$var$replaceStars(comp, options);\n $dc2zw(\"stars\", comp);\n return comp;\n};\nconst $2e89c8759dc5e770$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $2e89c8759dc5e770$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceTilde(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $dc2zw(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($2e89c8759dc5e770$var$isX(M)) ret = \"\";\n else if ($2e89c8759dc5e770$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $dc2zw(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $dc2zw(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $2e89c8759dc5e770$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceCaret(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceCaret = (comp, options)=>{\n $dc2zw(\"caret\", comp, options);\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARETLOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $dc2zw(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($2e89c8759dc5e770$var$isX(M)) ret = \"\";\n else if ($2e89c8759dc5e770$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $dc2zw(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $dc2zw(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $dc2zw(\"caret return\", ret);\n return ret;\n });\n};\nconst $2e89c8759dc5e770$var$replaceXRanges = (comp, options)=>{\n $dc2zw(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceXRange(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.XRANGELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $dc2zw(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $2e89c8759dc5e770$var$isX(M);\n const xm = xM || $2e89c8759dc5e770$var$isX(m);\n const xp = xm || $2e89c8759dc5e770$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $dc2zw(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $2e89c8759dc5e770$var$replaceStars = (comp, options)=>{\n $dc2zw(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.STAR], \"\");\n};\nconst $2e89c8759dc5e770$var$replaceGTE0 = (comp, options)=>{\n $dc2zw(\"replaceGTE0\", comp, options);\n return comp.trim().replace($2e89c8759dc5e770$require$re[options.includePrerelease ? $2e89c8759dc5e770$require$t.GTE0PRE : $2e89c8759dc5e770$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $2e89c8759dc5e770$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($2e89c8759dc5e770$var$isX(fM)) from = \"\";\n else if ($2e89c8759dc5e770$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($2e89c8759dc5e770$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($2e89c8759dc5e770$var$isX(tM)) to = \"\";\n else if ($2e89c8759dc5e770$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $2e89c8759dc5e770$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $dc2zw(set[i].semver);\n if (set[i].semver === $hf4vi.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"tPjHU\", function(module, exports) {\n\"use strict\";\n\nvar $8VtHa = parcelRequire(\"8VtHa\");\nconst $059a8401eb22b5e6$var$MAX = Symbol(\"max\");\nconst $059a8401eb22b5e6$var$LENGTH = Symbol(\"length\");\nconst $059a8401eb22b5e6$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $059a8401eb22b5e6$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $059a8401eb22b5e6$var$MAX_AGE = Symbol(\"maxAge\");\nconst $059a8401eb22b5e6$var$DISPOSE = Symbol(\"dispose\");\nconst $059a8401eb22b5e6$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $059a8401eb22b5e6$var$LRU_LIST = Symbol(\"lruList\");\nconst $059a8401eb22b5e6$var$CACHE = Symbol(\"cache\");\nconst $059a8401eb22b5e6$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $059a8401eb22b5e6$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $059a8401eb22b5e6$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$059a8401eb22b5e6$var$MAX] = options.max || Infinity;\n const lc = options.length || $059a8401eb22b5e6$var$naiveLength;\n this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $059a8401eb22b5e6$var$naiveLength : lc;\n this[$059a8401eb22b5e6$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$059a8401eb22b5e6$var$MAX_AGE] = options.maxAge || 0;\n this[$059a8401eb22b5e6$var$DISPOSE] = options.dispose;\n this[$059a8401eb22b5e6$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$059a8401eb22b5e6$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$059a8401eb22b5e6$var$MAX] = mL || Infinity;\n $059a8401eb22b5e6$var$trim(this);\n }\n get max() {\n return this[$059a8401eb22b5e6$var$MAX];\n }\n set allowStale(allowStale) {\n this[$059a8401eb22b5e6$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$059a8401eb22b5e6$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$059a8401eb22b5e6$var$MAX_AGE] = mA;\n $059a8401eb22b5e6$var$trim(this);\n }\n get maxAge() {\n return this[$059a8401eb22b5e6$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $059a8401eb22b5e6$var$naiveLength;\n if (lC !== this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR]) {\n this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR] = lC;\n this[$059a8401eb22b5e6$var$LENGTH] = 0;\n this[$059a8401eb22b5e6$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$059a8401eb22b5e6$var$LENGTH] += hit.length;\n });\n }\n $059a8401eb22b5e6$var$trim(this);\n }\n get lengthCalculator() {\n return this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$059a8401eb22b5e6$var$LENGTH];\n }\n get itemCount() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$059a8401eb22b5e6$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $059a8401eb22b5e6$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$059a8401eb22b5e6$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $059a8401eb22b5e6$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$059a8401eb22b5e6$var$DISPOSE] && this[$059a8401eb22b5e6$var$LRU_LIST] && this[$059a8401eb22b5e6$var$LRU_LIST].length) this[$059a8401eb22b5e6$var$LRU_LIST].forEach((hit)=>this[$059a8401eb22b5e6$var$DISPOSE](hit.key, hit.value));\n this[$059a8401eb22b5e6$var$CACHE] = new Map() // hash of items by key\n ;\n this[$059a8401eb22b5e6$var$LRU_LIST] = new $8VtHa() // list of items in order of use recency\n ;\n this[$059a8401eb22b5e6$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].map((hit)=>$059a8401eb22b5e6$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$059a8401eb22b5e6$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$059a8401eb22b5e6$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR](value, key);\n if (this[$059a8401eb22b5e6$var$CACHE].has(key)) {\n if (len > this[$059a8401eb22b5e6$var$MAX]) {\n $059a8401eb22b5e6$var$del(this, this[$059a8401eb22b5e6$var$CACHE].get(key));\n return false;\n }\n const node = this[$059a8401eb22b5e6$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$059a8401eb22b5e6$var$DISPOSE]) {\n if (!this[$059a8401eb22b5e6$var$NO_DISPOSE_ON_SET]) this[$059a8401eb22b5e6$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$059a8401eb22b5e6$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $059a8401eb22b5e6$var$trim(this);\n return true;\n }\n const hit = new $059a8401eb22b5e6$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$059a8401eb22b5e6$var$MAX]) {\n if (this[$059a8401eb22b5e6$var$DISPOSE]) this[$059a8401eb22b5e6$var$DISPOSE](key, value);\n return false;\n }\n this[$059a8401eb22b5e6$var$LENGTH] += hit.length;\n this[$059a8401eb22b5e6$var$LRU_LIST].unshift(hit);\n this[$059a8401eb22b5e6$var$CACHE].set(key, this[$059a8401eb22b5e6$var$LRU_LIST].head);\n $059a8401eb22b5e6$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$059a8401eb22b5e6$var$CACHE].has(key)) return false;\n const hit = this[$059a8401eb22b5e6$var$CACHE].get(key).value;\n return !$059a8401eb22b5e6$var$isStale(this, hit);\n }\n get(key) {\n return $059a8401eb22b5e6$var$get(this, key, true);\n }\n peek(key) {\n return $059a8401eb22b5e6$var$get(this, key, false);\n }\n pop() {\n const node = this[$059a8401eb22b5e6$var$LRU_LIST].tail;\n if (!node) return null;\n $059a8401eb22b5e6$var$del(this, node);\n return node.value;\n }\n del(key) {\n $059a8401eb22b5e6$var$del(this, this[$059a8401eb22b5e6$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$059a8401eb22b5e6$var$CACHE].forEach((value, key)=>$059a8401eb22b5e6$var$get(this, key, false));\n }\n}\nconst $059a8401eb22b5e6$var$get = (self, key, doUse)=>{\n const node = self[$059a8401eb22b5e6$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($059a8401eb22b5e6$var$isStale(self, hit)) {\n $059a8401eb22b5e6$var$del(self, node);\n if (!self[$059a8401eb22b5e6$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$059a8401eb22b5e6$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$059a8401eb22b5e6$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $059a8401eb22b5e6$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$059a8401eb22b5e6$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$059a8401eb22b5e6$var$MAX_AGE] && diff > self[$059a8401eb22b5e6$var$MAX_AGE];\n};\nconst $059a8401eb22b5e6$var$trim = (self)=>{\n if (self[$059a8401eb22b5e6$var$LENGTH] > self[$059a8401eb22b5e6$var$MAX]) for(let walker = self[$059a8401eb22b5e6$var$LRU_LIST].tail; self[$059a8401eb22b5e6$var$LENGTH] > self[$059a8401eb22b5e6$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $059a8401eb22b5e6$var$del(self, walker);\n walker = prev;\n }\n};\nconst $059a8401eb22b5e6$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$059a8401eb22b5e6$var$DISPOSE]) self[$059a8401eb22b5e6$var$DISPOSE](hit.key, hit.value);\n self[$059a8401eb22b5e6$var$LENGTH] -= hit.length;\n self[$059a8401eb22b5e6$var$CACHE].delete(hit.key);\n self[$059a8401eb22b5e6$var$LRU_LIST].removeNode(node);\n }\n};\nclass $059a8401eb22b5e6$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $059a8401eb22b5e6$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($059a8401eb22b5e6$var$isStale(self, hit)) {\n $059a8401eb22b5e6$var$del(self, node);\n if (!self[$059a8401eb22b5e6$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $059a8401eb22b5e6$var$LRUCache;\n\n});\nparcelRegister(\"8VtHa\", function(module, exports) {\n\"use strict\";\nmodule.exports = $67faae78dc454350$var$Yallist;\n$67faae78dc454350$var$Yallist.Node = $67faae78dc454350$var$Node;\n$67faae78dc454350$var$Yallist.create = $67faae78dc454350$var$Yallist;\nfunction $67faae78dc454350$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $67faae78dc454350$var$Yallist)) self = new $67faae78dc454350$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$67faae78dc454350$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$67faae78dc454350$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$67faae78dc454350$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$67faae78dc454350$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$67faae78dc454350$var$push(this, arguments[i]);\n return this.length;\n};\n$67faae78dc454350$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$67faae78dc454350$var$unshift(this, arguments[i]);\n return this.length;\n};\n$67faae78dc454350$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$67faae78dc454350$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$67faae78dc454350$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$67faae78dc454350$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$67faae78dc454350$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $67faae78dc454350$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $67faae78dc454350$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$67faae78dc454350$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$67faae78dc454350$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$67faae78dc454350$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$67faae78dc454350$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $67faae78dc454350$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $67faae78dc454350$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $67faae78dc454350$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $67faae78dc454350$var$insert(self, node, value) {\n var inserted = node === self.head ? new $67faae78dc454350$var$Node(value, null, node, self) : new $67faae78dc454350$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $67faae78dc454350$var$push(self, item) {\n self.tail = new $67faae78dc454350$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $67faae78dc454350$var$unshift(self, item) {\n self.head = new $67faae78dc454350$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $67faae78dc454350$var$Node(value, prev, next, list) {\n if (!(this instanceof $67faae78dc454350$var$Node)) return new $67faae78dc454350$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"iDH6t\"))($67faae78dc454350$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"iDH6t\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"h0AH5\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $c61ee66e825b833b$var$satisfies = (version, range, options)=>{\n try {\n range = new $3ZIKH(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $c61ee66e825b833b$var$satisfies;\n\n});\n\nparcelRegister(\"iGUY3\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n// Mostly just for testing and legacy API reasons\nconst $d9b856cbb52d7485$var$toComparators = (range, options)=>new $3ZIKH(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $d9b856cbb52d7485$var$toComparators;\n\n});\n\nparcelRegister(\"jpWIo\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $e22de5b256aee447$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $3ZIKH(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $bmedX(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $e22de5b256aee447$var$maxSatisfying;\n\n});\n\nparcelRegister(\"dJyj1\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $9ffa16baebb6172d$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $3ZIKH(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $bmedX(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $9ffa16baebb6172d$var$minSatisfying;\n\n});\n\nparcelRegister(\"9inVR\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\nconst $6c485befcc0d8d86$var$minVersion = (range, loose)=>{\n range = new $3ZIKH(range, loose);\n let minver = new $bmedX(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $bmedX(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $bmedX(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cmfRl(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cmfRl(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $6c485befcc0d8d86$var$minVersion;\n\n});\n\nparcelRegister(\"5wxvo\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $4059ee5dc358195f$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $3ZIKH(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $4059ee5dc358195f$var$validRange;\n\n});\n\nparcelRegister(\"16OoL\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\nconst { ANY: $0ced720887f8e111$var$ANY } = $hf4vi;\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\nconst $0ced720887f8e111$var$outside = (version, range, hilo, options)=>{\n version = new $bmedX(version, options);\n range = new $3ZIKH(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cmfRl;\n ltefn = $eekMY;\n ltfn = $9cmQV;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $9cmQV;\n ltefn = $8dSFQ;\n ltfn = $cmfRl;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($h0AH5(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $0ced720887f8e111$var$ANY) comparator = new $hf4vi(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $0ced720887f8e111$var$outside;\n\n});\n\nparcelRegister(\"aNIaY\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $16OoL = parcelRequire(\"16OoL\");\nconst $7dd0bf66272f2aa5$var$gtr = (version, range, options)=>$16OoL(version, range, \">\", options);\nmodule.exports = $7dd0bf66272f2aa5$var$gtr;\n\n});\n\nparcelRegister(\"huA22\", function(module, exports) {\n\nvar $16OoL = parcelRequire(\"16OoL\");\n// Determine if version is less than all the versions possible in the range\nconst $cbc1302becc6ade2$var$ltr = (version, range, options)=>$16OoL(version, range, \"<\", options);\nmodule.exports = $cbc1302becc6ade2$var$ltr;\n\n});\n\nparcelRegister(\"hRcmf\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $d000f8ee70e292e2$var$intersects = (r1, r2, options)=>{\n r1 = new $3ZIKH(r1, options);\n r2 = new $3ZIKH(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $d000f8ee70e292e2$var$intersects;\n\n});\n\nparcelRegister(\"fnXJa\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$dKY2K(a, b, options));\n for (const version of v){\n const included = $h0AH5(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"cVjo2\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\nconst { ANY: $9689d8b7ef65728f$var$ANY } = $hf4vi;\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $9689d8b7ef65728f$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $3ZIKH(sub, options);\n dom = new $3ZIKH(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $9689d8b7ef65728f$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $9689d8b7ef65728f$var$minimumVersionWithPreRelease = [\n new $hf4vi(\">=0.0.0-0\")\n];\nconst $9689d8b7ef65728f$var$minimumVersion = [\n new $hf4vi(\">=0.0.0\")\n];\nconst $9689d8b7ef65728f$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $9689d8b7ef65728f$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $9689d8b7ef65728f$var$ANY) return true;\n else if (options.includePrerelease) sub = $9689d8b7ef65728f$var$minimumVersionWithPreRelease;\n else sub = $9689d8b7ef65728f$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $9689d8b7ef65728f$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $9689d8b7ef65728f$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $9689d8b7ef65728f$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $9689d8b7ef65728f$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $dKY2K(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$h0AH5(eq, String(gt), options)) return null;\n if (lt && !$h0AH5(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$h0AH5(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $9689d8b7ef65728f$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$h0AH5(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $9689d8b7ef65728f$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$h0AH5(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $9689d8b7ef65728f$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $dKY2K(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $9689d8b7ef65728f$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $dKY2K(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $9689d8b7ef65728f$var$subset;\n\n});\n\n\nparcelRegister(\"6afW1\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $47d0099950e01565$export$f8b9fb4db095815b);\n\nasync function $47d0099950e01565$export$f8b9fb4db095815b(path) {\n try {\n await (0, $fnyYE$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $47d0099950e01565$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($fnyYE$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"fQ0Jj\", function(module, exports) {\n\"use strict\";\nvar $b87c474932ac0f16$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($b87c474932ac0f16$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"e19ul\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $50261410344d920a$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $50261410344d920a$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $50261410344d920a$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $fnyYE$path.dirname);\n$parcel$export(module.exports, \"join\", () => $fnyYE$path.join);\n\n\nvar $hImoI = parcelRequire(\"hImoI\");\n\nvar $f2mBC = parcelRequire(\"f2mBC\");\nfunction $50261410344d920a$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $50261410344d920a$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $50261410344d920a$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $fnyYE$path.basename)(e) : (0, $fnyYE$path.basename)(e, (0, $fnyYE$path.extname)(e));\n}\nfunction $50261410344d920a$export$873fead74fe2f1ff(e) {\n return (0, $fnyYE$path.normalize)(e).replace(RegExp((0, $hImoI.default)((0, $fnyYE$path.sep)) + \"$\"), \"\");\n}\nfunction $50261410344d920a$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $50261410344d920a$export$3e333f8cb13439c(e, a) {\n const r = (0, $fnyYE$path.extname)(e), s = `${a}${(0, $fnyYE$path.basename)(e, r)}${r}`;\n return (0, $fnyYE$path.join)((0, $fnyYE$path.dirname)(e), s);\n}\nfunction $50261410344d920a$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $fnyYE$path.extname)(e), s = `${(0, $fnyYE$path.basename)(e, r)}${a}${r}`;\n return (0, $fnyYE$path.join)((0, $fnyYE$path.dirname)(e), s);\n}\nfunction $50261410344d920a$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $50261410344d920a$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $50261410344d920a$export$19c5468f88f6e968(e) {\n const a = (0, $fnyYE$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $50261410344d920a$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($f2mBC)))(e, a);\n}\nfunction $50261410344d920a$export$7d0573375890d05c(e, a) {\n const r = (0, $fnyYE$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $fnyYE$path.sep)) || r === (0, $fnyYE$path.resolve)(e));\n}\nvar $50261410344d920a$var$O = {}, $50261410344d920a$var$R = {};\n$50261410344d920a$var$a($50261410344d920a$var$R, \"name\", ()=>$50261410344d920a$export$a8ff84c12d48cfa6);\nvar $50261410344d920a$var$A = {};\n$50261410344d920a$var$a($50261410344d920a$var$A, \"normalizeTrim\", ()=>$50261410344d920a$export$873fead74fe2f1ff);\nvar $50261410344d920a$var$I = {};\n$50261410344d920a$var$a($50261410344d920a$var$I, \"addExeExt\", ()=>$50261410344d920a$export$2d20c564cade3c93);\nvar $50261410344d920a$var$T = {};\n$50261410344d920a$var$a($50261410344d920a$var$T, \"addNamePrefix\", ()=>$50261410344d920a$export$3e333f8cb13439c);\nvar $50261410344d920a$var$_ = {};\n$50261410344d920a$var$a($50261410344d920a$var$_, \"addNameSuffix\", ()=>$50261410344d920a$export$3b60a3e9bd1aef9d);\nvar $50261410344d920a$var$k = {};\n$50261410344d920a$var$a($50261410344d920a$var$k, \"addShExt\", ()=>$50261410344d920a$export$609be29b80b555e1);\nvar $50261410344d920a$var$M = {};\n$50261410344d920a$var$a($50261410344d920a$var$M, \"addShRelativePrefix\", ()=>$50261410344d920a$export$e1f23f8d3e53fe6);\nvar $50261410344d920a$var$W = {};\n$50261410344d920a$var$a($50261410344d920a$var$W, \"removeExt\", ()=>$50261410344d920a$export$19c5468f88f6e968);\nvar $50261410344d920a$var$q = {};\n$50261410344d920a$var$a($50261410344d920a$var$q, \"replaceExt\", ()=>$50261410344d920a$export$e9c34737ac8e53d2);\nvar $50261410344d920a$var$B = {};\n$50261410344d920a$var$a($50261410344d920a$var$B, \"isPathInside\", ()=>$50261410344d920a$export$7d0573375890d05c), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$R), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$A), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$I), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$T), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$_), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$k), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$M), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$W), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$q), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$B);\n\n});\nparcelRegister(\"hImoI\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $ce57eb70ef70e8ad$export$2e2bcd8739ae039);\nfunction $ce57eb70ef70e8ad$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"f2mBC\", function(module, exports) {\n\"use strict\";\n\nfunction $af2893f38bb1ffcd$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $fnyYE$path.basename(npath, $fnyYE$path.extname(npath)) + ext;\n var nFilepath = $fnyYE$path.join($fnyYE$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($af2893f38bb1ffcd$var$startsWithSingleDot(npath)) return \".\" + $fnyYE$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $af2893f38bb1ffcd$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $fnyYE$path.sep || first2chars === \"./\";\n}\nmodule.exports = $af2893f38bb1ffcd$var$replaceExt;\n\n});\n\n\nparcelRegister(\"jGHPG\", function(module, exports) {\n\"use strict\";\nvar $e553f0cadbd2b95a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $e553f0cadbd2b95a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $e553f0cadbd2b95a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $e553f0cadbd2b95a$var$__createBinding(result, mod, k);\n }\n $e553f0cadbd2b95a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $e553f0cadbd2b95a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $e553f0cadbd2b95a$var$path = $e553f0cadbd2b95a$var$__importStar($fnyYE$path);\n\nconst $e553f0cadbd2b95a$var$ioUtil = $e553f0cadbd2b95a$var$__importStar((parcelRequire(\"akQoU\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $e553f0cadbd2b95a$var$cp(source, dest, options = {}) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $e553f0cadbd2b95a$var$readCopyOptions(options);\n const destStat = (yield $e553f0cadbd2b95a$var$ioUtil.exists(dest)) ? yield $e553f0cadbd2b95a$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $e553f0cadbd2b95a$var$path.join(dest, $e553f0cadbd2b95a$var$path.basename(source)) : dest;\n if (!(yield $e553f0cadbd2b95a$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $e553f0cadbd2b95a$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $e553f0cadbd2b95a$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($e553f0cadbd2b95a$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $e553f0cadbd2b95a$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $e553f0cadbd2b95a$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $e553f0cadbd2b95a$var$mv(source, dest, options = {}) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $e553f0cadbd2b95a$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $e553f0cadbd2b95a$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $e553f0cadbd2b95a$var$path.join(dest, $e553f0cadbd2b95a$var$path.basename(source));\n destExists = yield $e553f0cadbd2b95a$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $e553f0cadbd2b95a$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $e553f0cadbd2b95a$var$mkdirP($e553f0cadbd2b95a$var$path.dirname(dest));\n yield $e553f0cadbd2b95a$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $e553f0cadbd2b95a$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $e553f0cadbd2b95a$var$rmRF(inputPath) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $e553f0cadbd2b95a$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $e553f0cadbd2b95a$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $e553f0cadbd2b95a$var$mkdirP(fsPath) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok(fsPath, \"a path argument must be provided\");\n yield $e553f0cadbd2b95a$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $e553f0cadbd2b95a$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $e553f0cadbd2b95a$var$which(tool, check) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $e553f0cadbd2b95a$var$which(tool, false);\n if (!result) {\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $e553f0cadbd2b95a$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $e553f0cadbd2b95a$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $e553f0cadbd2b95a$var$findInPath(tool) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($e553f0cadbd2b95a$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($e553f0cadbd2b95a$var$ioUtil.isRooted(tool)) {\n const filePath = yield $e553f0cadbd2b95a$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($e553f0cadbd2b95a$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($e553f0cadbd2b95a$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $e553f0cadbd2b95a$var$ioUtil.tryGetExecutablePath($e553f0cadbd2b95a$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $e553f0cadbd2b95a$var$findInPath;\nfunction $e553f0cadbd2b95a$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $e553f0cadbd2b95a$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $e553f0cadbd2b95a$var$mkdirP(destDir);\n const files = yield $e553f0cadbd2b95a$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $e553f0cadbd2b95a$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $e553f0cadbd2b95a$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $e553f0cadbd2b95a$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $e553f0cadbd2b95a$var$ioUtil.chmod(destDir, (yield $e553f0cadbd2b95a$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $e553f0cadbd2b95a$var$copyFile(srcFile, destFile, force) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $e553f0cadbd2b95a$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $e553f0cadbd2b95a$var$ioUtil.lstat(destFile);\n yield $e553f0cadbd2b95a$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $e553f0cadbd2b95a$var$ioUtil.chmod(destFile, \"0666\");\n yield $e553f0cadbd2b95a$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $e553f0cadbd2b95a$var$ioUtil.readlink(srcFile);\n yield $e553f0cadbd2b95a$var$ioUtil.symlink(symlinkFull, destFile, $e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $e553f0cadbd2b95a$var$ioUtil.exists(destFile)) || force) yield $e553f0cadbd2b95a$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"akQoU\", function(module, exports) {\n\"use strict\";\nvar $78646b550a341622$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $78646b550a341622$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $78646b550a341622$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $78646b550a341622$var$__createBinding(result, mod, k);\n }\n $78646b550a341622$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $78646b550a341622$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $78646b550a341622$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $78646b550a341622$var$fs = $78646b550a341622$var$__importStar($fnyYE$fs);\n\nconst $78646b550a341622$var$path = $78646b550a341622$var$__importStar($fnyYE$path);\n$78646b550a341622$var$_a = $78646b550a341622$var$fs.promises, module.exports.chmod = $78646b550a341622$var$_a.chmod, module.exports.copyFile = $78646b550a341622$var$_a.copyFile, module.exports.lstat = $78646b550a341622$var$_a.lstat, module.exports.mkdir = $78646b550a341622$var$_a.mkdir, module.exports.open = $78646b550a341622$var$_a.open, module.exports.readdir = $78646b550a341622$var$_a.readdir, module.exports.readlink = $78646b550a341622$var$_a.readlink, module.exports.rename = $78646b550a341622$var$_a.rename, module.exports.rm = $78646b550a341622$var$_a.rm, module.exports.rmdir = $78646b550a341622$var$_a.rmdir, module.exports.stat = $78646b550a341622$var$_a.stat, module.exports.symlink = $78646b550a341622$var$_a.symlink, module.exports.unlink = $78646b550a341622$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $78646b550a341622$var$fs.constants.O_RDONLY;\nfunction $78646b550a341622$var$exists(fsPath) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $78646b550a341622$var$exists;\nfunction $78646b550a341622$var$isDirectory(fsPath, useStat = false) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $78646b550a341622$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $78646b550a341622$var$isRooted(p) {\n p = $78646b550a341622$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $78646b550a341622$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $78646b550a341622$var$tryGetExecutablePath(filePath, extensions) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $78646b550a341622$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($78646b550a341622$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $78646b550a341622$var$path.dirname(filePath);\n const upperName = $78646b550a341622$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $78646b550a341622$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($78646b550a341622$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $78646b550a341622$var$tryGetExecutablePath;\nfunction $78646b550a341622$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $78646b550a341622$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $78646b550a341622$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $78646b550a341622$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"aUW7f\", function(module, exports) {\n\"use strict\";\nvar $7f2c36ee4c1c2579$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7f2c36ee4c1c2579$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7f2c36ee4c1c2579$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7f2c36ee4c1c2579$var$__createBinding(result, mod, k);\n }\n $7f2c36ee4c1c2579$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $7f2c36ee4c1c2579$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $7f2c36ee4c1c2579$var$semver = $7f2c36ee4c1c2579$var$__importStar((parcelRequire(\"1mmqj\")));\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\n\nfunction $7f2c36ee4c1c2579$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $7f2c36ee4c1c2579$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $fnyYE$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $lUL8q.debug(`check ${version} satisfies ${versionSpec}`);\n if ($7f2c36ee4c1c2579$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $lUL8q.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $7f2c36ee4c1c2579$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $lUL8q.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $7f2c36ee4c1c2579$var$_findMatch;\nfunction $7f2c36ee4c1c2579$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $fnyYE$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $fnyYE$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $7f2c36ee4c1c2579$var$_getOsVersion;\nfunction $7f2c36ee4c1c2579$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($fnyYE$fs.existsSync(lsbReleaseFile)) contents = $fnyYE$fs.readFileSync(lsbReleaseFile).toString();\n else if ($fnyYE$fs.existsSync(osReleaseFile)) contents = $fnyYE$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $7f2c36ee4c1c2579$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"1mmqj\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"b4HqL\", function(module, exports) {\n\nvar $djHKf = parcelRequire(\"djHKf\");\n\nvar $CMWjw = parcelRequire(\"CMWjw\");\nfunction $8101c1dee09e6f84$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $djHKf)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $CMWjw(rnds);\n}\nmodule.exports = $8101c1dee09e6f84$var$v4;\n\n});\nparcelRegister(\"djHKf\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $fnyYE$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"CMWjw\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $074983196b00f550$var$byteToHex = [];\nfor(var $074983196b00f550$var$i = 0; $074983196b00f550$var$i < 256; ++$074983196b00f550$var$i)$074983196b00f550$var$byteToHex[$074983196b00f550$var$i] = ($074983196b00f550$var$i + 0x100).toString(16).substr(1);\nfunction $074983196b00f550$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $074983196b00f550$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $074983196b00f550$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"ioM8U\", function(module, exports) {\n\"use strict\";\nvar $d64fd000bc54e123$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d64fd000bc54e123$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d64fd000bc54e123$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d64fd000bc54e123$var$__createBinding(result, mod, k);\n }\n $d64fd000bc54e123$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d64fd000bc54e123$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $d64fd000bc54e123$var$tr = $d64fd000bc54e123$var$__importStar((parcelRequire(\"7Ee0q\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $d64fd000bc54e123$var$exec(commandLine, args, options) {\n return $d64fd000bc54e123$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $d64fd000bc54e123$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $d64fd000bc54e123$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $d64fd000bc54e123$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $d64fd000bc54e123$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $d64fd000bc54e123$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $fnyYE$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $fnyYE$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $d64fd000bc54e123$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $d64fd000bc54e123$var$getExecOutput;\n\n});\nparcelRegister(\"7Ee0q\", function(module, exports) {\n\"use strict\";\nvar $59172219f851c8e5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $59172219f851c8e5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $59172219f851c8e5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $59172219f851c8e5$var$__createBinding(result, mod, k);\n }\n $59172219f851c8e5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $59172219f851c8e5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $59172219f851c8e5$var$os = $59172219f851c8e5$var$__importStar($fnyYE$os);\n\nconst $59172219f851c8e5$var$events = $59172219f851c8e5$var$__importStar($fnyYE$events);\n\nconst $59172219f851c8e5$var$child = $59172219f851c8e5$var$__importStar($fnyYE$child_process);\n\nconst $59172219f851c8e5$var$path = $59172219f851c8e5$var$__importStar($fnyYE$path);\n\nconst $59172219f851c8e5$var$io = $59172219f851c8e5$var$__importStar((parcelRequire(\"jGHPG\")));\n\nconst $59172219f851c8e5$var$ioUtil = $59172219f851c8e5$var$__importStar((parcelRequire(\"akQoU\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $59172219f851c8e5$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $59172219f851c8e5$var$ToolRunner extends $59172219f851c8e5$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($59172219f851c8e5$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $59172219f851c8e5$var$os.EOL.length);\n n = s.indexOf($59172219f851c8e5$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $59172219f851c8e5$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$59172219f851c8e5$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $59172219f851c8e5$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $59172219f851c8e5$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $59172219f851c8e5$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$59172219f851c8e5$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $59172219f851c8e5$var$os.EOL);\n const state = new $59172219f851c8e5$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $59172219f851c8e5$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $59172219f851c8e5$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $59172219f851c8e5$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $59172219f851c8e5$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $59172219f851c8e5$var$argStringToArray;\nclass $59172219f851c8e5$var$ExecState extends $59172219f851c8e5$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $fnyYE$timers.setTimeout($59172219f851c8e5$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"kqI8i\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.e93d39c0.js\")).then(()=>parcelRequire(\"i1n7v\"));\n\n});\n\nparcelRegister(\"jaABp\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.4215b06b.js\")).then(()=>parcelRequire(\"dTPU2\"));\n\n});\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $hapVv = parcelRequire(\"hapVv\");\nvar $4e3c346433ebbc09$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"kspKY\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($4e3c346433ebbc09$exports);\n\n\nvar $34bd17ad1efa4734$exports = {};\n\n$34bd17ad1efa4734$exports = (parcelRequire(\"dl3mv\"));\n\n\nvar $59f03960c4356765$exports = {};\n$59f03960c4356765$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $50315e26c0e27da3$exports = {};\nvar $0e88ae88a43ce51d$exports = {};\n\n$parcel$export($0e88ae88a43ce51d$exports, \"isexe\", () => $0e88ae88a43ce51d$export$35888d6059c232d4);\n$parcel$export($0e88ae88a43ce51d$exports, \"sync\", () => $0e88ae88a43ce51d$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $eYpZW = parcelRequire(\"eYpZW\");\nconst $0e88ae88a43ce51d$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $0e88ae88a43ce51d$var$checkStat(await (0, $eYpZW.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $0e88ae88a43ce51d$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $0e88ae88a43ce51d$var$checkStat((0, $fnyYE$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $0e88ae88a43ce51d$var$checkStat = (stat, options)=>stat.isFile() && $0e88ae88a43ce51d$var$checkMode(stat, options);\nconst $0e88ae88a43ce51d$var$checkMode = (stat, options)=>{\n const myUid = options.uid ?? process.getuid?.();\n const myGroups = options.groups ?? process.getgroups?.() ?? [];\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $d91120341e00e8b1$exports = {};\n\n$parcel$export($d91120341e00e8b1$exports, \"isexe\", () => $d91120341e00e8b1$export$35888d6059c232d4);\n$parcel$export($d91120341e00e8b1$exports, \"sync\", () => $d91120341e00e8b1$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $eYpZW = parcelRequire(\"eYpZW\");\nconst $d91120341e00e8b1$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $d91120341e00e8b1$var$checkStat(await (0, $eYpZW.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $d91120341e00e8b1$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $d91120341e00e8b1$var$checkStat((0, $fnyYE$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $d91120341e00e8b1$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $d91120341e00e8b1$var$checkStat = (stat, path, options)=>stat.isFile() && $d91120341e00e8b1$var$checkPathExt(path, options);\n\n\n\n\nconst $2c6753b9b21a521e$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $2c6753b9b21a521e$var$impl = $2c6753b9b21a521e$var$platform === \"win32\" ? $d91120341e00e8b1$exports : $0e88ae88a43ce51d$exports;\nconst $2c6753b9b21a521e$export$35888d6059c232d4 = $2c6753b9b21a521e$var$impl.isexe;\nconst $2c6753b9b21a521e$export$92d6409d68f0739a = $2c6753b9b21a521e$var$impl.sync;\n\n\nvar $50315e26c0e27da3$require$isexe = $2c6753b9b21a521e$export$35888d6059c232d4;\nvar $50315e26c0e27da3$require$isexeSync = $2c6753b9b21a521e$export$92d6409d68f0739a;\n\nvar $50315e26c0e27da3$require$join = $fnyYE$path.join;\nvar $50315e26c0e27da3$require$delimiter = $fnyYE$path.delimiter;\nvar $50315e26c0e27da3$require$sep = $fnyYE$path.sep;\nvar $50315e26c0e27da3$require$posix = $fnyYE$path.posix;\nconst $50315e26c0e27da3$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $50315e26c0e27da3$var$rSlash = new RegExp(`[${$50315e26c0e27da3$require$posix.sep}${$50315e26c0e27da3$require$sep === $50315e26c0e27da3$require$posix.sep ? \"\" : $50315e26c0e27da3$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $50315e26c0e27da3$var$rRel = new RegExp(`^\\\\.${$50315e26c0e27da3$var$rSlash.source}`);\nconst $50315e26c0e27da3$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $50315e26c0e27da3$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $50315e26c0e27da3$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($50315e26c0e27da3$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$50315e26c0e27da3$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($50315e26c0e27da3$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $50315e26c0e27da3$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $50315e26c0e27da3$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $50315e26c0e27da3$require$join(pathPart, cmd);\n};\nconst $50315e26c0e27da3$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $50315e26c0e27da3$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $50315e26c0e27da3$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $50315e26c0e27da3$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $50315e26c0e27da3$var$getNotFoundError(cmd);\n};\nconst $50315e26c0e27da3$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $50315e26c0e27da3$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $50315e26c0e27da3$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $50315e26c0e27da3$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $50315e26c0e27da3$var$getNotFoundError(cmd);\n};\n$50315e26c0e27da3$exports = $50315e26c0e27da3$var$which;\n$50315e26c0e27da3$var$which.sync = $50315e26c0e27da3$var$whichSync;\n\n\n\n\n\n\nvar $4921eafec1abd3dc$exports = {};\n\"use strict\";\n\nvar $df2913cc641c503d$exports = {};\n\"use strict\";\n\nvar $2a2a7578225e6f8a$exports = {};\n\"use strict\";\n\nvar $22610d5675f6cbfc$exports = {};\nconst $22610d5675f6cbfc$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $22610d5675f6cbfc$var$COLON = $22610d5675f6cbfc$var$isWindows ? \";\" : \":\";\nvar $0ce59135430d56bf$exports = {};\n\nvar $0ce59135430d56bf$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $0ce59135430d56bf$var$core = (parcelRequire(\"ipr2f\"));\nelse $0ce59135430d56bf$var$core = (parcelRequire(\"bn5RY\"));\n$0ce59135430d56bf$exports = $0ce59135430d56bf$var$isexe;\n$0ce59135430d56bf$var$isexe.sync = $0ce59135430d56bf$var$sync;\nfunction $0ce59135430d56bf$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $0ce59135430d56bf$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $0ce59135430d56bf$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $0ce59135430d56bf$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $0ce59135430d56bf$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $22610d5675f6cbfc$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $22610d5675f6cbfc$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $22610d5675f6cbfc$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $22610d5675f6cbfc$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$22610d5675f6cbfc$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $22610d5675f6cbfc$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $22610d5675f6cbfc$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($22610d5675f6cbfc$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $22610d5675f6cbfc$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $22610d5675f6cbfc$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($22610d5675f6cbfc$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $fnyYE$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $0ce59135430d56bf$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $22610d5675f6cbfc$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $22610d5675f6cbfc$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $fnyYE$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $0ce59135430d56bf$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $22610d5675f6cbfc$var$getNotFoundError(cmd);\n};\n$22610d5675f6cbfc$exports = $22610d5675f6cbfc$var$which;\n$22610d5675f6cbfc$var$which.sync = $22610d5675f6cbfc$var$whichSync;\n\n\nvar $1f7ea53efdcc568b$exports = {};\n\"use strict\";\nconst $1f7ea53efdcc568b$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$1f7ea53efdcc568b$exports = $1f7ea53efdcc568b$var$pathKey;\n// TODO: Remove this for the next major release\n$1f7ea53efdcc568b$exports.default = $1f7ea53efdcc568b$var$pathKey;\n\n\nfunction $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $22610d5675f6cbfc$exports.sync(parsed.command, {\n path: env[$1f7ea53efdcc568b$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $fnyYE$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $fnyYE$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $2a2a7578225e6f8a$var$resolveCommand(parsed) {\n return $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed) || $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed, true);\n}\n$2a2a7578225e6f8a$exports = $2a2a7578225e6f8a$var$resolveCommand;\n\n\nvar $8f2050aa08af93ac$export$ae50443ffc990749;\nvar $8f2050aa08af93ac$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $8f2050aa08af93ac$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $8f2050aa08af93ac$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $8f2050aa08af93ac$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$8f2050aa08af93ac$export$ae50443ffc990749 = $8f2050aa08af93ac$var$escapeCommand;\n$8f2050aa08af93ac$export$6ea29ee575e3f5ff = $8f2050aa08af93ac$var$escapeArgument;\n\n\nvar $17732a12c00d3843$exports = {};\n\"use strict\";\n\nvar $5e87f691800d5237$exports = {};\n\"use strict\";\nvar $d4a9b9ffe69e7e9d$exports = {};\n\"use strict\";\n$d4a9b9ffe69e7e9d$exports = /^#!(.*)/;\n\n\n$5e87f691800d5237$exports = (string = \"\")=>{\n const match = string.match($d4a9b9ffe69e7e9d$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $17732a12c00d3843$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $fnyYE$fs.openSync(command, \"r\");\n $fnyYE$fs.readSync(fd, buffer, 0, size, 0);\n $fnyYE$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $5e87f691800d5237$exports(buffer.toString());\n}\n$17732a12c00d3843$exports = $17732a12c00d3843$var$readShebang;\n\n\nconst $df2913cc641c503d$var$isWin = process.platform === \"win32\";\nconst $df2913cc641c503d$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $df2913cc641c503d$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $df2913cc641c503d$var$detectShebang(parsed) {\n parsed.file = $2a2a7578225e6f8a$exports(parsed);\n const shebang = parsed.file && $17732a12c00d3843$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $2a2a7578225e6f8a$exports(parsed);\n }\n return parsed.file;\n}\nfunction $df2913cc641c503d$var$parseNonShell(parsed) {\n if (!$df2913cc641c503d$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $df2913cc641c503d$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$df2913cc641c503d$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $df2913cc641c503d$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $fnyYE$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $8f2050aa08af93ac$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$8f2050aa08af93ac$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $df2913cc641c503d$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $df2913cc641c503d$var$parseNonShell(parsed);\n}\n$df2913cc641c503d$exports = $df2913cc641c503d$var$parse;\n\n\nvar $634e1b38a0252685$exports = {};\n\"use strict\";\nconst $634e1b38a0252685$var$isWin = process.platform === \"win32\";\nfunction $634e1b38a0252685$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $634e1b38a0252685$var$hookChildProcess(cp, parsed) {\n if (!$634e1b38a0252685$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $634e1b38a0252685$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $634e1b38a0252685$var$verifyENOENT(status, parsed) {\n if ($634e1b38a0252685$var$isWin && status === 1 && !parsed.file) return $634e1b38a0252685$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $634e1b38a0252685$var$verifyENOENTSync(status, parsed) {\n if ($634e1b38a0252685$var$isWin && status === 1 && !parsed.file) return $634e1b38a0252685$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$634e1b38a0252685$exports = {\n hookChildProcess: $634e1b38a0252685$var$hookChildProcess,\n verifyENOENT: $634e1b38a0252685$var$verifyENOENT,\n verifyENOENTSync: $634e1b38a0252685$var$verifyENOENTSync,\n notFoundError: $634e1b38a0252685$var$notFoundError\n};\n\n\nfunction $4921eafec1abd3dc$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $df2913cc641c503d$exports(command, args, options);\n // Spawn the child process\n const spawned = $fnyYE$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $634e1b38a0252685$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $4921eafec1abd3dc$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $df2913cc641c503d$exports(command, args, options);\n // Spawn the child process\n const result = $fnyYE$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $634e1b38a0252685$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$4921eafec1abd3dc$exports = $4921eafec1abd3dc$var$spawn;\n$4921eafec1abd3dc$exports.spawn = $4921eafec1abd3dc$var$spawn;\n$4921eafec1abd3dc$exports.sync = $4921eafec1abd3dc$var$spawnSync;\n$4921eafec1abd3dc$exports._parse = $df2913cc641c503d$exports;\n$4921eafec1abd3dc$exports._enoent = $634e1b38a0252685$exports;\n\n\nfunction $549c4e352a06b05c$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $d5525f2f15c52c26$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $18f3ecaaed9ee42e$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).env[(0, $d5525f2f15c52c26$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($fnyYE$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($fnyYE$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($fnyYE$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($fnyYE$nodepath))).delimiter);\n}\nfunction $18f3ecaaed9ee42e$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $d5525f2f15c52c26$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $18f3ecaaed9ee42e$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $52b2bbacbf2fce64$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$52b2bbacbf2fce64$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $52b2bbacbf2fce64$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $52b2bbacbf2fce64$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $52b2bbacbf2fce64$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $52b2bbacbf2fce64$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $52b2bbacbf2fce64$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $52b2bbacbf2fce64$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $52b2bbacbf2fce64$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $52b2bbacbf2fce64$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$52b2bbacbf2fce64$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $52b2bbacbf2fce64$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$52b2bbacbf2fce64$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $52b2bbacbf2fce64$var$changePrototype(to, from);\n $52b2bbacbf2fce64$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $a04d4844a0ed4819$var$calledFunctions = new WeakMap();\nconst $a04d4844a0ed4819$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $a04d4844a0ed4819$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $52b2bbacbf2fce64$export$2e2bcd8739ae039)(onetime, function_);\n $a04d4844a0ed4819$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$a04d4844a0ed4819$var$onetime.callCount = (function_)=>{\n if (!$a04d4844a0ed4819$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $a04d4844a0ed4819$var$calledFunctions.get(function_);\n};\nvar $a04d4844a0ed4819$export$2e2bcd8739ae039 = $a04d4844a0ed4819$var$onetime;\n\n\n\n\nconst $fa830640b47f21b1$export$e221a98f4fd84d36 = ()=>{\n const length = $fa830640b47f21b1$export$dc8812f2f8882ff4 - $fa830640b47f21b1$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $fa830640b47f21b1$var$getRealtimeSignal);\n};\nconst $fa830640b47f21b1$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $fa830640b47f21b1$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $fa830640b47f21b1$var$SIGRTMIN = 34;\nconst $fa830640b47f21b1$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $882a189e1c91ec96$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $301d564d0cf65684$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $fa830640b47f21b1$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $882a189e1c91ec96$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($301d564d0cf65684$var$normalizeSignal);\n return signals;\n};\nconst $301d564d0cf65684$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $fnyYE$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $12507e11216e36ef$var$getSignalsByName = ()=>{\n const signals = (0, $301d564d0cf65684$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($12507e11216e36ef$var$getSignalByName));\n};\nconst $12507e11216e36ef$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $12507e11216e36ef$export$c3fcb39d6848c78d = $12507e11216e36ef$var$getSignalsByName();\nconst $12507e11216e36ef$var$getSignalsByNumber = ()=>{\n const signals = (0, $301d564d0cf65684$export$c50078d4faa171f0)();\n const length = (0, $fa830640b47f21b1$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$12507e11216e36ef$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $12507e11216e36ef$var$getSignalByNumber = (number, signals)=>{\n const signal = $12507e11216e36ef$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $12507e11216e36ef$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $fnyYE$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $12507e11216e36ef$export$12f57f97a08d2468 = $12507e11216e36ef$var$getSignalsByNumber();\n\n\nconst $308db063cbc0241c$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $308db063cbc0241c$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $12507e11216e36ef$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $308db063cbc0241c$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $f24ec4aeaa88c171$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $f24ec4aeaa88c171$var$hasAlias = (options)=>$f24ec4aeaa88c171$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $f24ec4aeaa88c171$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $f24ec4aeaa88c171$var$aliases.map((alias)=>options[alias]);\n if ($f24ec4aeaa88c171$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$f24ec4aeaa88c171$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $f24ec4aeaa88c171$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $f24ec4aeaa88c171$export$889423b478ae2ba = (options)=>{\n const stdio = $f24ec4aeaa88c171$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $5bcfa55382034716$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $5bcfa55382034716$var$process = $parcel$global.process;\nconst $5bcfa55382034716$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($5bcfa55382034716$var$process)) $5bcfa55382034716$exports = function() {\n return function() {};\n};\nelse {\n var $5bcfa55382034716$var$assert = $fnyYE$assert;\n var $5bcfa55382034716$var$signals = (parcelRequire(\"97KW0\"));\n var $5bcfa55382034716$var$isWin = /^win/i.test($5bcfa55382034716$var$process.platform);\n var $5bcfa55382034716$var$EE = $fnyYE$events;\n /* istanbul ignore if */ if (typeof $5bcfa55382034716$var$EE !== \"function\") $5bcfa55382034716$var$EE = $5bcfa55382034716$var$EE.EventEmitter;\n var $5bcfa55382034716$var$emitter;\n if ($5bcfa55382034716$var$process.__signal_exit_emitter__) $5bcfa55382034716$var$emitter = $5bcfa55382034716$var$process.__signal_exit_emitter__;\n else {\n $5bcfa55382034716$var$emitter = $5bcfa55382034716$var$process.__signal_exit_emitter__ = new $5bcfa55382034716$var$EE();\n $5bcfa55382034716$var$emitter.count = 0;\n $5bcfa55382034716$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$5bcfa55382034716$var$emitter.infinite) {\n $5bcfa55382034716$var$emitter.setMaxListeners(Infinity);\n $5bcfa55382034716$var$emitter.infinite = true;\n }\n $5bcfa55382034716$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return function() {};\n $5bcfa55382034716$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($5bcfa55382034716$var$loaded === false) $5bcfa55382034716$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $5bcfa55382034716$var$emitter.removeListener(ev, cb);\n if ($5bcfa55382034716$var$emitter.listeners(\"exit\").length === 0 && $5bcfa55382034716$var$emitter.listeners(\"afterexit\").length === 0) $5bcfa55382034716$var$unload();\n };\n $5bcfa55382034716$var$emitter.on(ev, cb);\n return remove;\n };\n var $5bcfa55382034716$var$unload = function unload() {\n if (!$5bcfa55382034716$var$loaded || !$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$loaded = false;\n $5bcfa55382034716$var$signals.forEach(function(sig) {\n try {\n $5bcfa55382034716$var$process.removeListener(sig, $5bcfa55382034716$var$sigListeners[sig]);\n } catch (er) {}\n });\n $5bcfa55382034716$var$process.emit = $5bcfa55382034716$var$originalProcessEmit;\n $5bcfa55382034716$var$process.reallyExit = $5bcfa55382034716$var$originalProcessReallyExit;\n $5bcfa55382034716$var$emitter.count -= 1;\n };\n $5bcfa55382034716$exports.unload = $5bcfa55382034716$var$unload;\n var $5bcfa55382034716$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($5bcfa55382034716$var$emitter.emitted[event]) return;\n $5bcfa55382034716$var$emitter.emitted[event] = true;\n $5bcfa55382034716$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $5bcfa55382034716$var$sigListeners = {};\n $5bcfa55382034716$var$signals.forEach(function(sig) {\n $5bcfa55382034716$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $5bcfa55382034716$var$process.listeners(sig);\n if (listeners.length === $5bcfa55382034716$var$emitter.count) {\n $5bcfa55382034716$var$unload();\n $5bcfa55382034716$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($5bcfa55382034716$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $5bcfa55382034716$var$process.kill($5bcfa55382034716$var$process.pid, sig);\n }\n };\n });\n $5bcfa55382034716$exports.signals = function() {\n return $5bcfa55382034716$var$signals;\n };\n var $5bcfa55382034716$var$loaded = false;\n var $5bcfa55382034716$var$load = function load() {\n if ($5bcfa55382034716$var$loaded || !$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $5bcfa55382034716$var$emitter.count += 1;\n $5bcfa55382034716$var$signals = $5bcfa55382034716$var$signals.filter(function(sig) {\n try {\n $5bcfa55382034716$var$process.on(sig, $5bcfa55382034716$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $5bcfa55382034716$var$process.emit = $5bcfa55382034716$var$processEmit;\n $5bcfa55382034716$var$process.reallyExit = $5bcfa55382034716$var$processReallyExit;\n };\n $5bcfa55382034716$exports.load = $5bcfa55382034716$var$load;\n var $5bcfa55382034716$var$originalProcessReallyExit = $5bcfa55382034716$var$process.reallyExit;\n var $5bcfa55382034716$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $5bcfa55382034716$var$emit(\"exit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$originalProcessReallyExit.call($5bcfa55382034716$var$process, $5bcfa55382034716$var$process.exitCode);\n };\n var $5bcfa55382034716$var$originalProcessEmit = $5bcfa55382034716$var$process.emit;\n var $5bcfa55382034716$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $5bcfa55382034716$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $5bcfa55382034716$var$process.exitCode = arg;\n var ret = $5bcfa55382034716$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"exit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $5bcfa55382034716$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $57cef2d38629c34e$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $57cef2d38629c34e$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $57cef2d38629c34e$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $57cef2d38629c34e$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$57cef2d38629c34e$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $57cef2d38629c34e$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $57cef2d38629c34e$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$57cef2d38629c34e$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $57cef2d38629c34e$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($fnyYE$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $57cef2d38629c34e$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $57cef2d38629c34e$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $57cef2d38629c34e$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $57cef2d38629c34e$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $57cef2d38629c34e$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $57cef2d38629c34e$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $57cef2d38629c34e$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $57cef2d38629c34e$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($5bcfa55382034716$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $2d6c6b95b9de87a9$export$b58a61c52edb4f66(stream) {\n return $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $2d6c6b95b9de87a9$export$ac613ff475b69d05(stream) {\n return $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $2d6c6b95b9de87a9$export$f92d8ccfaec172d4(stream) {\n return $2d6c6b95b9de87a9$export$b58a61c52edb4f66(stream) && $2d6c6b95b9de87a9$export$ac613ff475b69d05(stream);\n}\nfunction $2d6c6b95b9de87a9$export$3053cdc6f2e088fd(stream) {\n return $2d6c6b95b9de87a9$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $744049a49fc85c52$var$isExecaChildProcess = (target)=>target instanceof (0, $fnyYE$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $744049a49fc85c52$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $fnyYE$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$744049a49fc85c52$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $744049a49fc85c52$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $349ce5e91c8678de$exports = {};\n\"use strict\";\n\nvar $349ce5e91c8678de$require$BufferConstants = $fnyYE$buffer.constants;\n\n\nvar $349ce5e91c8678de$require$promisify = $fnyYE$util.promisify;\nvar $0a562810758a12db$exports = {};\n\"use strict\";\n\nvar $0a562810758a12db$require$PassThroughStream = $fnyYE$stream.PassThrough;\n$0a562810758a12db$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $0a562810758a12db$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $349ce5e91c8678de$var$streamPipelinePromisified = $349ce5e91c8678de$require$promisify($fnyYE$stream.pipeline);\nclass $349ce5e91c8678de$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $349ce5e91c8678de$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $0a562810758a12db$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $349ce5e91c8678de$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $349ce5e91c8678de$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $349ce5e91c8678de$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$349ce5e91c8678de$exports = $349ce5e91c8678de$var$getStream;\n$349ce5e91c8678de$exports.buffer = (stream, options)=>$349ce5e91c8678de$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$349ce5e91c8678de$exports.array = (stream, options)=>$349ce5e91c8678de$var$getStream(stream, {\n ...options,\n array: true\n });\n$349ce5e91c8678de$exports.MaxBufferError = $349ce5e91c8678de$var$MaxBufferError;\n\n\nvar $7870f1a2cf8ddf98$exports = {};\n\"use strict\";\n\nvar $7870f1a2cf8ddf98$require$PassThrough = $fnyYE$stream.PassThrough;\n$7870f1a2cf8ddf98$exports = function() {\n var sources = [];\n var output = new $7870f1a2cf8ddf98$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $71bc5c93e99bc1be$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $71bc5c93e99bc1be$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $71bc5c93e99bc1be$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.readFileSync)(inputFile);\n};\nconst $71bc5c93e99bc1be$export$7f2f9b6457412b41 = (options)=>{\n const input = $71bc5c93e99bc1be$var$getInputSync(options);\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $71bc5c93e99bc1be$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $71bc5c93e99bc1be$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.createReadStream)(inputFile);\n};\nconst $71bc5c93e99bc1be$export$412508d679148d5c = (spawned, options)=>{\n const input = $71bc5c93e99bc1be$var$getInput(options);\n if (input === undefined) return;\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $71bc5c93e99bc1be$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($7870f1a2cf8ddf98$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $71bc5c93e99bc1be$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $71bc5c93e99bc1be$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $71bc5c93e99bc1be$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $71bc5c93e99bc1be$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $71bc5c93e99bc1be$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $71bc5c93e99bc1be$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $71bc5c93e99bc1be$var$getBufferedData(stdout, stdoutPromise),\n $71bc5c93e99bc1be$var$getBufferedData(stderr, stderrPromise),\n $71bc5c93e99bc1be$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $7eb1badc051e7744$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $7eb1badc051e7744$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($7eb1badc051e7744$var$nativePromisePrototype, property)\n ]);\nconst $7eb1badc051e7744$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $7eb1badc051e7744$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $7eb1badc051e7744$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $374572c9d0f23731$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $374572c9d0f23731$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $374572c9d0f23731$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $374572c9d0f23731$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $374572c9d0f23731$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($374572c9d0f23731$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $374572c9d0f23731$export$ab3db8fe5ebf3a1 = (file, args)=>$374572c9d0f23731$var$normalizeArgs(file, args).join(\" \");\nconst $374572c9d0f23731$export$9d3099014bd914f8 = (file, args)=>$374572c9d0f23731$var$normalizeArgs(file, args).map((arg)=>$374572c9d0f23731$var$escapeArg(arg)).join(\" \");\nconst $374572c9d0f23731$var$SPACES_REGEXP = / +/g;\nconst $374572c9d0f23731$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($374572c9d0f23731$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $374572c9d0f23731$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $fnyYE$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $fnyYE$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $374572c9d0f23731$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $374572c9d0f23731$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($374572c9d0f23731$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $374572c9d0f23731$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$374572c9d0f23731$var$parseExpression(expression)) : [\n $374572c9d0f23731$var$parseExpression(expression)\n ];\n return $374572c9d0f23731$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $374572c9d0f23731$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $374572c9d0f23731$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $82a444b20e7edc56$export$38bb3c1fbaa0bdcf = (0, $fnyYE$nodeutil.debuglog)(\"execa\").enabled;\nconst $82a444b20e7edc56$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $82a444b20e7edc56$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$82a444b20e7edc56$var$padField(date.getHours(), 2)}:${$82a444b20e7edc56$var$padField(date.getMinutes(), 2)}:${$82a444b20e7edc56$var$padField(date.getSeconds(), 2)}.${$82a444b20e7edc56$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $82a444b20e7edc56$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($fnyYE$nodeprocess))).stderr.write(`[${$82a444b20e7edc56$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $bd3d80fab706f490$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $bd3d80fab706f490$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($fnyYE$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $18f3ecaaed9ee42e$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $bd3d80fab706f490$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($4921eafec1abd3dc$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $bd3d80fab706f490$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $82a444b20e7edc56$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $bd3d80fab706f490$var$getEnv(options);\n options.stdio = (0, $f24ec4aeaa88c171$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($fnyYE$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($fnyYE$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $bd3d80fab706f490$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $fnyYE$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $549c4e352a06b05c$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $bd3d80fab706f490$export$db6b1668e3758717(file, args, options) {\n const parsed = $bd3d80fab706f490$var$handleArguments(file, args, options);\n const command = (0, $374572c9d0f23731$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $374572c9d0f23731$export$9d3099014bd914f8)(file, args);\n (0, $82a444b20e7edc56$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $57cef2d38629c34e$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($fnyYE$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $7eb1badc051e7744$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $7eb1badc051e7744$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $57cef2d38629c34e$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $57cef2d38629c34e$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $57cef2d38629c34e$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $57cef2d38629c34e$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $71bc5c93e99bc1be$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $bd3d80fab706f490$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $bd3d80fab706f490$var$handleOutput(parsed.options, stderrResult);\n const all = $bd3d80fab706f490$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a04d4844a0ed4819$export$2e2bcd8739ae039)(handlePromise);\n (0, $71bc5c93e99bc1be$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $71bc5c93e99bc1be$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $744049a49fc85c52$export$14becf8d91886424)(spawned);\n (0, $7eb1badc051e7744$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $bd3d80fab706f490$export$28823a701bb5a12d(file, args, options) {\n const parsed = $bd3d80fab706f490$var$handleArguments(file, args, options);\n const command = (0, $374572c9d0f23731$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $374572c9d0f23731$export$9d3099014bd914f8)(file, args);\n (0, $82a444b20e7edc56$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $71bc5c93e99bc1be$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $bd3d80fab706f490$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $bd3d80fab706f490$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $bd3d80fab706f490$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $bd3d80fab706f490$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$bd3d80fab706f490$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $bd3d80fab706f490$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $bd3d80fab706f490$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $374572c9d0f23731$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $bd3d80fab706f490$export$db6b1668e3758717(file, args, $bd3d80fab706f490$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $374572c9d0f23731$export$4a6ee54de9b0f25d)(templates, expressions);\n return $bd3d80fab706f490$export$28823a701bb5a12d(file, args, $bd3d80fab706f490$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $bd3d80fab706f490$export$3d8c2f653ac9d0b9 = $bd3d80fab706f490$var$create$();\nfunction $bd3d80fab706f490$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $374572c9d0f23731$export$78bcee23e0849f6a)(command);\n return $bd3d80fab706f490$export$db6b1668e3758717(file, args, options);\n}\nfunction $bd3d80fab706f490$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $374572c9d0f23731$export$78bcee23e0849f6a)(command);\n return $bd3d80fab706f490$export$28823a701bb5a12d(file, args, options);\n}\nfunction $bd3d80fab706f490$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $f24ec4aeaa88c171$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $bd3d80fab706f490$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $1e9f9ad269e26aae$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $1e9f9ad269e26aae$export$e3140dc7d0c35e48() {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI);\n}\nfunction $1e9f9ad269e26aae$export$316200228f28b8ce() {\n return $1e9f9ad269e26aae$export$e3140dc7d0c35e48() && $1e9f9ad269e26aae$export$7683bf1311d8252();\n}\nfunction $1e9f9ad269e26aae$export$d976d47922ae9667(command) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $1e9f9ad269e26aae$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $1e9f9ad269e26aae$export$58f152936f209932(program, args = [], execOptions = $1e9f9ad269e26aae$export$151aeb0ade3989e1) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) {\n const command = $1e9f9ad269e26aae$var$getSudoCommand(program, args);\n return (0, $bd3d80fab706f490$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $bd3d80fab706f490$export$28823a701bb5a12d)(program, $1e9f9ad269e26aae$var$quote(args), execOptions);\n}\nfunction $1e9f9ad269e26aae$export$351270479e2eef26(program, args = [], execOptions = $1e9f9ad269e26aae$export$151aeb0ade3989e1) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) {\n const command = $1e9f9ad269e26aae$var$getSudoCommand(program, args);\n return (0, $bd3d80fab706f490$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $bd3d80fab706f490$export$db6b1668e3758717)(program, $1e9f9ad269e26aae$var$quote(args), execOptions);\n}\nfunction $1e9f9ad269e26aae$var$getSudoCommand(program, args) {\n return `sudo ${$1e9f9ad269e26aae$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $1e9f9ad269e26aae$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $7120092f94f12685$var$testFltmc() {\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $7120092f94f12685$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n process.env.systemdrive ?? \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $7120092f94f12685$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $1aae8e03aef537e0$export$36ad181701cee597 = (0, $7120092f94f12685$export$2e2bcd8739ae039);\nconst $1aae8e03aef537e0$export$2ebf12717e6b5bb8 = (0, $1e9f9ad269e26aae$export$e3140dc7d0c35e48);\nfunction $1aae8e03aef537e0$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $1aae8e03aef537e0$export$36ad181701cee597();\n else return (0, $1e9f9ad269e26aae$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $5d373f8b741de762$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $1e9f9ad269e26aae$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($fnyYE$fs))).statSync(path).isDirectory();\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $1e9f9ad269e26aae$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $4575b21c37e83a45$export$3ce714bda98f65f0() {\n if ((0, $1e9f9ad269e26aae$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $fnyYE$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $fnyYE$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $fnyYE$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $4575b21c37e83a45$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $4575b21c37e83a45$export$8312d9eeba321950(path) {\n const maybeHomeDir = $4575b21c37e83a45$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($4575b21c37e83a45$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $b27adcb42a309c31$exports = {};\n\"use strict\";\n\n\nvar $24j9d = parcelRequire(\"24j9d\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $b27adcb42a309c31$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $b27adcb42a309c31$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $b27adcb42a309c31$var$packageJson = $fnyYE$process.env.npm_package_json;\nvar $b27adcb42a309c31$var$userAgent = $fnyYE$process.env.npm_config_user_agent;\nvar $b27adcb42a309c31$var$isNpm6 = Boolean($b27adcb42a309c31$var$userAgent && $b27adcb42a309c31$var$userAgent.startsWith(\"npm\"));\nvar $b27adcb42a309c31$var$isNpm7 = Boolean($b27adcb42a309c31$var$packageJson && $b27adcb42a309c31$var$packageJson.endsWith(\"package.json\"));\nvar $b27adcb42a309c31$var$isNpm = $b27adcb42a309c31$var$isNpm6 || $b27adcb42a309c31$var$isNpm7;\nvar $b27adcb42a309c31$var$isYarn = Boolean($b27adcb42a309c31$var$userAgent && $b27adcb42a309c31$var$userAgent.startsWith(\"yarn\"));\nvar $b27adcb42a309c31$var$isNpmOrYarn = $b27adcb42a309c31$var$isNpm || $b27adcb42a309c31$var$isYarn;\nvar $b27adcb42a309c31$var$homeDirectory = $fnyYE$os.homedir();\nvar $b27adcb42a309c31$var$configDir = process.env.XDG_CONFIG_HOME || $fnyYE$path.join($b27adcb42a309c31$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $b27adcb42a309c31$var$getConfigFile = function(packageName) {\n return $fnyYE$path.join($b27adcb42a309c31$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $b27adcb42a309c31$var$createConfigDir = function() {\n if (!$fnyYE$fs.existsSync($b27adcb42a309c31$var$configDir)) $fnyYE$fs.mkdirSync($b27adcb42a309c31$var$configDir, {\n recursive: true\n });\n};\nvar $b27adcb42a309c31$var$getLastUpdate = function(packageName) {\n var configFile = $b27adcb42a309c31$var$getConfigFile(packageName);\n try {\n if (!$fnyYE$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($fnyYE$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $b27adcb42a309c31$var$saveLastUpdate = function(packageName) {\n var configFile = $b27adcb42a309c31$var$getConfigFile(packageName);\n $fnyYE$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $b27adcb42a309c31$var$getDistVersion = function(packageName, distTag) {\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $b27adcb42a309c31$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $fnyYE$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $b27adcb42a309c31$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $b27adcb42a309c31$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $b27adcb42a309c31$var$createConfigDir();\n lastUpdateCheck = $b27adcb42a309c31$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $b27adcb42a309c31$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $b27adcb42a309c31$var$saveLastUpdate(pkg.name);\n if ($24j9d.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $b27adcb42a309c31$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $b27adcb42a309c31$var$simpleUpdateNotifier = function(args) {\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $b27adcb42a309c31$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $b27adcb42a309c31$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $b27adcb42a309c31$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($b27adcb42a309c31$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$b27adcb42a309c31$exports = $b27adcb42a309c31$var$simpleUpdateNotifier;\n\n\nvar $36ad19468a8da7cc$exports = {};\n$36ad19468a8da7cc$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $8f12de6ff658e88d$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($b27adcb42a309c31$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($36ad19468a8da7cc$exports)))\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nfunction $43b63e3f508cec08$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $43b63e3f508cec08$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $43b63e3f508cec08$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $43b63e3f508cec08$var$toArr(opts.string);\n opts.boolean = $43b63e3f508cec08$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $43b63e3f508cec08$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $43b63e3f508cec08$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $ab26416ab1998b9d$var$hasDnfCache = undefined;\nfunction $ab26416ab1998b9d$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($ab26416ab1998b9d$var$hasDnfCache === undefined) $ab26416ab1998b9d$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $ab26416ab1998b9d$var$hasDnfCache;\n}\n\n\n\nlet $01378da92d425308$var$isArchCache = undefined;\nfunction $01378da92d425308$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($01378da92d425308$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $01378da92d425308$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $01378da92d425308$var$isArchCache;\n}\n\n\n\nlet $92d741f963835199$var$isUbuntuCache = undefined;\nfunction $92d741f963835199$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($92d741f963835199$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $92d741f963835199$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $92d741f963835199$var$isUbuntuCache;\n}\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $ed450a52f29dc246$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $ed450a52f29dc246$var$is_posix_os = $fnyYE$os.platform() !== \"win32\";\nconst $ed450a52f29dc246$var$version = $fnyYE$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $ed450a52f29dc246$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $ed450a52f29dc246$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$ed450a52f29dc246$exports = function(given_path) {\n return $ed450a52f29dc246$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $ed450a52f29dc246$var$should_not_escape(...$ed450a52f29dc246$var$windows_version_regex.exec($ed450a52f29dc246$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $32df303eaddee625$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"fQ0Jj\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $32df303eaddee625$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($32df303eaddee625$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $2d2b35cb7d79377d$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $12507e11216e36ef$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $2d2b35cb7d79377d$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $1fcc4334ad29416e$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $1fcc4334ad29416e$var$hasAlias = (options)=>$1fcc4334ad29416e$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $1fcc4334ad29416e$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $1fcc4334ad29416e$var$aliases.map((alias)=>options[alias]);\n if ($1fcc4334ad29416e$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$1fcc4334ad29416e$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $1fcc4334ad29416e$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $1fcc4334ad29416e$export$889423b478ae2ba = (options)=>{\n const stdio = $1fcc4334ad29416e$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $3eb76a003fd13692$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $3eb76a003fd13692$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $3eb76a003fd13692$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $3eb76a003fd13692$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$3eb76a003fd13692$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $3eb76a003fd13692$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $3eb76a003fd13692$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$3eb76a003fd13692$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $3eb76a003fd13692$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($fnyYE$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $3eb76a003fd13692$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $3eb76a003fd13692$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $3eb76a003fd13692$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $3eb76a003fd13692$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $3eb76a003fd13692$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $3eb76a003fd13692$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $3eb76a003fd13692$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $3eb76a003fd13692$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($5bcfa55382034716$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $6d92929d9d6e2535$var$isExecaChildProcess = (target)=>target instanceof (0, $fnyYE$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $6d92929d9d6e2535$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $fnyYE$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$6d92929d9d6e2535$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $6d92929d9d6e2535$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $91d0a6b72dc7a2bf$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $91d0a6b72dc7a2bf$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $91d0a6b72dc7a2bf$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.readFileSync)(inputFile);\n};\nconst $91d0a6b72dc7a2bf$export$7f2f9b6457412b41 = (options)=>{\n const input = $91d0a6b72dc7a2bf$var$getInputSync(options);\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $91d0a6b72dc7a2bf$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $91d0a6b72dc7a2bf$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.createReadStream)(inputFile);\n};\nconst $91d0a6b72dc7a2bf$export$412508d679148d5c = (spawned, options)=>{\n const input = $91d0a6b72dc7a2bf$var$getInput(options);\n if (input === undefined) return;\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $91d0a6b72dc7a2bf$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($7870f1a2cf8ddf98$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $91d0a6b72dc7a2bf$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $91d0a6b72dc7a2bf$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $91d0a6b72dc7a2bf$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $91d0a6b72dc7a2bf$var$getBufferedData(stdout, stdoutPromise),\n $91d0a6b72dc7a2bf$var$getBufferedData(stderr, stderrPromise),\n $91d0a6b72dc7a2bf$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $d2bfba69adbb5bfe$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $d2bfba69adbb5bfe$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($d2bfba69adbb5bfe$var$nativePromisePrototype, property)\n ]);\nconst $d2bfba69adbb5bfe$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $d2bfba69adbb5bfe$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $d2bfba69adbb5bfe$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $218398de7f05b125$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $218398de7f05b125$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $218398de7f05b125$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $218398de7f05b125$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $218398de7f05b125$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($218398de7f05b125$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $218398de7f05b125$export$ab3db8fe5ebf3a1 = (file, args)=>$218398de7f05b125$var$normalizeArgs(file, args).join(\" \");\nconst $218398de7f05b125$export$9d3099014bd914f8 = (file, args)=>$218398de7f05b125$var$normalizeArgs(file, args).map((arg)=>$218398de7f05b125$var$escapeArg(arg)).join(\" \");\nconst $218398de7f05b125$var$SPACES_REGEXP = / +/g;\nconst $218398de7f05b125$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($218398de7f05b125$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $218398de7f05b125$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $fnyYE$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $fnyYE$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $218398de7f05b125$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $218398de7f05b125$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($218398de7f05b125$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $218398de7f05b125$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$218398de7f05b125$var$parseExpression(expression)) : [\n $218398de7f05b125$var$parseExpression(expression)\n ];\n return $218398de7f05b125$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $218398de7f05b125$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $218398de7f05b125$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $d9b84425ae38ee46$export$38bb3c1fbaa0bdcf = (0, $fnyYE$nodeutil.debuglog)(\"execa\").enabled;\nconst $d9b84425ae38ee46$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $d9b84425ae38ee46$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$d9b84425ae38ee46$var$padField(date.getHours(), 2)}:${$d9b84425ae38ee46$var$padField(date.getMinutes(), 2)}:${$d9b84425ae38ee46$var$padField(date.getSeconds(), 2)}.${$d9b84425ae38ee46$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $d9b84425ae38ee46$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($fnyYE$nodeprocess))).stderr.write(`[${$d9b84425ae38ee46$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $77816da212b6c3e7$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $77816da212b6c3e7$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($fnyYE$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $18f3ecaaed9ee42e$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $77816da212b6c3e7$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($4921eafec1abd3dc$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $77816da212b6c3e7$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $d9b84425ae38ee46$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $77816da212b6c3e7$var$getEnv(options);\n options.stdio = (0, $1fcc4334ad29416e$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($fnyYE$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($fnyYE$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $77816da212b6c3e7$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $fnyYE$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $549c4e352a06b05c$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $77816da212b6c3e7$export$db6b1668e3758717(file, args, options) {\n const parsed = $77816da212b6c3e7$var$handleArguments(file, args, options);\n const command = (0, $218398de7f05b125$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $218398de7f05b125$export$9d3099014bd914f8)(file, args);\n (0, $d9b84425ae38ee46$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $3eb76a003fd13692$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($fnyYE$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $d2bfba69adbb5bfe$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $d2bfba69adbb5bfe$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $3eb76a003fd13692$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $3eb76a003fd13692$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $3eb76a003fd13692$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $3eb76a003fd13692$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $91d0a6b72dc7a2bf$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $77816da212b6c3e7$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $77816da212b6c3e7$var$handleOutput(parsed.options, stderrResult);\n const all = $77816da212b6c3e7$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a04d4844a0ed4819$export$2e2bcd8739ae039)(handlePromise);\n (0, $91d0a6b72dc7a2bf$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $91d0a6b72dc7a2bf$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $6d92929d9d6e2535$export$14becf8d91886424)(spawned);\n (0, $d2bfba69adbb5bfe$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $77816da212b6c3e7$export$28823a701bb5a12d(file, args, options) {\n const parsed = $77816da212b6c3e7$var$handleArguments(file, args, options);\n const command = (0, $218398de7f05b125$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $218398de7f05b125$export$9d3099014bd914f8)(file, args);\n (0, $d9b84425ae38ee46$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $91d0a6b72dc7a2bf$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $77816da212b6c3e7$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $77816da212b6c3e7$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $77816da212b6c3e7$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $77816da212b6c3e7$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$77816da212b6c3e7$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $77816da212b6c3e7$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $77816da212b6c3e7$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $218398de7f05b125$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $77816da212b6c3e7$export$db6b1668e3758717(file, args, $77816da212b6c3e7$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $218398de7f05b125$export$4a6ee54de9b0f25d)(templates, expressions);\n return $77816da212b6c3e7$export$28823a701bb5a12d(file, args, $77816da212b6c3e7$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $77816da212b6c3e7$export$3d8c2f653ac9d0b9 = $77816da212b6c3e7$var$create$();\nfunction $77816da212b6c3e7$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $218398de7f05b125$export$78bcee23e0849f6a)(command);\n return $77816da212b6c3e7$export$db6b1668e3758717(file, args, options);\n}\nfunction $77816da212b6c3e7$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $218398de7f05b125$export$78bcee23e0849f6a)(command);\n return $77816da212b6c3e7$export$28823a701bb5a12d(file, args, options);\n}\nfunction $77816da212b6c3e7$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $1fcc4334ad29416e$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $77816da212b6c3e7$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $a74ade802ba8cfb6$var$powershell;\nfunction $a74ade802ba8cfb6$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $77816da212b6c3e7$export$db6b1668e3758717($a74ade802ba8cfb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $a74ade802ba8cfb6$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $77816da212b6c3e7$export$28823a701bb5a12d($a74ade802ba8cfb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $a74ade802ba8cfb6$export$4dfdd3964d242d20() {\n if ($a74ade802ba8cfb6$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $a74ade802ba8cfb6$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $a74ade802ba8cfb6$var$powershell = maybePowerShell;\n }\n if ($a74ade802ba8cfb6$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $a74ade802ba8cfb6$var$powershell;\n}\n\n\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nconst $8050f2585a3bae5e$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $8050f2585a3bae5e$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $8050f2585a3bae5e$var$defaultAddEnvOptions) {\n const options = {\n ...$8050f2585a3bae5e$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $8050f2585a3bae5e$var$escapeString(valGiven ?? \"\", options.shouldEscapeSpace);\n try {\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $lUL8q.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $lUL8q.exportVariable)(name, val);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n await $8050f2585a3bae5e$var$addEnvSystem(name, val, options);\n }\n else await $8050f2585a3bae5e$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n (0, $lUL8q.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $8050f2585a3bae5e$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($ed450a52f29dc246$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($32df303eaddee625$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $8050f2585a3bae5e$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $8050f2585a3bae5e$var$isIgnoredPath(path) {\n if ($8050f2585a3bae5e$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n const paths = process.env.PATH?.split((0, $fnyYE$path.delimiter)) ?? [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $8050f2585a3bae5e$export$4c25481b843feb0b(path) {\n if ($8050f2585a3bae5e$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $fnyYE$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n (0, $lUL8q.addPath)(path);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n await $8050f2585a3bae5e$var$addPathSystem(path);\n }\n else await $8050f2585a3bae5e$var$addPathSystem(path);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n (0, $lUL8q.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $8050f2585a3bae5e$export$1bbbc3a810c5799d = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $8050f2585a3bae5e$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven ?? \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $lUL8q.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $a74ade802ba8cfb6$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $lUL8q.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $8050f2585a3bae5e$export$bd1dffd792f43c41();\n if (options.shouldAddOnlyIfNotDefined) {\n (0, $fnyYE$fs.appendFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $lUL8q.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n } else {\n (0, $fnyYE$fs.appendFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $lUL8q.info)(`${name}=\"${val}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $8050f2585a3bae5e$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $a74ade802ba8cfb6$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $lUL8q.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $8050f2585a3bae5e$export$bd1dffd792f43c41();\n (0, $fnyYE$fs.appendFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $lUL8q.info)(`\"${path}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $8050f2585a3bae5e$var$setupCppInProfile_called = false;\nasync function $8050f2585a3bae5e$export$bd1dffd792f43c41() {\n if ($8050f2585a3bae5e$var$setupCppInProfile_called) return;\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $6afW1.pathExists)($8050f2585a3bae5e$export$1bbbc3a810c5799d)) {\n const cpprc_content = (0, $fnyYE$fs.readFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n (0, $fnyYE$fs.appendFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\n${source_cpprc_str}\\n`);\n (0, $lUL8q.info)(`Added ${source_cpprc_str} to ${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n }\n }\n // source cpprc in bashrc/profile\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\" ]]; then source \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n // source cpprc in .profile\n const profile_path = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $6afW1.pathExists)(profile_path)) {\n const profileContent = (0, $fnyYE$fs.readFileSync)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n (0, $fnyYE$fs.appendFileSync)(profile_path, source_cpprc_string);\n (0, $lUL8q.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n // source cpprc in .bashrc too\n const bashrc_path = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $6afW1.pathExists)(bashrc_path)) {\n const bashrcContent = (0, $fnyYE$fs.readFileSync)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n (0, $fnyYE$fs.appendFileSync)(bashrc_path, source_cpprc_string);\n (0, $lUL8q.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $8050f2585a3bae5e$var$setupCppInProfile_called = true;\n}\nasync function $8050f2585a3bae5e$export$ca46151966bee7ba() {\n if (await (0, $6afW1.pathExists)($8050f2585a3bae5e$export$1bbbc3a810c5799d)) {\n const entries = (0, $fnyYE$fs.readFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, \"utf-8\").split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n (0, $fnyYE$fs.writeFileSync)($8050f2585a3bae5e$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $5d373f8b741de762$export$4718e061a205eab)($8050f2585a3bae5e$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $hImoI = parcelRequire(\"hImoI\");\n\n\nconst { appendFile: $c7e2f37817c8297c$var$appendFile } = (0, $fnyYE$fs.promises);\n/* eslint-disable require-atomic-updates */ let $c7e2f37817c8297c$var$didUpdate = false;\nlet $c7e2f37817c8297c$var$didInit = false;\nconst $c7e2f37817c8297c$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $c7e2f37817c8297c$export$d73dc343f5abf26(packages, update = false) {\n const apt = $c7e2f37817c8297c$var$getApt();\n for (const { name: name, version: version } of packages)(0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$c7e2f37817c8297c$var$didUpdate || update) {\n $c7e2f37817c8297c$var$updateRepos(apt);\n $c7e2f37817c8297c$var$didUpdate = true;\n }\n if (!$c7e2f37817c8297c$var$didInit) {\n await $c7e2f37817c8297c$var$initApt(apt);\n $c7e2f37817c8297c$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>pack.repositories ?? []))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $c7e2f37817c8297c$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$c7e2f37817c8297c$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($c7e2f37817c8297c$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $g0Mwp.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $c7e2f37817c8297c$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($c7e2f37817c8297c$export$e6e2160a140a491e || ($c7e2f37817c8297c$export$e6e2160a140a491e = {}));\nasync function $c7e2f37817c8297c$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $hImoI.default)(name)}-${(0, $hImoI.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $c7e2f37817c8297c$var$getAptArg(name, version) {\n const package_type = await $c7e2f37817c8297c$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`);\n }\n}\nfunction $c7e2f37817c8297c$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $c7e2f37817c8297c$var$getApt() {\n let apt;\n if ($c7e2f37817c8297c$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $c7e2f37817c8297c$var$updateRepos(apt) {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $c7e2f37817c8297c$var$initApt(apt) {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $c7e2f37817c8297c$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $c7e2f37817c8297c$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $c7e2f37817c8297c$var$initGpg() {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $c7e2f37817c8297c$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6afW1.pathExists)(fileName)) {\n $c7e2f37817c8297c$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $c7e2f37817c8297c$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6afW1.pathExists)(fileName)) {\n $c7e2f37817c8297c$var$initGpg();\n await $c7e2f37817c8297c$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $c7e2f37817c8297c$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $l5aZl.GITHUB_ACTIONS) return (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $8050f2585a3bae5e$export$bd1dffd792f43c41)();\n return $c7e2f37817c8297c$var$appendFile((0, $8050f2585a3bae5e$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $c7e2f37817c8297c$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nvar $jGHPG = parcelRequire(\"jGHPG\");\n\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/* eslint-disable require-atomic-updates */ let $b898747961832fe2$var$binDir;\nasync function $b898747961832fe2$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $b898747961832fe2$var$binDir === \"string\") return {\n binDir: $b898747961832fe2$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $b898747961832fe2$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $b898747961832fe2$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($fnyYE$path))).join((0, $fnyYE$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $jGHPG.mkdirP)(brewTempDirectory);\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $fnyYE$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $fnyYE$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $b898747961832fe2$var$binDir = $b898747961832fe2$export$cba19b0564b654bf();\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)($b898747961832fe2$var$binDir);\n return {\n binDir: $b898747961832fe2$var$binDir\n };\n}\nfunction $b898747961832fe2$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $479118dccc1788e1$var$hasBrew = false;\nasync function $479118dccc1788e1$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $lUL8q.info)(`Installing ${name} ${version ?? \"\"} via brew`);\n if (!$479118dccc1788e1$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $b898747961832fe2$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $479118dccc1788e1$var$hasBrew = true;\n }\n const binDir = (0, $b898747961832fe2$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)((0, $e19ul.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nlet $f06ab0c228dc75ce$var$binDir;\nasync function $f06ab0c228dc75ce$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $f06ab0c228dc75ce$var$binDir === \"string\") return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $f06ab0c228dc75ce$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeChoco !== null) $f06ab0c228dc75ce$var$binDir = (0, $e19ul.dirname)(maybeChoco);\n else $f06ab0c228dc75ce$var$binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $6afW1.pathExists)($f06ab0c228dc75ce$var$binDir)) return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $173db03f510746e0$var$hasChoco = false;\nasync function $173db03f510746e0$export$9f6912bc890040b2(name, version, args = []) {\n (0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via chocolatey`);\n if (!$173db03f510746e0$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $f06ab0c228dc75ce$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $173db03f510746e0$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $g0Mwp.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nasync function $1819dff75b0e473e$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$1819dff75b0e473e$var$getDnfArg(pack.name, pack.version)));\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $1819dff75b0e473e$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $g0Mwp.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $6c882e7c88e29bec$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $c7e2f37817c8297c$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n/* eslint-disable require-atomic-updates */ let $351111ae1a9a89f6$var$didUpdate = false;\nlet $351111ae1a9a89f6$var$didInit = false;\nasync function $351111ae1a9a89f6$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$351111ae1a9a89f6$var$didUpdate && aur !== \"yay\") {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $351111ae1a9a89f6$var$didUpdate = true;\n }\n // install base-devel\n if (!$351111ae1a9a89f6$var$didInit && aur !== \"yay\") {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $351111ae1a9a89f6$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $bd3d80fab706f490$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $1e9f9ad269e26aae$export$58f152936f209932)(aur ?? pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $351111ae1a9a89f6$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $g0Mwp.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $351111ae1a9a89f6$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $351111ae1a9a89f6$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($351111ae1a9a89f6$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $c04ea7570e5d5658$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $ad6b822883344ac4$exports = {};\n\nvar $ad6b822883344ac4$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $ad6b822883344ac4$var$__createBinding = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ad6b822883344ac4$var$__setModuleDefault = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ad6b822883344ac4$var$__importStar = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ad6b822883344ac4$var$__createBinding(result, mod, k);\n }\n $ad6b822883344ac4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ad6b822883344ac4$var$__awaiter = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $ad6b822883344ac4$var$__importDefault = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($ad6b822883344ac4$exports, \"__esModule\", {\n value: true\n});\n$ad6b822883344ac4$exports.evaluateVersions = $ad6b822883344ac4$exports.isExplicitVersion = $ad6b822883344ac4$exports.findFromManifest = $ad6b822883344ac4$exports.getManifestFromRepo = $ad6b822883344ac4$exports.findAllVersions = $ad6b822883344ac4$exports.find = $ad6b822883344ac4$exports.cacheFile = $ad6b822883344ac4$exports.cacheDir = $ad6b822883344ac4$exports.extractZip = $ad6b822883344ac4$exports.extractXar = $ad6b822883344ac4$exports.extractTar = $ad6b822883344ac4$exports.extract7z = $ad6b822883344ac4$exports.downloadTool = $ad6b822883344ac4$exports.HTTPError = void 0;\n\nconst $ad6b822883344ac4$var$core = $ad6b822883344ac4$var$__importStar((parcelRequire(\"lUL8q\")));\n\nconst $ad6b822883344ac4$var$io = $ad6b822883344ac4$var$__importStar((parcelRequire(\"jGHPG\")));\n\nconst $ad6b822883344ac4$var$fs = $ad6b822883344ac4$var$__importStar($fnyYE$fs);\n\nconst $ad6b822883344ac4$var$mm = $ad6b822883344ac4$var$__importStar((parcelRequire(\"aUW7f\")));\n\nconst $ad6b822883344ac4$var$os = $ad6b822883344ac4$var$__importStar($fnyYE$os);\n\nconst $ad6b822883344ac4$var$path = $ad6b822883344ac4$var$__importStar($fnyYE$path);\n\nconst $ad6b822883344ac4$var$httpm = $ad6b822883344ac4$var$__importStar((parcelRequire(\"l6zH0\")));\n\nconst $ad6b822883344ac4$var$semver = $ad6b822883344ac4$var$__importStar((parcelRequire(\"1mmqj\")));\n\nconst $ad6b822883344ac4$var$stream = $ad6b822883344ac4$var$__importStar($fnyYE$stream);\n\nconst $ad6b822883344ac4$var$util = $ad6b822883344ac4$var$__importStar($fnyYE$util);\n\n\nconst $ad6b822883344ac4$var$v4_1 = $ad6b822883344ac4$var$__importDefault((parcelRequire(\"b4HqL\")));\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\nvar $2975b776a90b2b1b$exports = {};\n\"use strict\";\nvar $2975b776a90b2b1b$var$__createBinding = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $2975b776a90b2b1b$var$__setModuleDefault = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $2975b776a90b2b1b$var$__importStar = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $2975b776a90b2b1b$var$__createBinding(result, mod, k);\n }\n $2975b776a90b2b1b$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $2975b776a90b2b1b$var$__awaiter = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($2975b776a90b2b1b$exports, \"__esModule\", {\n value: true\n});\n$2975b776a90b2b1b$exports.RetryHelper = void 0;\n\nconst $2975b776a90b2b1b$var$core = $2975b776a90b2b1b$var$__importStar((parcelRequire(\"lUL8q\")));\n/**\n * Internal class for retries\n */ class $2975b776a90b2b1b$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $2975b776a90b2b1b$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $2975b776a90b2b1b$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $2975b776a90b2b1b$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $2975b776a90b2b1b$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$2975b776a90b2b1b$exports.RetryHelper = $2975b776a90b2b1b$var$RetryHelper;\n\n\nclass $ad6b822883344ac4$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$ad6b822883344ac4$exports.HTTPError = $ad6b822883344ac4$var$HTTPError;\nconst $ad6b822883344ac4$var$IS_WINDOWS = process.platform === \"win32\";\nconst $ad6b822883344ac4$var$IS_MAC = process.platform === \"darwin\";\nconst $ad6b822883344ac4$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $ad6b822883344ac4$var$downloadTool(url, dest, auth, headers) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getTempDirectory(), $ad6b822883344ac4$var$v4_1.default());\n yield $ad6b822883344ac4$var$io.mkdirP($ad6b822883344ac4$var$path.dirname(dest));\n $ad6b822883344ac4$var$core.debug(`Downloading ${url}`);\n $ad6b822883344ac4$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $2975b776a90b2b1b$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n return yield $ad6b822883344ac4$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $ad6b822883344ac4$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$ad6b822883344ac4$exports.downloadTool = $ad6b822883344ac4$var$downloadTool;\nfunction $ad6b822883344ac4$var$downloadToolAttempt(url, dest, auth, headers) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if ($ad6b822883344ac4$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $ad6b822883344ac4$var$httpm.HttpClient($ad6b822883344ac4$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $ad6b822883344ac4$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $ad6b822883344ac4$var$HTTPError(response.message.statusCode);\n $ad6b822883344ac4$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $ad6b822883344ac4$var$util.promisify($ad6b822883344ac4$var$stream.pipeline);\n const responseMessageFactory = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $ad6b822883344ac4$var$fs.createWriteStream(dest));\n $ad6b822883344ac4$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $ad6b822883344ac4$var$core.debug(\"download failed\");\n try {\n yield $ad6b822883344ac4$var$io.rmRF(dest);\n } catch (err) {\n $ad6b822883344ac4$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extract7z(file, dest, _7zPath) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok($ad6b822883344ac4$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $fnyYE$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $ad6b822883344ac4$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $ioM8U.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $ad6b822883344ac4$var$io.which(\"powershell\", true);\n yield $ioM8U.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extract7z = $ad6b822883344ac4$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractTar(file, dest, flags = \"xz\") {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $ad6b822883344ac4$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $ioM8U.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $ad6b822883344ac4$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($ad6b822883344ac4$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($ad6b822883344ac4$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $ioM8U.exec(`tar`, args);\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractTar = $ad6b822883344ac4$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractXar(file, dest, flags = []) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok($ad6b822883344ac4$var$IS_MAC, \"extractXar() not supported on current OS\");\n $fnyYE$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($ad6b822883344ac4$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $ad6b822883344ac4$var$io.which(\"xar\", true);\n yield $ioM8U.exec(`\"${xarPath}\"`, $ad6b822883344ac4$var$_unique(args));\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractXar = $ad6b822883344ac4$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractZip(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n if ($ad6b822883344ac4$var$IS_WINDOWS) yield $ad6b822883344ac4$var$extractZipWin(file, dest);\n else yield $ad6b822883344ac4$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractZip = $ad6b822883344ac4$var$extractZip;\nfunction $ad6b822883344ac4$var$extractZipWin(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $ad6b822883344ac4$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $ad6b822883344ac4$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $ioM8U.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $ad6b822883344ac4$var$io.which(\"powershell\", true);\n $ad6b822883344ac4$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $ioM8U.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $ad6b822883344ac4$var$extractZipNix(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $ad6b822883344ac4$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$ad6b822883344ac4$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $ioM8U.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ad6b822883344ac4$var$cacheDir(sourceDir, tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n version = $ad6b822883344ac4$var$semver.clean(version) || version;\n arch = arch || $ad6b822883344ac4$var$os.arch();\n $ad6b822883344ac4$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ad6b822883344ac4$var$core.debug(`source dir: ${sourceDir}`);\n if (!$ad6b822883344ac4$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $ad6b822883344ac4$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $ad6b822883344ac4$var$fs.readdirSync(sourceDir)){\n const s = $ad6b822883344ac4$var$path.join(sourceDir, itemName);\n yield $ad6b822883344ac4$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $ad6b822883344ac4$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$ad6b822883344ac4$exports.cacheDir = $ad6b822883344ac4$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ad6b822883344ac4$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n version = $ad6b822883344ac4$var$semver.clean(version) || version;\n arch = arch || $ad6b822883344ac4$var$os.arch();\n $ad6b822883344ac4$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ad6b822883344ac4$var$core.debug(`source file: ${sourceFile}`);\n if (!$ad6b822883344ac4$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $ad6b822883344ac4$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $ad6b822883344ac4$var$path.join(destFolder, targetFile);\n $ad6b822883344ac4$var$core.debug(`destination file ${destPath}`);\n yield $ad6b822883344ac4$var$io.cp(sourceFile, destPath);\n // write .complete\n $ad6b822883344ac4$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$ad6b822883344ac4$exports.cacheFile = $ad6b822883344ac4$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ad6b822883344ac4$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $ad6b822883344ac4$var$os.arch();\n // attempt to resolve an explicit version\n if (!$ad6b822883344ac4$var$isExplicitVersion(versionSpec)) {\n const localVersions = $ad6b822883344ac4$var$findAllVersions(toolName, arch);\n const match = $ad6b822883344ac4$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $ad6b822883344ac4$var$semver.clean(versionSpec) || \"\";\n const cachePath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $ad6b822883344ac4$var$core.debug(`checking cache: ${cachePath}`);\n if ($ad6b822883344ac4$var$fs.existsSync(cachePath) && $ad6b822883344ac4$var$fs.existsSync(`${cachePath}.complete`)) {\n $ad6b822883344ac4$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $ad6b822883344ac4$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$ad6b822883344ac4$exports.find = $ad6b822883344ac4$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ad6b822883344ac4$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $ad6b822883344ac4$var$os.arch();\n const toolPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), toolName);\n if ($ad6b822883344ac4$var$fs.existsSync(toolPath)) {\n const children = $ad6b822883344ac4$var$fs.readdirSync(toolPath);\n for (const child of children)if ($ad6b822883344ac4$var$isExplicitVersion(child)) {\n const fullPath = $ad6b822883344ac4$var$path.join(toolPath, child, arch || \"\");\n if ($ad6b822883344ac4$var$fs.existsSync(fullPath) && $ad6b822883344ac4$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$ad6b822883344ac4$exports.findAllVersions = $ad6b822883344ac4$var$findAllVersions;\nfunction $ad6b822883344ac4$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $ad6b822883344ac4$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $ad6b822883344ac4$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $ad6b822883344ac4$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$ad6b822883344ac4$exports.getManifestFromRepo = $ad6b822883344ac4$var$getManifestFromRepo;\nfunction $ad6b822883344ac4$var$findFromManifest(versionSpec, stable, manifest, archFilter = $ad6b822883344ac4$var$os.arch()) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $ad6b822883344ac4$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$ad6b822883344ac4$exports.findFromManifest = $ad6b822883344ac4$var$findFromManifest;\nfunction $ad6b822883344ac4$var$_createExtractFolder(dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getTempDirectory(), $ad6b822883344ac4$var$v4_1.default());\n yield $ad6b822883344ac4$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $ad6b822883344ac4$var$_createToolPath(tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), tool, $ad6b822883344ac4$var$semver.clean(version) || version, arch || \"\");\n $ad6b822883344ac4$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $ad6b822883344ac4$var$io.rmRF(folderPath);\n yield $ad6b822883344ac4$var$io.rmRF(markerPath);\n yield $ad6b822883344ac4$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $ad6b822883344ac4$var$_completeToolPath(tool, version, arch) {\n const folderPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), tool, $ad6b822883344ac4$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $ad6b822883344ac4$var$fs.writeFileSync(markerPath, \"\");\n $ad6b822883344ac4$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $ad6b822883344ac4$var$isExplicitVersion(versionSpec) {\n const c = $ad6b822883344ac4$var$semver.clean(versionSpec) || \"\";\n $ad6b822883344ac4$var$core.debug(`isExplicit: ${c}`);\n const valid = $ad6b822883344ac4$var$semver.valid(c) != null;\n $ad6b822883344ac4$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$ad6b822883344ac4$exports.isExplicitVersion = $ad6b822883344ac4$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $ad6b822883344ac4$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $ad6b822883344ac4$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($ad6b822883344ac4$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $ad6b822883344ac4$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $ad6b822883344ac4$var$core.debug(`matched: ${version}`);\n else $ad6b822883344ac4$var$core.debug(\"match not found\");\n return version;\n}\n$ad6b822883344ac4$exports.evaluateVersions = $ad6b822883344ac4$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $ad6b822883344ac4$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $fnyYE$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $ad6b822883344ac4$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $fnyYE$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $ad6b822883344ac4$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $ad6b822883344ac4$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $jGHPG = parcelRequire(\"jGHPG\");\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\n\n\n\n\n\n\n\nfunction $13e8dd9676c43513$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $e9ff4d4a41a45dd8$var$sevenZip;\nasync function $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest) {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(await $e9ff4d4a41a45dd8$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $5d373f8b741de762$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $e9ff4d4a41a45dd8$var$getSevenZip() {\n if ($e9ff4d4a41a45dd8$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $13e8dd9676c43513$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $e9ff4d4a41a45dd8$var$sevenZip = \"7z\";\n }\n return $e9ff4d4a41a45dd8$var$sevenZip;\n}\nfunction $e9ff4d4a41a45dd8$export$7949938b2681a4f0(file, dest) {\n return $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest);\n}\nfunction $e9ff4d4a41a45dd8$export$6411c5cbab21135b(file, dest) {\n return $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest);\n}\nasync function $e9ff4d4a41a45dd8$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $jGHPG.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $g0Mwp.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $5d373f8b741de762$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\nvar $117e61005623f281$exports = {};\n\"use strict\";\nObject.defineProperty($117e61005623f281$exports, \"__esModule\", {\n value: true\n});\n$117e61005623f281$exports.retryAsPromised = $117e61005623f281$exports.TimeoutError = void 0;\nclass $117e61005623f281$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$117e61005623f281$exports.TimeoutError = $117e61005623f281$var$TimeoutError;\nfunction $117e61005623f281$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $117e61005623f281$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $117e61005623f281$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $117e61005623f281$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $117e61005623f281$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $117e61005623f281$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$117e61005623f281$exports.retryAsPromised = $117e61005623f281$var$retryAsPromised;\n$117e61005623f281$exports.default = $117e61005623f281$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $ca25e7d546c09dd0$var$didInit = false;\nasync function $ca25e7d546c09dd0$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $g0Mwp.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? (0, $fnyYE$os.tmpdir)();\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? (0, $e19ul.join)((0, $fnyYE$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n const dir = (0, $ad6b822883344ac4$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $e19ul.join)(dir, extractedFolderName);\n const binDir = (0, $e19ul.join)(installDir, binRelativeDir);\n if (await (0, $6afW1.pathExists)((0, $e19ul.join)(binDir, binFileName))) {\n (0, $g0Mwp.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $e19ul.join)(setupDir, extractedFolderName);\n const binDir = (0, $e19ul.join)(installDir, binRelativeDir);\n const binFile = (0, $e19ul.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $6afW1.pathExists)(binDir),\n (0, $6afW1.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $g0Mwp.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($117e61005623f281$exports)))(()=>{\n return (0, $ad6b822883344ac4$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $g0Mwp.info)(err)\n });\n if (!$ca25e7d546c09dd0$var$didInit) {\n (0, $g0Mwp.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $ca25e7d546c09dd0$var$didInit = true;\n }\n (0, $g0Mwp.info)(`Extracting ${downloaded} to ${setupDir}`);\n await extractFunction?.(downloaded, setupDir);\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $g0Mwp.info)(`Add ${binDir} to PATH`);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $l5aZl.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $ad6b822883344ac4$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $4843a8590048fdb7$var$getCmakePackageInfo(version, platform, arch) {\n const semVersion = (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $4843a8590048fdb7$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"cmake\", version, $4843a8590048fdb7$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $e1c8114ccf331d29$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $e1c8114ccf331d29$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $e1c8114ccf331d29$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $e1c8114ccf331d29$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $e1c8114ccf331d29$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$e1c8114ccf331d29$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $e1c8114ccf331d29$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $e1c8114ccf331d29$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $e1c8114ccf331d29$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $e1c8114ccf331d29$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $e1c8114ccf331d29$var$cloneArray(this.keys),\n size: this.size,\n values: $e1c8114ccf331d29$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $e1c8114ccf331d29$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($e1c8114ccf331d29$var$isMemoized(fn)) return $e1c8114ccf331d29$export$2e2bcd8739ae039(fn.fn, $e1c8114ccf331d29$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $e1c8114ccf331d29$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $e1c8114ccf331d29$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $e1c8114ccf331d29$var$getCustomOptions(options));\n var cache = new $e1c8114ccf331d29$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $e1c8114ccf331d29$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $e1c8114ccf331d29$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $03133746bc7c4255$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $fnyYE$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $fnyYE$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $fnyYE$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $fnyYE$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $cf131c133eb79221$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $fnyYE$path.dirname)(path);\n const opts = {\n ...(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $cf131c133eb79221$export$fa6f1b792dc805a5(path, opts, $cf131c133eb79221$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $cf131c133eb79221$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $cf131c133eb79221$export$96a3a6083628c9d8(parent, opts).then((made)=>$cf131c133eb79221$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $cf131c133eb79221$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461(opts, (0, $fnyYE$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $f15e325e2e1c3cd0$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $f15e325e2e1c3cd0$export$5bbea51519185a10(opts, (0, $fnyYE$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $511b2b7043ca8938$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $f15e325e2e1c3cd0$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $cf131c133eb79221$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $511b2b7043ca8938$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $cf131c133eb79221$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $511b2b7043ca8938$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $093f39a65ae5d778$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $093f39a65ae5d778$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $fnyYE$path.resolve)(path);\n if ($093f39a65ae5d778$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $fnyYE$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $178d0e351594f127$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $178d0e351594f127$var$versArr = $178d0e351594f127$var$version.replace(/^v/, \"\").split(\".\");\nconst $178d0e351594f127$var$hasNative = +$178d0e351594f127$var$versArr[0] > 10 || +$178d0e351594f127$var$versArr[0] === 10 && +$178d0e351594f127$var$versArr[1] >= 12;\nconst $178d0e351594f127$export$f32201cb36e5654a = !$178d0e351594f127$var$hasNative ? ()=>false : (opts)=>(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $fnyYE$fs.mkdirSync);\nconst $178d0e351594f127$export$875f149e5ea533c1 = Object.assign(!$178d0e351594f127$var$hasNative ? ()=>false : (opts)=>(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts).mkdir === (0, $fnyYE$fs.mkdir), {\n sync: $178d0e351594f127$export$f32201cb36e5654a\n});\n\n\nconst $6e9a7f963f1a962b$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $093f39a65ae5d778$export$84f52eb1a6059876)(path);\n const resolved = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts);\n return (0, $178d0e351594f127$export$f32201cb36e5654a)(resolved) ? (0, $511b2b7043ca8938$export$abcdbcf229aec40d)(path, resolved) : (0, $cf131c133eb79221$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $6e9a7f963f1a962b$export$92d6409d68f0739a = $6e9a7f963f1a962b$export$f5e50515bfceb13b;\nconst $6e9a7f963f1a962b$export$d5db38ffe1f43b01 = (0, $cf131c133eb79221$export$96a3a6083628c9d8);\nconst $6e9a7f963f1a962b$export$36e1c11973ff5d6a = (0, $cf131c133eb79221$export$fa6f1b792dc805a5);\nconst $6e9a7f963f1a962b$export$e199e4a0c0335c4f = (0, $511b2b7043ca8938$export$efd8fb7a8c453d34);\nconst $6e9a7f963f1a962b$export$dd70f1af61563969 = (0, $511b2b7043ca8938$export$abcdbcf229aec40d);\nconst $6e9a7f963f1a962b$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $093f39a65ae5d778$export$84f52eb1a6059876)(path);\n const resolved = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts);\n return (0, $178d0e351594f127$export$875f149e5ea533c1)(resolved) ? (0, $511b2b7043ca8938$export$efd8fb7a8c453d34)(path, resolved) : (0, $cf131c133eb79221$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $6e9a7f963f1a962b$export$f5e50515bfceb13b,\n mkdirpNative: $511b2b7043ca8938$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $511b2b7043ca8938$export$abcdbcf229aec40d,\n mkdirpManual: $cf131c133eb79221$export$96a3a6083628c9d8,\n mkdirpManualSync: $cf131c133eb79221$export$fa6f1b792dc805a5,\n sync: $6e9a7f963f1a962b$export$f5e50515bfceb13b,\n native: (0, $511b2b7043ca8938$export$efd8fb7a8c453d34),\n nativeSync: (0, $511b2b7043ca8938$export$abcdbcf229aec40d),\n manual: (0, $cf131c133eb79221$export$96a3a6083628c9d8),\n manualSync: (0, $cf131c133eb79221$export$fa6f1b792dc805a5),\n useNative: $178d0e351594f127$export$875f149e5ea533c1,\n useNativeSync: $178d0e351594f127$export$f32201cb36e5654a\n});\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $ioM8U = parcelRequire(\"ioM8U\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n// src/modules/https-utils.ts\n\n\nfunction $3cb545350be8357c$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $3cb545350be8357c$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $fnyYE$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($3cb545350be8357c$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $3cb545350be8357c$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $fnyYE$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $3cb545350be8357c$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $3cb545350be8357c$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $3cb545350be8357c$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $3cb545350be8357c$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $3cb545350be8357c$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\nfunction $5aede9bc9e501a75$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($dKY2K)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $5aede9bc9e501a75$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $5aede9bc9e501a75$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $5aede9bc9e501a75$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $5aede9bc9e501a75$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $5aede9bc9e501a75$export$5b54ecc7386538f(file, versionRegex = $5aede9bc9e501a75$export$d7ab5e2d33b06cd5) {\n try {\n const execout = await (0, $ioM8U.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = version_output.trim().match(versionRegex)?.[1];\n return (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $5aede9bc9e501a75$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $5aede9bc9e501a75$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $5aede9bc9e501a75$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($dKY2K)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $5aede9bc9e501a75$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version);\n if (coercedVersion !== null) {\n (0, $g0Mwp.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $5aede9bc9e501a75$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $5aede9bc9e501a75$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $7621db79aa35f3d3$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $652d1fcf01440681$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $652d1fcf01440681$export$5fb1985a02d8f66f = {\n llvm: $652d1fcf01440681$var$getLLVMDefault(),\n clangtidy: $652d1fcf01440681$var$getLLVMDefault(),\n clangformat: $652d1fcf01440681$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $01378da92d425308$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $01378da92d425308$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $652d1fcf01440681$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $652d1fcf01440681$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $f52817e181fae4e9$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $f52817e181fae4e9$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($fnyYE$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $f52817e181fae4e9$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $f52817e181fae4e9$var$setupPipx(foundPython);\n await $f52817e181fae4e9$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$setupPipx(foundPython) {\n try {\n if (!await (0, $735680774c283561$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $735680774c283561$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $f52817e181fae4e9$var$setupWheel(foundPython) {\n try {\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $f52817e181fae4e9$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $e19ul.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $l5aZl.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $g0Mwp.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"kqI8i\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n const binDir = (0, $e19ul.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $g0Mwp.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $f52817e181fae4e9$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $f52817e181fae4e9$var$findPython(setupDir);\n const binDir = (0, $e19ul.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $e19ul.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $f52817e181fae4e9$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $e19ul.join)(binDir, (0, $e19ul.addExeExt)(candidate));\n if (await (0, $6afW1.pathExists)(pythonBinPath)) {\n if (await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pythonBinPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n const pythonBinPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports)))(candidate, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pythonBinPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$findOrSetupPip(foundPython) {\n const maybePip = await $f52817e181fae4e9$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $g0Mwp.info)(\"pip was not found. Installing pip\");\n await $f52817e181fae4e9$var$setupPip(foundPython);\n return $f52817e181fae4e9$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $f52817e181fae4e9$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $f52817e181fae4e9$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$isPipUptoDate(pip) {\n try {\n const pipPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports)))(pip, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pipPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$setupPip(foundPython) {\n const upgraded = await $f52817e181fae4e9$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $735680774c283561$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $f52817e181fae4e9$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $f52817e181fae4e9$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $g0Mwp.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $g0Mwp.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $f52817e181fae4e9$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $ioM8U.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $e19ul.join)(base_exec_prefix, \"Scripts\"), (0, $e19ul.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $e19ul.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $7621db79aa35f3d3$export$7a5d5c156e7dc406)(dirs);\n}\nconst $f52817e181fae4e9$export$4bf645347c3b7001 = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($f52817e181fae4e9$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $15fcb2187261fc62$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($15fcb2187261fc62$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $652d1fcf01440681$export$1bb63c984aa6e760)) return $15fcb2187261fc62$var$getDefaultLinuxVersion(osVersion, (0, $652d1fcf01440681$export$1bb63c984aa6e760)[name]);\n else if ($15fcb2187261fc62$var$isVersionDefault(version) && name in (0, $652d1fcf01440681$export$5fb1985a02d8f66f)) return (0, $652d1fcf01440681$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version ?? \"\";\n}\nfunction $15fcb2187261fc62$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $15fcb2187261fc62$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $15fcb2187261fc62$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$15fcb2187261fc62$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $26d94f5bd8a224ee$exports = {};\n\"use strict\";\nObject.defineProperty($26d94f5bd8a224ee$exports, \"__esModule\", {\n value: true\n});\n$26d94f5bd8a224ee$exports.getUbuntuVersion = void 0;\n\nfunction $26d94f5bd8a224ee$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $26d94f5bd8a224ee$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $fnyYE$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($26d94f5bd8a224ee$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $26d94f5bd8a224ee$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $26d94f5bd8a224ee$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$26d94f5bd8a224ee$exports.getUbuntuVersion = $26d94f5bd8a224ee$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $1561ff1c985746ac$var$ubuntuVersion_raw() {\n try {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $1561ff1c985746ac$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $26d94f5bd8a224ee$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $1561ff1c985746ac$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $g0Mwp.warning)(err.toString());\n return null;\n }\n}\nconst $1561ff1c985746ac$export$49c9cf1111dfa0ee = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($1561ff1c985746ac$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $1561ff1c985746ac$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($fnyYE$os))) && typeof (0, ($parcel$interopDefault($fnyYE$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($fnyYE$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $735680774c283561$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $735680774c283561$export$7c60aea099ad1c1d(await $735680774c283561$var$getPython(), name, version, options);\n}\nasync function $735680774c283561$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $735680774c283561$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $735680774c283561$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $lUL8q.info)(`Installing ${name} ${version ?? \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $735680774c283561$var$getPipxHome();\n env.PIPX_BIN_DIR = await $735680774c283561$var$getPipxBinDir();\n }\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $lUL8q.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $735680774c283561$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $735680774c283561$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $f52817e181fae4e9$export$4bf645347c3b7001)(givenPython);\n const binDir = await $735680774c283561$var$findBinDir(execPaths, name);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $735680774c283561$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $bd3d80fab706f490$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $735680774c283561$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $6afW1.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"trash\"));\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"shared\"));\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $735680774c283561$var$getPipxHome = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $735680774c283561$var$getPipxBinDir = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$getPython_raw() {\n const pythonBin = (await (0, $f52817e181fae4e9$export$2b0b68e9df3d4a02)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $735680774c283561$var$getPython = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPython_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$pipHasPackage(python, name) {\n const result = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $735680774c283561$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $6afW1.pathExists)((0, $e19ul.join)(dir, (0, $e19ul.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync((0, $e19ul.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $e19ul.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $735680774c283561$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $lUL8q.info)(`Installing ${name} via the system package manager`);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $cb2eb9cd8de0ff3c$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $e185fe9d7e14fd3c$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $e185fe9d7e14fd3c$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $e185fe9d7e14fd3c$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\nasync function $d6e2edee563953d7$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"graphviz\", version);\n return $d6e2edee563953d7$var$activateGraphviz();\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $d6e2edee563953d7$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\n\n\n\n\nconst $dec315a434b47901$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $dec315a434b47901$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($fnyYE$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $dec315a434b47901$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $bb36c0f082c84565$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $dec315a434b47901$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $bb36c0f082c84565$export$b16fc932ee62ae86 = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($bb36c0f082c84565$var$macosVersion_raw);\n\n\n\n\n\nasync function $d0b46aa290ad2acb$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"jaABp\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $fnyYE$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $443cb2ebf97018af$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $d0b46aa290ad2acb$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $443cb2ebf97018af$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($117e61005623f281$exports)))(()=>{\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $g0Mwp.info)(err)\n });\n const binDir = await $443cb2ebf97018af$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $bb36c0f082c84565$export$b16fc932ee62ae86)()[0] > 11) await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $01378da92d425308$export$d415ddb6702ec3a2)() || (0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"doxygen\", version, $443cb2ebf97018af$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $g0Mwp.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $443cb2ebf97018af$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $6afW1.pathExists)((0, $e19ul.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nasync function $9414c8293fe072e8$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $ioM8U.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $g0Mwp.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $g0Mwp.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $b82735dd0f3fb385$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $b82735dd0f3fb385$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $b82735dd0f3fb385$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $b82735dd0f3fb385$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $e9ff4d4a41a45dd8$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $b82735dd0f3fb385$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"g++\", version, $b82735dd0f3fb385$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $b82735dd0f3fb385$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $g0Mwp.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $b82735dd0f3fb385$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $b82735dd0f3fb385$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $b82735dd0f3fb385$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $b82735dd0f3fb385$var$setupChocoMingw(version, arch) {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n if (arch === \"x64\" && await (0, $6afW1.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $6afW1.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $6afW1.pathExists)(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $b82735dd0f3fb385$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", (0, $e19ul.addExeExt)(`${binDir}/gcc`)), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", (0, $e19ul.addExeExt)(`${binDir}/g++`)));\n else {\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($3nHUu)))((0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? version);\n if (majorVersion >= 5) {\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) promises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) promises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $9414c8293fe072e8$export$28f5fd35e3005b7a)());\n if (0, $l5aZl.GITHUB_ACTIONS) await $b82735dd0f3fb385$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $b82735dd0f3fb385$var$addGccLoggingMatcher() {\n const matcherPath = (0, $e19ul.join)($b82735dd0f3fb385$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\n\nfunction $ffeab3d8ae1dcd56$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $ffeab3d8ae1dcd56$export$2a0488baf2a20c0f() {\n return (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $ffeab3d8ae1dcd56$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($3nHUu)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $c3df47ee2e275dc8$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c3df47ee2e275dc8$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $c3df47ee2e275dc8$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $c3df47ee2e275dc8$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"ninja\", version, $c3df47ee2e275dc8$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ed43354497f82ab8$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/kcov\");\nfunction $ed43354497f82ab8$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $e19ul.addExeExt)(\"kcov\"),\n extractFunction: (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)\n };\n}\nfunction $ed43354497f82ab8$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $e19ul.addExeExt)(\"kcov\"),\n extractFunction: $ed43354497f82ab8$var$buildKcov\n };\n}\nasync function $ed43354497f82ab8$var$buildKcov(file, dest) {\n const out = await (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $ed43354497f82ab8$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $e19ul.join)($ed43354497f82ab8$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $g0Mwp.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $e19ul.join)(out, \"build\");\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $ed43354497f82ab8$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $4843a8590048fdb7$export$c28663a621f418ce)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), (0, $e19ul.join)((0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $e19ul.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $c3df47ee2e275dc8$export$e6190f4bfe2ef71)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), (0, $e19ul.join)((0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $ed43354497f82ab8$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $g0Mwp.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $5aede9bc9e501a75$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $5aede9bc9e501a75$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"kcov\", version, $ed43354497f82ab8$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"kcov\", version, $ed43354497f82ab8$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nclass $33328ee155e6c412$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $33328ee155e6c412$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $33328ee155e6c412$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $33328ee155e6c412$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $33328ee155e6c412$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $33328ee155e6c412$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $33328ee155e6c412$var$getDOMException(reason);\n};\nfunction $33328ee155e6c412$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($33328ee155e6c412$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($33328ee155e6c412$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $33328ee155e6c412$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $86d8606d45e489e7$export$3c7cae5a162b1458;\nvar $86d8606d45e489e7$export$704f0be24425353b;\nvar $86d8606d45e489e7$export$f49c12d2898d28cb;\nvar $86d8606d45e489e7$export$a6a3bfb882356813;\nvar $86d8606d45e489e7$export$443b8bb890f5027e;\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\n\n\nconst $86d8606d45e489e7$var$PROGRAM_FILES_X86 = $fnyYE$process.env[\"ProgramFiles(x86)\"];\nconst $86d8606d45e489e7$var$PROGRAM_FILES = [\n $fnyYE$process.env[\"ProgramFiles(x86)\"],\n $fnyYE$process.env[\"ProgramFiles\"]\n];\nconst $86d8606d45e489e7$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $86d8606d45e489e7$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $86d8606d45e489e7$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $86d8606d45e489e7$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($86d8606d45e489e7$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $86d8606d45e489e7$var$VsYearVersion) return $86d8606d45e489e7$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$86d8606d45e489e7$export$3c7cae5a162b1458 = $86d8606d45e489e7$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $86d8606d45e489e7$var$vsversion_to_year(vsversion) {\n if (Object.keys($86d8606d45e489e7$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($86d8606d45e489e7$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$86d8606d45e489e7$export$704f0be24425353b = $86d8606d45e489e7$var$vsversion_to_year;\nconst $86d8606d45e489e7$var$VSWHERE_PATH = `${$86d8606d45e489e7$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $86d8606d45e489e7$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $fnyYE$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $lUL8q.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$86d8606d45e489e7$export$f49c12d2898d28cb = $86d8606d45e489e7$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $86d8606d45e489e7$var$findVcvarsall(vsversion) {\n const vsversion_number = $86d8606d45e489e7$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $86d8606d45e489e7$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found with vswhere: ${path}`);\n return path;\n }\n $lUL8q.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $86d8606d45e489e7$var$vsversion_to_year(vsversion)\n ] : $86d8606d45e489e7$var$YEARS;\n for (const prog_files of $86d8606d45e489e7$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $86d8606d45e489e7$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $lUL8q.info(`Trying standard location: ${path}`);\n if ($fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $lUL8q.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$86d8606d45e489e7$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found VS 2015: ${path}`);\n return path;\n }\n $lUL8q.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$86d8606d45e489e7$export$a6a3bfb882356813 = $86d8606d45e489e7$var$findVcvarsall;\nfunction $86d8606d45e489e7$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $86d8606d45e489e7$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $86d8606d45e489e7$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($fnyYE$process.platform != \"win32\") {\n $lUL8q.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $fnyYE$process.env.PATH += $fnyYE$path.delimiter + $86d8606d45e489e7$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$86d8606d45e489e7$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $lUL8q.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $fnyYE$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $lUL8q.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $lUL8q.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($86d8606d45e489e7$var$isPathVariable(name)) new_value = $86d8606d45e489e7$var$filterPathValue(new_value);\n $lUL8q.exportVariable(name, new_value);\n }\n }\n $lUL8q.endGroup();\n $lUL8q.info(`Configured Developer Command Prompt`);\n}\n$86d8606d45e489e7$export$443b8bb890f5027e = $86d8606d45e489e7$var$setupMSVCDevCmd;\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nfunction $b3d4aaf1ab3b1279$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $b3d4aaf1ab3b1279$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $6afW1.pathExists)(VCTargetsPath)) {\n (0, $g0Mwp.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $86d8606d45e489e7$export$443b8bb890f5027e)($b3d4aaf1ab3b1279$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $85a072a44fce60d8$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $85a072a44fce60d8$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $85a072a44fce60d8$export$7bd623b29ec8e1eb) {\n (0, $lUL8q.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $33328ee155e6c412$export$2e2bcd8739ae039)($85a072a44fce60d8$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $g0Mwp.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $lUL8q.endGroup)();\n return hasLLVM;\n}\nasync function $85a072a44fce60d8$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $f5048ac1244eaa54$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $e19ul.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $073ad92077ebdb01$var$readFile, writeFile: $073ad92077ebdb01$var$writeFile, chmod: $073ad92077ebdb01$var$chmod } = (0, $fnyYE$fs.promises);\nvar $073ad92077ebdb01$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($073ad92077ebdb01$export$35fa309210df3df6 || ($073ad92077ebdb01$export$35fa309210df3df6 = {}));\nasync function $073ad92077ebdb01$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $073ad92077ebdb01$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)(neededPackages);\n await $073ad92077ebdb01$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $85a072a44fce60d8$export$7bd623b29ec8e1eb)\n });\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $073ad92077ebdb01$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $073ad92077ebdb01$var$readFile(path, \"utf-8\");\n script = $073ad92077ebdb01$var$debugScript(script);\n script = $073ad92077ebdb01$var$nonInteractiveScript(script);\n script = $073ad92077ebdb01$var$choosePackages(packages, script, majorVersion);\n script = await $073ad92077ebdb01$var$removeConflictingPackages(script);\n script = $073ad92077ebdb01$var$useNalaScript(script);\n await $073ad92077ebdb01$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $073ad92077ebdb01$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $073ad92077ebdb01$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $073ad92077ebdb01$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $c7e2f37817c8297c$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $fnyYE$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $073ad92077ebdb01$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $c7e2f37817c8297c$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $073ad92077ebdb01$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\n\nconst $4ae402a71ba6ab5d$export$aa5307f1aca77413 = (0, $5aede9bc9e501a75$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $4ae402a71ba6ab5d$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $4ae402a71ba6ab5d$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $4ae402a71ba6ab5d$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $4ae402a71ba6ab5d$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $4ae402a71ba6ab5d$var$getDarwinUrl(version) {\n if ($4ae402a71ba6ab5d$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\")) return $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n else return $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $4ae402a71ba6ab5d$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $4ae402a71ba6ab5d$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$4ae402a71ba6ab5d$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $5aede9bc9e501a75$export$deb1064c8260c54c)($4ae402a71ba6ab5d$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP) linuxVersion = $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP[$4ae402a71ba6ab5d$var$MAX_UBUNTU];\n (0, $g0Mwp.warning)(`Falling back to LLVM version ${$4ae402a71ba6ab5d$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\")) return $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n else return $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $4ae402a71ba6ab5d$var$getWin32Url(version) {\n if ($4ae402a71ba6ab5d$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $4ae402a71ba6ab5d$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $4ae402a71ba6ab5d$var$getDarwinUrl(version);\n case \"linux\":\n return $4ae402a71ba6ab5d$export$ae24f9682a44836b(version);\n case \"win32\":\n return $4ae402a71ba6ab5d$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $4ae402a71ba6ab5d$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $5aede9bc9e501a75$export$4e4d3581f69a6d71)($4ae402a71ba6ab5d$export$aa5307f1aca77413, platform, version, $4ae402a71ba6ab5d$export$94df0e59ebebf4a7);\n (0, $g0Mwp.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $e19ul.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $e9ff4d4a41a45dd8$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $b9ed45c8698183ba$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/llvm\");\nasync function $b9ed45c8698183ba$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $b9ed45c8698183ba$var$setupLLVMWithoutActivation(version, setupDir, arch);\n await $b9ed45c8698183ba$export$6238b5ebfd6640e7(installationInfo.installDir ?? setupDir);\n return installationInfo;\n}\nasync function $b9ed45c8698183ba$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch),\n $b9ed45c8698183ba$var$setupLLVMDeps(arch),\n $b9ed45c8698183ba$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $b9ed45c8698183ba$var$setupLLVMWithoutActivation = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $b9ed45c8698183ba$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch, (0, $073ad92077ebdb01$export$35fa309210df3df6).ClangFormat);\n}\nfunction $b9ed45c8698183ba$export$814ccfc953503728(version, setupDir, arch) {\n return $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $073ad92077ebdb01$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $5aede9bc9e501a75$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return await (0, $073ad92077ebdb01$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"llvm\", version, (0, $4ae402a71ba6ab5d$export$f203993d12226a27), setupDir, arch);\n await $b9ed45c8698183ba$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $b9ed45c8698183ba$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $b9ed45c8698183ba$var$llvmBinaryDeps = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $b9ed45c8698183ba$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $b82735dd0f3fb385$export$405fab3de79b77b)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $b9ed45c8698183ba$var$setupLLVMDeps = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $b9ed45c8698183ba$export$6238b5ebfd6640e7(directory) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\";\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\";\n const actPromises = [\n // the output of this action\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $fnyYE$path.delimiter)}${ld}`),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $fnyYE$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", (0, $e19ul.addExeExt)(`${directory}/bin/clang`)),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", (0, $e19ul.addExeExt)(`${directory}/bin/clang++`)),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $9414c8293fe072e8$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $b9ed45c8698183ba$var$addLLVMLoggingMatcher() {\n if (0, $l5aZl.GITHUB_ACTIONS) {\n const matcherPath = (0, $e19ul.join)($b9ed45c8698183ba$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $9bb91601f6353265$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $6b27f07a473f7146$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $14a14b2ed2c1c098$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/msvc\");\nasync function $14a14b2ed2c1c098$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $86d8606d45e489e7$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $g0Mwp.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $86d8606d45e489e7$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $g0Mwp.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $g0Mwp.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $g0Mwp.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $l5aZl.GITHUB_ACTIONS) await $14a14b2ed2c1c098$var$addMSVCLoggingMatcher();\n}\nasync function $14a14b2ed2c1c098$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $e19ul.join)($14a14b2ed2c1c098$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\nlet $c0f445ed64f3404a$var$binDir;\nasync function $c0f445ed64f3404a$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $92d741f963835199$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $c0f445ed64f3404a$var$binDir === \"string\") return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $c0f445ed64f3404a$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $c7e2f37817c8297c$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $c0f445ed64f3404a$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n}\nfunction $c0f445ed64f3404a$export$2747aa8ef20f818d(script) {\n if ((0, $c7e2f37817c8297c$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $dc976d84c6869424$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $dc976d84c6869424$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $dc976d84c6869424$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $e9e97f17cf86d7ea$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $ff0b896f9d14b454$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/** Get the platform name task uses in their download links */ function $bcd72fcb5f868a8e$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $bcd72fcb5f868a8e$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $bcd72fcb5f868a8e$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $bcd72fcb5f868a8e$var$getTaskPlatform(platform);\n const taskArch = $bcd72fcb5f868a8e$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b) : (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $bcd72fcb5f868a8e$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"task\", version, $bcd72fcb5f868a8e$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\nlet $ff1491d7868b60e2$var$hasVCPKG = false;\nasync function $ff1491d7868b60e2$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$ff1491d7868b60e2$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $6afW1.pathExists)((0, $e19ul.join)(setupDir, (0, $e19ul.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $e19ul.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $g0Mwp.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)((0, $e19ul.addShExt)((0, $e19ul.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $5d373f8b741de762$export$4718e061a205eab)(setupDir);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $ff1491d7868b60e2$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $e19ul.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $f5048ac1244eaa54$export$18a3521ac7306af4 = {\n nala: (0, $c0f445ed64f3404a$export$d73cbe8caeff03c5),\n cmake: (0, $4843a8590048fdb7$export$c28663a621f418ce),\n ninja: (0, $c3df47ee2e275dc8$export$e6190f4bfe2ef71),\n python: (0, $f52817e181fae4e9$export$2b0b68e9df3d4a02),\n vcpkg: (0, $ff1491d7868b60e2$export$490bdba4ef3e3f82),\n bazel: (0, $6c882e7c88e29bec$export$a66bc93580b0a849),\n conan: (0, $cb2eb9cd8de0ff3c$export$249d0c7d779d362f),\n meson: (0, $6b27f07a473f7146$export$f73905553f087748),\n gcovr: (0, $ffeab3d8ae1dcd56$export$b98d69f362caf61f),\n opencppcoverage: (0, $dc976d84c6869424$export$6aa28a97600a8ae3),\n llvm: (0, $b9ed45c8698183ba$export$3016de7ae9d14988),\n gcc: (0, $b82735dd0f3fb385$export$405fab3de79b77b),\n choco: (0, $f06ab0c228dc75ce$export$b804d731cdad7ef9),\n brew: (0, $b898747961832fe2$export$c5eeb9c87a610a0e),\n powershell: (0, $e9e97f17cf86d7ea$export$1ff6ad96ee130aba),\n ccache: (0, $c04ea7570e5d5658$export$111263621bbb0768),\n sccache: (0, $ff0b896f9d14b454$export$b963b67cda80fdc),\n doxygen: (0, $443cb2ebf97018af$export$b6e6613a954051ee),\n graphviz: (0, $d6e2edee563953d7$export$b885bd977caaafb9),\n cppcheck: (0, $e185fe9d7e14fd3c$export$13d77464c548b5d3),\n clangtidy: (0, $b9ed45c8698183ba$export$814ccfc953503728),\n clangformat: (0, $b9ed45c8698183ba$export$1cf2d186cecf1f54),\n msvc: (0, $14a14b2ed2c1c098$export$a91ef0362c1a7298),\n vcvarsall: (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369),\n kcov: (0, $ed43354497f82ab8$export$abb7c2ff987b1f6b),\n make: (0, $9bb91601f6353265$export$b0a9411329e2916),\n task: (0, $bcd72fcb5f868a8e$export$4456b3a3d3540077),\n sevenzip: (0, $13e8dd9676c43513$export$5fc39629e14c8173)\n};\nconst $f5048ac1244eaa54$export$904054328df186b = Object.keys($f5048ac1244eaa54$export$18a3521ac7306af4);\nconst $f5048ac1244eaa54$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$f5048ac1244eaa54$export$904054328df186b\n];\n\n\nfunction $bf8ffdb3c7910f73$export$7300a92932ee17a3(args) {\n return (0, $43b63e3f508cec08$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $f5048ac1244eaa54$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $f5048ac1244eaa54$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $bf8ffdb3c7910f73$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $bf8ffdb3c7910f73$export$f57ebcae4da846e4() {\n (0, $g0Mwp.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $bf8ffdb3c7910f73$export$fc4ce4d885cb1082(key) {\n const value = (0, $lUL8q.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\n\n\n\n\n\n\nfunction $8877e894c9430a5c$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $g0Mwp.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $8877e894c9430a5c$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $8877e894c9430a5c$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $lUL8q.startGroup)(`Installing ${compiler} ${version ?? \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $b9ed45c8698183ba$export$3016de7ae9d14988)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $fnyYE$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $ffeab3d8ae1dcd56$export$2a0488baf2a20c0f)();\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $b82735dd0f3fb385$export$f115c01d224b9e9a)(gccVersion, (0, $fnyYE$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $b82735dd0f3fb385$export$405fab3de79b77b)(gccVersion, (0, $fnyYE$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $ffeab3d8ae1dcd56$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $14a14b2ed2c1c098$export$a91ef0362c1a7298)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $fnyYE$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $lUL8q.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $g0Mwp.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $lUL8q.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $c788ec15686482ed$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $l5aZl.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $8f12de6ff658e88d$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $bf8ffdb3c7910f73$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $bf8ffdb3c7910f73$export$f57ebcae4da846e4)();\n // cpu architecture\n const arch = opts.architecture ?? process.arch;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $34bd17ad1efa4734$exports.create({\n autoloadLocales: true\n });\n $34bd17ad1efa4734$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($59f03960c4356765$exports))));\n $hapVv.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($4e3c346433ebbc09$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $15fcb2187261fc62$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $g0Mwp.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $g0Mwp.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $f5048ac1244eaa54$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $l5aZl.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $85a072a44fce60d8$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat(opts.timeout ?? \"20\") * 60000);\n time2 = Date.now();\n (0, $g0Mwp.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $8877e894c9430a5c$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $g0Mwp.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $8050f2585a3bae5e$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $g0Mwp.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $g0Mwp.success)(tool));\n errorMessages.forEach((tool)=>(0, $g0Mwp.error)(tool));\n (0, $g0Mwp.info)(\"setup-cpp finished\");\n if (!(0, $l5aZl.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $g0Mwp.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $g0Mwp.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$c788ec15686482ed$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $g0Mwp.error)(\"main() panicked!\");\n (0, $g0Mwp.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.e93d39c0.js\"))).then(() => parcelRequire('i1n7v'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.4215b06b.js\"))).then(() => parcelRequire('dTPU2'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await setupCppInProfile()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFileSync, readFile, readFileSync, writeFileSync } from \"fs\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n if (options.shouldAddOnlyIfNotDefined) {\n appendFileSync(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n }\n }\n\n // source cpprc in bashrc/profile\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = readFileSync(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = readFileSync(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = readFileSync(cpprc_path, \"utf-8\").split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n writeFileSync(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAAS,CAAAC,EAAOR,CAAI,CAAEC,CAAO,CAAEC,CAAE,EAM/B,GALuB,YAAnB,MAAO,CAAAD,CAAA,GACTC,CAAA,CAAKD,CAAA,CACLA,CAAA,CAAU,CAAC,GAGT,CAACC,CAAA,CAAI,CACP,GAAI,UAAmB,EAAnB,MAAO,CAAAO,OAAA,CACT,KAAM,CAAAC,SAAI,CAAU,yBAGtB,MAAO,IAAI,CAAAD,OAAA,CAAQ,SAAUP,CAAO,CAAEC,CAAM,EAC1CK,CAAA,CAAMR,CAAA,CAAMC,CAAA,EAAW,CAAC,EAAG,SAAUD,CAAE,CAAEC,CAAE,EACrCD,CAAA,CACFG,CAAA,CAAOH,CAAA,EAEPE,CAAA,CAAQD,CAAA,CAEZ,GACF,GACF,EAEAU,EAAA,CAAKX,CAAA,CAAMC,CAAA,EAAW,CAAC,EAAG,SAAUD,CAAE,CAAEG,CAAE,EAEpCH,CAAA,GACE,QAAY,GAAZA,CAAA,CAAGY,IAAI,EAAiBX,CAAA,EAAWA,CAAA,CAAQY,YAAY,CAAZ,GAC7Cb,CAAA,CAAK,KACLG,CAAA,CAAK,IAGTD,CAAA,CAAGF,CAAA,CAAIG,CAAA,CACT,GACF,EFrCA,QAAS,CAAAW,EAAsBd,CAAM,CAAEC,CAAc,KAiB7C,CAAAC,CAAA,CAhBJ,GAAM,CAAAC,CAAA,CAAMH,CAAA,CAAOe,OAAO,CAACC,GAAG,EAAIC,OAAA,CAAQD,GAAG,CACvCZ,CAAA,CAAMa,OAAA,CAAQC,GAAG,GACjBb,CAAA,CAAe,IAAsB,EAAt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AAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,sBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CACA,oEACAC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,UACPC,WAAA,CAAY,WACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,SACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,gDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,qDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACP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CAAAoZ,KAAA,CAAExZ,EAAK,CAAE,CAAGpY,EAAA,CAAA2uB,QAAO,C,CAElC3Q,EAAA,CAAAnE,EAAA,GAAAA,EAAA,M,qHKGL,KAAM,CAAAX,EAAA,CAAwB,SxBeTjiB,CAAkB,EAC5C,GAAM,CAAAC,CAAA,CAAW,GAAI,CAAAuO,GAAA,CAAIxO,CAAA,EAEzB,IAAK,GAAM,CAAAE,CAAA,GAAW,CAAAF,CAAA,CACpBC,CAAA,CAASglC,GAAG,CAAC,OAAOzD,IAAI,CAACthC,CAAA,CAAS,CAAC,EAAE,EACrCD,CAAA,CAASglC,GAAG,CAAC,YAAYzD,IAAI,CAACthC,CAAA,CAAS,CAAC,EAAE,EAG5C,MAAO,CAAAD,CACT,GwBxBiD,CAC/C,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAGK2hB,EAAA,CAA6B,GAAI,CAAApT,GAAA,CAAI,CAAC,SAAU,SAAU,SAAU,SAAS,EAG7EsT,EAAA,CAAiB,GAAI,CAAAtT,GAAA,CAAI,CAC7B,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SAGA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAOKuT,EAAA,CAAiC,GAAI,CAAAygB,GAAA,GAQrCtgB,EAAA,CAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBAC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3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rH","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rG","sync","command","path","rV","pathExt","n4","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iO","file","original","h","rM","ri","spawn","rY","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ru","execPath","URL","rp","fileURLToPath","rl","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r3","getBufferedLength","r1","MAX_LENGTH","bufferedData","getBufferedValue","om","on","ov","x","oV","oN","oP","oB","ou","rc","ChildProcess","oC","reject","iK","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","o$","oc","op","kill","or","bind","cancel","oa","rJ","exitCode","signal","oR","oq","aborted","failed","ox","ob","oh","b","oy","spawnSync","input","status","I","getuid","CI","rA","nothrow","S","oz","oL","O","T","R","map","C","SUDO_USER","n6","statSync","isDirectory","$","n3","homedir","replace","oW","A","next","throw","done","value","then","apply","_","return","call","label","ops","pop","trys","sent","Symbol","iterator","N","r8","pkg","nm","rR","warning","message","stack","P","Array","isArray","L","k","D","U","sP","sb","sI","s_","sr","sE","o0","sy","st","sn","o4","o7","sm","sL","sp","sd","ss","j","stdio","M","sU","nE","ny","shouldEscapeSpace","rS","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nv","info","exportVariable","G","setFailed","F","sj","some","test","PATH","split","includes","addPath","B","H","rN","appendFile","sM","sF","V","X","q","ng","pathExists","readFile","K","Set","writeFile","z","J","name","version","DEBIAN_FRONTEND","sB","Q","sH","Z","flatMap","repositories","Y","sV","binDir","W","nw","default","trim","et","ee","er","en","toString","sG","ei","startsWith","eo","nb","dirname","tmpdir","nI","mkdirP","readFileSync","NONINTERACTIVE","es","ea","sq","arch","el","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","ec","sX","TMP","TEMP","Path","extendEnv","eu","ep","ed","ef","sK","sz","eh","matchAll","sW","em","s0","s1","ex","sQ","existsSync","readdirSync","ey","ev","eb","s5","sJ","eg","s3","clean","sY","debug","rmRF","eE","writeFileSync","valid","ew","sort","gt","satisfies","RUNNER_TOOL_CACHE","rt","ok","RUNNER_TEMP","eI","ry","eS","eR","eO","eT","eC","e$","eA","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","at","current","catch","RegExp","Math","pow","e_","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nS","installDir","nM","downloadTool","ar","cacheDir","eN","nU","nj","addExeExt","extractTar","eP","eL","nG","ek","eD","eU","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nF","nB","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","ej","n9","request","method","statusCode","end","eM","from","filter","nq","localeCompare","eF","nV","has","JSON","stringify","eG","aE","n_","getExecOutput","console","eB","eH","eV","eK","bin","eJ","eq","eX","te","e7","upgrade","usePipx","ts","isLibrary","eW","setupActionsPython","rb","ez","eY","aw","python","eQ","e0","eZ","pip","e1","e2","e3","e4","ax","parseInt","ay","e6","execFile","encoding","shell","e5","e8","nK","getUbuntuVersion","e9","aO","user","ti","PIPX_HOME","aS","PIPX_BIN_DIR","aR","ab","to","tt","ag","tr","tn","aI","findIndex","ta","tl","tc","tu","tp","ArchiveHdi","read","extract","td","tf","th","aC","notice","tm","tv","a$","releaseName","fileSuffix","tg","ty","tw","tE","nz","tx","nW","tb","tI","tS","tR","tO","tT","nY","tC","t$","aj","tA","execSync","entries","aU","ak","aD","aL","t_","nZ","tN","aF","startGroup","milliseconds","fallback","customTimers","sign","aP","addEventListener","Number","POSITIVE_INFINITY","aA","finally","clear","tP","endGroup","a0","t4","tL","tk","aH","aG","NODE_DEBUG","tD","aB","rE","tU","tj","tM","aq","tF","aX","aK","get","aV","az","aW","tG","tB","aY","tK","tH","tV","aQ","tz","n0","All","nX","aJ","tq","tX","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","n1","tW","tY","nJ","nQ","tJ","n2","tQ","tZ","t0","t1","t2","t3","aZ","addShExt","addShRelativePrefix","t6","compiler","t5","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","a2","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rC","create","autoloadLocales","addLocale","r$","rO","rT","forEach","cppcheck","gcovr","a1","isCI","now","parseFloat","format","success","t8","t9","rL","rk","rD","rU","rq","rX","rZ","r2","r4","r5","r7","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nd","nf","nh","nH","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","appendFileSync","random","rng","n5","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n8","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t7","connect","localAddress","defaultPort","rr","inherits","re","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","rm","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","rn","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","ro","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rs","HandleTimeout","rI","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","r_","n7","it","ie","ir","groups","getgroups","rP","ii","ia","io","is","il","_ISEXE_TEST_PLATFORM_","ic","isexe","iu","posix","ip","ih","source","im","iv","pathEnv","pathExtExe","ig","iE","rj","rF","iy","OSTYPE","iw","rB","ix","ib","colon","iI","iS","rK","rz","rW","openSync","readSync","closeSync","iR","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iT","getOwnPropertyDescriptor","iC","i$","getPrototypeOf","iA","i_","Function","iN","iP","iL","WeakMap","ik","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","iD","iM","ij","iU","number","action","description","standard","iF","forced","iG","iB","signals","rd","supported","iH","iV","iq","iX","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iz","iW","iY","iJ","reallyExit","pid","iQ","iZ","i0","i1","i2","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i3","i5","i6","oe","i9","rQ","equal","i8","alwaysLast","unload","i4","ot","i7","oi","os","unref","forceKillAfterTimeout","oo","SIGTERM","isFinite","ol","killSignal","race","cleanup","detached","od","of","createWriteStream","pipeStdout","pipeStderr","pipeAll","rf","rh","PassThrough","array","objectMode","setEncoding","pipeline","r0","buffer","MaxBufferError","r6","readable","isEmpty","og","oE","inputFile","ow","createReadStream","oI","oS","oO","oT","oA","o_","ra","isBuffer","oD","oU","templates","expressions","template","oj","oM","debuglog","enabled","oF","padStart","oG","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oH","preferLocal","localDir","stripFinalNewline","windowsHide","oX","oK","rv","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r9","padEnd","isTTY","shouldNotifyInNpmScript","oY","oJ","release","oQ","oZ","o1","o2","o3","o6","o5","o9","o8","se","si","so","sa","sl","sc","su","sf","sh","sv","sg","sw","sx","sS","sR","sO","sT","sC","s$","sA","sN","sk","sD","nx","nC","sZ","s2","s4","s6","nA","s8","nk","nN","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s9","httpStatusCode","new","target","HTTPError","s7","ae","n$","authorization","statusMessage","extract7z","nR","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","an","fs","mkdirAsync","statAsync","ai","ao","as","aa","al","ac","au","__TESTING_MKDIRP_PLATFORM__","ap","root","ad","__TESTING_MKDIRP_NODE_VERSION__","af","ah","am","av","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rg","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aT","a_","aN","globalThis","DOMException","reason","ProgramFiles","aM","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-9d563254babe9e19.js","../../node_modules/@parcel/runtime-js/lib/runtime-53caae4b0bf6f856.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $fnyYE$os = require(\"os\");\nvar $fnyYE$path = require(\"path\");\nvar $fnyYE$fs = require(\"fs\");\nvar $fnyYE$crypto = require(\"crypto\");\nvar $fnyYE$http = require(\"http\");\nvar $fnyYE$https = require(\"https\");\nrequire(\"net\");\nvar $fnyYE$tls = require(\"tls\");\nvar $fnyYE$events = require(\"events\");\nvar $fnyYE$assert = require(\"assert\");\nvar $fnyYE$util = require(\"util\");\nvar $fnyYE$nodefs = require(\"node:fs\");\nvar $fnyYE$child_process = require(\"child_process\");\nvar $fnyYE$string_decoder = require(\"string_decoder\");\nvar $fnyYE$timers = require(\"timers\");\nvar $fnyYE$nodebuffer = require(\"node:buffer\");\nvar $fnyYE$nodepath = require(\"node:path\");\nvar $fnyYE$nodechild_process = require(\"node:child_process\");\nvar $fnyYE$nodeprocess = require(\"node:process\");\nvar $fnyYE$nodeurl = require(\"node:url\");\nvar $fnyYE$nodeos = require(\"node:os\");\nvar $fnyYE$buffer = require(\"buffer\");\nvar $fnyYE$stream = require(\"stream\");\nvar $fnyYE$nodeutil = require(\"node:util\");\nvar $fnyYE$process = require(\"process\");\nvar $fnyYE$url = require(\"url\");\nvar $fnyYE$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"l5aZl\", function(module, exports) {\n\"use strict\";\n\nvar $48im1 = parcelRequire(\"48im1\");\nconst $f59296ad9c7b5e96$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $48im1.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$48im1.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $f59296ad9c7b5e96$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$f59296ad9c7b5e96$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $f59296ad9c7b5e96$var$env && $f59296ad9c7b5e96$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$f59296ad9c7b5e96$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $f59296ad9c7b5e96$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($f59296ad9c7b5e96$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($f59296ad9c7b5e96$var$env.BUILD_ID || // Jenkins, Cloudbees\n$f59296ad9c7b5e96$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$f59296ad9c7b5e96$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$f59296ad9c7b5e96$var$env.CI_APP_ID || // Appflow\n$f59296ad9c7b5e96$var$env.CI_BUILD_ID || // Appflow\n$f59296ad9c7b5e96$var$env.CI_BUILD_NUMBER || // Appflow\n$f59296ad9c7b5e96$var$env.CI_NAME || // Codeship and others\n$f59296ad9c7b5e96$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$f59296ad9c7b5e96$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $f59296ad9c7b5e96$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$f59296ad9c7b5e96$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $f59296ad9c7b5e96$var$env[obj.env] && $f59296ad9c7b5e96$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$f59296ad9c7b5e96$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $f59296ad9c7b5e96$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"48im1\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"g0Mwp\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $074336114a247abe$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $074336114a247abe$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $074336114a247abe$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $074336114a247abe$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $074336114a247abe$export$a80b3bd66acc52ff);\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\nfunction $074336114a247abe$export$a3bc9b8ed74fc(err) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$491112666e282270(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$b31f6ae88848cf15(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $074336114a247abe$export$a80b3bd66acc52ff(msg) {\n return (0, $l5aZl.GITHUB_ACTIONS) ? $lUL8q.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"lUL8q\", function(module, exports) {\n\"use strict\";\nvar $ff4363edb75397e4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ff4363edb75397e4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ff4363edb75397e4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ff4363edb75397e4$var$__createBinding(result, mod, k);\n }\n $ff4363edb75397e4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ff4363edb75397e4$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $87j2H = parcelRequire(\"87j2H\");\n\nvar $7Dlql = parcelRequire(\"7Dlql\");\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\n\nconst $ff4363edb75397e4$var$os = $ff4363edb75397e4$var$__importStar($fnyYE$os);\n\nconst $ff4363edb75397e4$var$path = $ff4363edb75397e4$var$__importStar($fnyYE$path);\n\nvar $5oMT9 = parcelRequire(\"5oMT9\");\n/**\n * The code to exit an action\n */ var $ff4363edb75397e4$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($ff4363edb75397e4$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$exportVariable(name, val) {\n const convertedVal = $gYkCt.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"ENV\", $7Dlql.prepareKeyValueMessage(name, val));\n $87j2H.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $ff4363edb75397e4$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $ff4363edb75397e4$var$setSecret(secret) {\n $87j2H.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $ff4363edb75397e4$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $ff4363edb75397e4$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $7Dlql.issueFileCommand(\"PATH\", inputPath);\n else $87j2H.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$ff4363edb75397e4$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $ff4363edb75397e4$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $ff4363edb75397e4$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $ff4363edb75397e4$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $ff4363edb75397e4$var$getMultilineInput(name, options) {\n const inputs = $ff4363edb75397e4$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $ff4363edb75397e4$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $ff4363edb75397e4$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $ff4363edb75397e4$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $ff4363edb75397e4$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"OUTPUT\", $7Dlql.prepareKeyValueMessage(name, value));\n process.stdout.write($ff4363edb75397e4$var$os.EOL);\n $87j2H.issueCommand(\"set-output\", {\n name: name\n }, $gYkCt.toCommandValue(value));\n}\nmodule.exports.setOutput = $ff4363edb75397e4$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $ff4363edb75397e4$var$setCommandEcho(enabled) {\n $87j2H.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $ff4363edb75397e4$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $ff4363edb75397e4$var$setFailed(message) {\n process.exitCode = $ff4363edb75397e4$var$ExitCode.Failure;\n $ff4363edb75397e4$var$error(message);\n}\nmodule.exports.setFailed = $ff4363edb75397e4$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $ff4363edb75397e4$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $ff4363edb75397e4$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $ff4363edb75397e4$var$debug(message) {\n $87j2H.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $ff4363edb75397e4$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$error(message, properties = {}) {\n $87j2H.issueCommand(\"error\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $ff4363edb75397e4$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$warning(message, properties = {}) {\n $87j2H.issueCommand(\"warning\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $ff4363edb75397e4$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $ff4363edb75397e4$var$notice(message, properties = {}) {\n $87j2H.issueCommand(\"notice\", $gYkCt.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $ff4363edb75397e4$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $ff4363edb75397e4$var$info(message) {\n process.stdout.write(message + $ff4363edb75397e4$var$os.EOL);\n}\nmodule.exports.info = $ff4363edb75397e4$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $ff4363edb75397e4$var$startGroup(name) {\n $87j2H.issue(\"group\", name);\n}\nmodule.exports.startGroup = $ff4363edb75397e4$var$startGroup;\n/**\n * End an output group.\n */ function $ff4363edb75397e4$var$endGroup() {\n $87j2H.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $ff4363edb75397e4$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $ff4363edb75397e4$var$group(name, fn) {\n return $ff4363edb75397e4$var$__awaiter(this, void 0, void 0, function*() {\n $ff4363edb75397e4$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $ff4363edb75397e4$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $ff4363edb75397e4$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $ff4363edb75397e4$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $7Dlql.issueFileCommand(\"STATE\", $7Dlql.prepareKeyValueMessage(name, value));\n $87j2H.issueCommand(\"save-state\", {\n name: name\n }, $gYkCt.toCommandValue(value));\n}\nmodule.exports.saveState = $ff4363edb75397e4$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $ff4363edb75397e4$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $ff4363edb75397e4$var$getState;\nfunction $ff4363edb75397e4$var$getIDToken(aud) {\n return $ff4363edb75397e4$var$__awaiter(this, void 0, void 0, function*() {\n return yield $5oMT9.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $ff4363edb75397e4$var$getIDToken;\n\nvar $jaLnB = parcelRequire(\"jaLnB\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $jaLnB.summary;\n }\n});\n\nvar $jaLnB = parcelRequire(\"jaLnB\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $jaLnB.markdownSummary;\n }\n});\n\nvar $eCzrY = parcelRequire(\"eCzrY\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $eCzrY.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"87j2H\", function(module, exports) {\n\"use strict\";\nvar $5e8dbfa4d1e1deba$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $5e8dbfa4d1e1deba$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $5e8dbfa4d1e1deba$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $5e8dbfa4d1e1deba$var$__createBinding(result, mod, k);\n }\n $5e8dbfa4d1e1deba$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $5e8dbfa4d1e1deba$var$os = $5e8dbfa4d1e1deba$var$__importStar($fnyYE$os);\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $5e8dbfa4d1e1deba$var$issueCommand(command, properties, message) {\n const cmd = new $5e8dbfa4d1e1deba$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $5e8dbfa4d1e1deba$var$os.EOL);\n}\nmodule.exports.issueCommand = $5e8dbfa4d1e1deba$var$issueCommand;\nfunction $5e8dbfa4d1e1deba$var$issue(name, message = \"\") {\n $5e8dbfa4d1e1deba$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $5e8dbfa4d1e1deba$var$issue;\nconst $5e8dbfa4d1e1deba$var$CMD_STRING = \"::\";\nclass $5e8dbfa4d1e1deba$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $5e8dbfa4d1e1deba$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$5e8dbfa4d1e1deba$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$5e8dbfa4d1e1deba$var$CMD_STRING}${$5e8dbfa4d1e1deba$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $5e8dbfa4d1e1deba$var$escapeData(s) {\n return $gYkCt.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $5e8dbfa4d1e1deba$var$escapeProperty(s) {\n return $gYkCt.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"gYkCt\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $c5b23e90a68f2b2b$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $c5b23e90a68f2b2b$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $c5b23e90a68f2b2b$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $c5b23e90a68f2b2b$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"7Dlql\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $58eccb47c7657cb4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $58eccb47c7657cb4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $58eccb47c7657cb4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $58eccb47c7657cb4$var$__createBinding(result, mod, k);\n }\n $58eccb47c7657cb4$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $58eccb47c7657cb4$var$fs = $58eccb47c7657cb4$var$__importStar($fnyYE$fs);\n\nconst $58eccb47c7657cb4$var$os = $58eccb47c7657cb4$var$__importStar($fnyYE$os);\n\nvar $hpOkk = parcelRequire(\"hpOkk\");\n\nvar $gYkCt = parcelRequire(\"gYkCt\");\nfunction $58eccb47c7657cb4$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$58eccb47c7657cb4$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $58eccb47c7657cb4$var$fs.appendFileSync(filePath, `${$gYkCt.toCommandValue(message)}${$58eccb47c7657cb4$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $58eccb47c7657cb4$var$issueFileCommand;\nfunction $58eccb47c7657cb4$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$hpOkk.default()}`;\n const convertedValue = $gYkCt.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$58eccb47c7657cb4$var$os.EOL}${convertedValue}${$58eccb47c7657cb4$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $58eccb47c7657cb4$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"hpOkk\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $cadbcf52bebac8dd$export$2e2bcd8739ae039);\n\nvar $g7JSE = parcelRequire(\"g7JSE\");\n\nvar $jSP38 = parcelRequire(\"jSP38\");\nfunction $cadbcf52bebac8dd$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $g7JSE.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $jSP38.default)(rnds);\n}\nvar $cadbcf52bebac8dd$export$2e2bcd8739ae039 = $cadbcf52bebac8dd$var$v4;\n\n});\nparcelRegister(\"g7JSE\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $bbd0e3ad974fef75$export$2e2bcd8739ae039);\n\nconst $bbd0e3ad974fef75$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $bbd0e3ad974fef75$var$poolPtr = $bbd0e3ad974fef75$var$rnds8Pool.length;\nfunction $bbd0e3ad974fef75$export$2e2bcd8739ae039() {\n if ($bbd0e3ad974fef75$var$poolPtr > $bbd0e3ad974fef75$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($fnyYE$crypto))).randomFillSync($bbd0e3ad974fef75$var$rnds8Pool);\n $bbd0e3ad974fef75$var$poolPtr = 0;\n }\n return $bbd0e3ad974fef75$var$rnds8Pool.slice($bbd0e3ad974fef75$var$poolPtr, $bbd0e3ad974fef75$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"jSP38\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $e79aa8d3e7d7e8bc$export$2e2bcd8739ae039);\n\nvar $2OgOb = parcelRequire(\"2OgOb\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $e79aa8d3e7d7e8bc$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$e79aa8d3e7d7e8bc$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $e79aa8d3e7d7e8bc$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 0]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 1]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 2]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 3]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 4]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 5]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 6]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 7]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 8]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 9]] + \"-\" + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 10]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 11]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 12]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 13]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 14]] + $e79aa8d3e7d7e8bc$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $2OgOb.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $e79aa8d3e7d7e8bc$export$2e2bcd8739ae039 = $e79aa8d3e7d7e8bc$var$stringify;\n\n});\nparcelRegister(\"2OgOb\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $20bd4a0f1d30b575$export$2e2bcd8739ae039);\n\nvar $2UMly = parcelRequire(\"2UMly\");\nfunction $20bd4a0f1d30b575$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $2UMly.default).test(uuid);\n}\nvar $20bd4a0f1d30b575$export$2e2bcd8739ae039 = $20bd4a0f1d30b575$var$validate;\n\n});\nparcelRegister(\"2UMly\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $21f6505b2e8f1384$export$2e2bcd8739ae039);\nvar $21f6505b2e8f1384$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"5oMT9\", function(module, exports) {\n\"use strict\";\nvar $3ee51de827d494c2$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $l6zH0 = parcelRequire(\"l6zH0\");\n\nvar $5civ3 = parcelRequire(\"5civ3\");\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\nclass $3ee51de827d494c2$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $l6zH0.HttpClient(\"actions/oidc-client\", [\n new $5civ3.BearerCredentialHandler($3ee51de827d494c2$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $3ee51de827d494c2$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $3ee51de827d494c2$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $3ee51de827d494c2$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $3ee51de827d494c2$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $lUL8q.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $3ee51de827d494c2$var$OidcClient.getCall(id_token_url);\n $lUL8q.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $3ee51de827d494c2$var$OidcClient;\n\n});\nparcelRegister(\"l6zH0\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $f5d5d851e959b23a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $f5d5d851e959b23a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $f5d5d851e959b23a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $f5d5d851e959b23a$var$__createBinding(result, mod, k);\n }\n $f5d5d851e959b23a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $f5d5d851e959b23a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $f5d5d851e959b23a$var$http = $f5d5d851e959b23a$var$__importStar($fnyYE$http);\n\nconst $f5d5d851e959b23a$var$https = $f5d5d851e959b23a$var$__importStar($fnyYE$https);\n\nconst $f5d5d851e959b23a$var$pm = $f5d5d851e959b23a$var$__importStar((parcelRequire(\"40WgE\")));\n\nconst $f5d5d851e959b23a$var$tunnel = $f5d5d851e959b23a$var$__importStar((parcelRequire(\"3zxaw\")));\nvar $f5d5d851e959b23a$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($f5d5d851e959b23a$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $f5d5d851e959b23a$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($f5d5d851e959b23a$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $f5d5d851e959b23a$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($f5d5d851e959b23a$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $f5d5d851e959b23a$var$getProxyUrl(serverUrl) {\n const proxyUrl = $f5d5d851e959b23a$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $f5d5d851e959b23a$var$getProxyUrl;\nconst $f5d5d851e959b23a$var$HttpRedirectCodes = [\n $f5d5d851e959b23a$var$HttpCodes.MovedPermanently,\n $f5d5d851e959b23a$var$HttpCodes.ResourceMoved,\n $f5d5d851e959b23a$var$HttpCodes.SeeOther,\n $f5d5d851e959b23a$var$HttpCodes.TemporaryRedirect,\n $f5d5d851e959b23a$var$HttpCodes.PermanentRedirect\n];\nconst $f5d5d851e959b23a$var$HttpResponseRetryCodes = [\n $f5d5d851e959b23a$var$HttpCodes.BadGateway,\n $f5d5d851e959b23a$var$HttpCodes.ServiceUnavailable,\n $f5d5d851e959b23a$var$HttpCodes.GatewayTimeout\n];\nconst $f5d5d851e959b23a$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $f5d5d851e959b23a$var$ExponentialBackoffCeiling = 10;\nconst $f5d5d851e959b23a$var$ExponentialBackoffTimeSlice = 5;\nclass $f5d5d851e959b23a$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $f5d5d851e959b23a$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $f5d5d851e959b23a$var$HttpClientError;\nclass $f5d5d851e959b23a$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $f5d5d851e959b23a$var$HttpClientResponse;\nfunction $f5d5d851e959b23a$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $f5d5d851e959b23a$var$isHttps;\nclass $f5d5d851e959b23a$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.Accept, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$f5d5d851e959b23a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $f5d5d851e959b23a$var$Headers.ContentType, $f5d5d851e959b23a$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $f5d5d851e959b23a$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $f5d5d851e959b23a$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $f5d5d851e959b23a$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$f5d5d851e959b23a$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $f5d5d851e959b23a$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $f5d5d851e959b23a$var$https : $f5d5d851e959b23a$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $f5d5d851e959b23a$var$lowercaseKeys(this.requestOptions.headers), $f5d5d851e959b23a$var$lowercaseKeys(headers || {}));\n return $f5d5d851e959b23a$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $f5d5d851e959b23a$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $f5d5d851e959b23a$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $f5d5d851e959b23a$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $f5d5d851e959b23a$var$tunnel.httpsOverHttps : $f5d5d851e959b23a$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $f5d5d851e959b23a$var$tunnel.httpOverHttps : $f5d5d851e959b23a$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $f5d5d851e959b23a$var$https.Agent(options) : new $f5d5d851e959b23a$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $f5d5d851e959b23a$var$https.globalAgent : $f5d5d851e959b23a$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($f5d5d851e959b23a$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $f5d5d851e959b23a$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$f5d5d851e959b23a$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $f5d5d851e959b23a$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $f5d5d851e959b23a$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $f5d5d851e959b23a$var$HttpClient;\nconst $f5d5d851e959b23a$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"40WgE\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $2ec45c3c2f4db54c$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($2ec45c3c2f4db54c$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $2ec45c3c2f4db54c$var$getProxyUrl;\nfunction $2ec45c3c2f4db54c$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($2ec45c3c2f4db54c$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $2ec45c3c2f4db54c$var$checkBypass;\nfunction $2ec45c3c2f4db54c$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"3zxaw\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"zoNP8\"));\n\n});\nparcelRegister(\"zoNP8\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $06a68247c3f420bb$export$25cbd437c61a3835, (v) => $06a68247c3f420bb$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $06a68247c3f420bb$export$c06e3df7111bae43, (v) => $06a68247c3f420bb$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $06a68247c3f420bb$export$5d50e36ef656139f, (v) => $06a68247c3f420bb$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $06a68247c3f420bb$export$212d6605025321cc, (v) => $06a68247c3f420bb$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $06a68247c3f420bb$export$1c9f709888824e05, (v) => $06a68247c3f420bb$export$1c9f709888824e05 = v);\nvar $06a68247c3f420bb$export$25cbd437c61a3835;\nvar $06a68247c3f420bb$export$c06e3df7111bae43;\nvar $06a68247c3f420bb$export$5d50e36ef656139f;\nvar $06a68247c3f420bb$export$212d6605025321cc;\nvar $06a68247c3f420bb$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$06a68247c3f420bb$export$25cbd437c61a3835 = $06a68247c3f420bb$var$httpOverHttp;\n$06a68247c3f420bb$export$c06e3df7111bae43 = $06a68247c3f420bb$var$httpsOverHttp;\n$06a68247c3f420bb$export$5d50e36ef656139f = $06a68247c3f420bb$var$httpOverHttps;\n$06a68247c3f420bb$export$212d6605025321cc = $06a68247c3f420bb$var$httpsOverHttps;\nfunction $06a68247c3f420bb$var$httpOverHttp(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$http.request;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpsOverHttp(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$http.request;\n agent.createSocket = $06a68247c3f420bb$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpOverHttps(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$https.request;\n return agent;\n}\nfunction $06a68247c3f420bb$var$httpsOverHttps(options) {\n var agent = new $06a68247c3f420bb$var$TunnelingAgent(options);\n agent.request = $fnyYE$https.request;\n agent.createSocket = $06a68247c3f420bb$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $06a68247c3f420bb$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $fnyYE$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $06a68247c3f420bb$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$fnyYE$util.inherits($06a68247c3f420bb$var$TunnelingAgent, $fnyYE$events.EventEmitter);\n$06a68247c3f420bb$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $06a68247c3f420bb$var$mergeOptions({\n request: req\n }, self.options, $06a68247c3f420bb$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$06a68247c3f420bb$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $06a68247c3f420bb$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $06a68247c3f420bb$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $06a68247c3f420bb$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $06a68247c3f420bb$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $06a68247c3f420bb$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $06a68247c3f420bb$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$06a68247c3f420bb$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $06a68247c3f420bb$var$createSecureSocket(options, cb) {\n var self = this;\n $06a68247c3f420bb$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $06a68247c3f420bb$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $fnyYE$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $06a68247c3f420bb$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $06a68247c3f420bb$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $06a68247c3f420bb$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $06a68247c3f420bb$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $06a68247c3f420bb$var$debug = function() {};\n$06a68247c3f420bb$export$1c9f709888824e05 = $06a68247c3f420bb$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"5civ3\", function(module, exports) {\n\"use strict\";\nvar $3c8c6c681042cd68$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $3c8c6c681042cd68$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $3c8c6c681042cd68$var$BasicCredentialHandler;\nclass $3c8c6c681042cd68$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $3c8c6c681042cd68$var$BearerCredentialHandler;\nclass $3c8c6c681042cd68$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $3c8c6c681042cd68$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $3c8c6c681042cd68$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"jaLnB\", function(module, exports) {\n\"use strict\";\nvar $df53b41ea025d161$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $df53b41ea025d161$var$access, appendFile: $df53b41ea025d161$var$appendFile, writeFile: $df53b41ea025d161$var$writeFile } = $fnyYE$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $df53b41ea025d161$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $df53b41ea025d161$var$access(pathFromEnv, $fnyYE$fs.constants.R_OK | $fnyYE$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $df53b41ea025d161$var$writeFile : $df53b41ea025d161$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $df53b41ea025d161$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($fnyYE$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $df53b41ea025d161$var$_summary = new $df53b41ea025d161$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $df53b41ea025d161$var$_summary;\nmodule.exports.summary = $df53b41ea025d161$var$_summary;\n\n});\n\nparcelRegister(\"eCzrY\", function(module, exports) {\n\"use strict\";\nvar $aa501cfb12138353$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $aa501cfb12138353$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $aa501cfb12138353$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $aa501cfb12138353$var$__createBinding(result, mod, k);\n }\n $aa501cfb12138353$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $aa501cfb12138353$var$path = $aa501cfb12138353$var$__importStar($fnyYE$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $aa501cfb12138353$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $aa501cfb12138353$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $aa501cfb12138353$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $aa501cfb12138353$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $aa501cfb12138353$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $aa501cfb12138353$var$path.sep);\n}\nmodule.exports.toPlatformPath = $aa501cfb12138353$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"kspKY\", function(module, exports) {\n\nvar $ee4a66e40b1acbbd$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($ee4a66e40b1acbbd$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"dl3mv\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $hapVv = parcelRequire(\"hapVv\");\n\nvar $joCBa = parcelRequire(\"joCBa\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $9b5fd826f3e9ee59$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $9b5fd826f3e9ee59$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $9b5fd826f3e9ee59$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $9b5fd826f3e9ee59$var$timeDeltaFactory,\n addLocale: $9b5fd826f3e9ee59$var$addLocale,\n defaultConfig: $9b5fd826f3e9ee59$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $9b5fd826f3e9ee59$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $9b5fd826f3e9ee59$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $9b5fd826f3e9ee59$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $9b5fd826f3e9ee59$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $9b5fd826f3e9ee59$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $9b5fd826f3e9ee59$var$format(firstDate, secondDate, config) {\n $9b5fd826f3e9ee59$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $9b5fd826f3e9ee59$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($9b5fd826f3e9ee59$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $9b5fd826f3e9ee59$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($9b5fd826f3e9ee59$var$hasLocale(locale)) return;\n if ($joCBa && autoload) $9b5fd826f3e9ee59$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $9b5fd826f3e9ee59$var$hasLocale(localeId) {\n return Boolean($9b5fd826f3e9ee59$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $9b5fd826f3e9ee59$var$requireLocale(localeId) {\n try {\n $9b5fd826f3e9ee59$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $9b5fd826f3e9ee59$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $9b5fd826f3e9ee59$var$pluralize(unit, value, config) {\n const unitTypeData = $9b5fd826f3e9ee59$var$getLocaleDataForUnitType(config);\n const unitString = $hapVv.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$getLocaleDataForUnitType(config) {\n const localeData = $9b5fd826f3e9ee59$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $9b5fd826f3e9ee59$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $9b5fd826f3e9ee59$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"hapVv\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"kspKY\"));\n\n});\n\nparcelRegister(\"joCBa\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"eYpZW\", function(module, exports) {\n\n$parcel$export(module.exports, \"appendFile\", () => $16f1dcf8cea20950$export$31f54b44f813a103);\n$parcel$export(module.exports, \"chmod\", () => $16f1dcf8cea20950$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $16f1dcf8cea20950$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $16f1dcf8cea20950$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $16f1dcf8cea20950$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $16f1dcf8cea20950$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readFile\", () => $16f1dcf8cea20950$export$72c04af63de9061a);\n$parcel$export(module.exports, \"readlink\", () => $16f1dcf8cea20950$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $16f1dcf8cea20950$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $16f1dcf8cea20950$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $16f1dcf8cea20950$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $16f1dcf8cea20950$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $16f1dcf8cea20950$export$a1f77f18af3aebd5);\n\n\nvar $16f1dcf8cea20950$export$2e2bcd8739ae039 = $fnyYE$fs.promises;\nconst { access: $16f1dcf8cea20950$export$9bb0e144ba4929ca, appendFile: $16f1dcf8cea20950$export$31f54b44f813a103, chmod: $16f1dcf8cea20950$export$fe07cae62e774a05, chown: $16f1dcf8cea20950$export$86560bc0b866a003, copyFile: $16f1dcf8cea20950$export$c763efb2c06e223f, lchmod: $16f1dcf8cea20950$export$4d4374c7ea08c49f, lchown: $16f1dcf8cea20950$export$b34a65c440b523a2, link: $16f1dcf8cea20950$export$9c30223ca0a664fb, lstat: $16f1dcf8cea20950$export$c29f07eab13966a4, mkdir: $16f1dcf8cea20950$export$d9fa9670717a639d, mkdtemp: $16f1dcf8cea20950$export$bb440dc863a3b46a, open: $16f1dcf8cea20950$export$3ce6949f20cea765, readdir: $16f1dcf8cea20950$export$b1e07c405f785337, readFile: $16f1dcf8cea20950$export$72c04af63de9061a, readlink: $16f1dcf8cea20950$export$3d3ca76659ee9f39, realpath: $16f1dcf8cea20950$export$9f2c45015a422c45, rename: $16f1dcf8cea20950$export$7ac989ec0c9c279, rmdir: $16f1dcf8cea20950$export$3f660f6332b9a01d, stat: $16f1dcf8cea20950$export$f82f04a91eb6144a, symlink: $16f1dcf8cea20950$export$ed42c6f39f07f97, truncate: $16f1dcf8cea20950$export$6a506b36fdea397d, unlink: $16f1dcf8cea20950$export$5e0808041271ce04, utimes: $16f1dcf8cea20950$export$d85d919a687a608f, writeFile: $16f1dcf8cea20950$export$552bfb764b5cd2b4 } = $fnyYE$fs.promises;\nconst $16f1dcf8cea20950$export$a1f77f18af3aebd5 = \"rm\" in $fnyYE$fs.promises ? $fnyYE$fs.promises.rm : (0, $fnyYE$util.promisify)($fnyYE$fs.unlink);\n\n});\n\nparcelRegister(\"ipr2f\", function(module, exports) {\nmodule.exports = $d66f88745e8f63ab$var$isexe;\n$d66f88745e8f63ab$var$isexe.sync = $d66f88745e8f63ab$var$sync;\n\nfunction $d66f88745e8f63ab$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $d66f88745e8f63ab$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $d66f88745e8f63ab$var$checkPathExt(path, options);\n}\nfunction $d66f88745e8f63ab$var$isexe(path, options, cb) {\n $fnyYE$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $d66f88745e8f63ab$var$checkStat(stat, path, options));\n });\n}\nfunction $d66f88745e8f63ab$var$sync(path, options) {\n return $d66f88745e8f63ab$var$checkStat($fnyYE$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"bn5RY\", function(module, exports) {\nmodule.exports = $8476654426e5fdfb$var$isexe;\n$8476654426e5fdfb$var$isexe.sync = $8476654426e5fdfb$var$sync;\n\nfunction $8476654426e5fdfb$var$isexe(path, options, cb) {\n $fnyYE$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $8476654426e5fdfb$var$checkStat(stat, options));\n });\n}\nfunction $8476654426e5fdfb$var$sync(path, options) {\n return $8476654426e5fdfb$var$checkStat($fnyYE$fs.statSync(path), options);\n}\nfunction $8476654426e5fdfb$var$checkStat(stat, options) {\n return stat.isFile() && $8476654426e5fdfb$var$checkMode(stat, options);\n}\nfunction $8476654426e5fdfb$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"97KW0\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"24j9d\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\n\nvar $84nXv = parcelRequire(\"84nXv\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $lG7j5 = parcelRequire(\"lG7j5\");\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\nvar $5UYbM = parcelRequire(\"5UYbM\");\n\nvar $g4dmV = parcelRequire(\"g4dmV\");\n\nvar $avNOz = parcelRequire(\"avNOz\");\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $dYfT7 = parcelRequire(\"dYfT7\");\n\nvar $9h5Uk = parcelRequire(\"9h5Uk\");\n\nvar $1oG7j = parcelRequire(\"1oG7j\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n\nvar $9fB4n = parcelRequire(\"9fB4n\");\n\nvar $b7w7T = parcelRequire(\"b7w7T\");\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\n\nvar $4Jb5D = parcelRequire(\"4Jb5D\");\n\nvar $hhi7M = parcelRequire(\"hhi7M\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $dLLSg = parcelRequire(\"dLLSg\");\n\nvar $7CMva = parcelRequire(\"7CMva\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $3ktqT = parcelRequire(\"3ktqT\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $iGUY3 = parcelRequire(\"iGUY3\");\n\nvar $jpWIo = parcelRequire(\"jpWIo\");\n\nvar $dJyj1 = parcelRequire(\"dJyj1\");\n\nvar $9inVR = parcelRequire(\"9inVR\");\n\nvar $5wxvo = parcelRequire(\"5wxvo\");\n\nvar $16OoL = parcelRequire(\"16OoL\");\n\nvar $aNIaY = parcelRequire(\"aNIaY\");\n\nvar $huA22 = parcelRequire(\"huA22\");\n\nvar $hRcmf = parcelRequire(\"hRcmf\");\n\nvar $fnXJa = parcelRequire(\"fnXJa\");\n\nvar $cVjo2 = parcelRequire(\"cVjo2\");\nmodule.exports = {\n parse: $9fZKy,\n valid: $SUO5C,\n clean: $5UYbM,\n inc: $g4dmV,\n diff: $avNOz,\n major: $3nHUu,\n minor: $dYfT7,\n patch: $9h5Uk,\n prerelease: $1oG7j,\n compare: $dKY2K,\n rcompare: $9fB4n,\n compareLoose: $b7w7T,\n compareBuild: $4Cdie,\n sort: $4Jb5D,\n rsort: $hhi7M,\n gt: $cmfRl,\n lt: $9cmQV,\n eq: $dLLSg,\n neq: $7CMva,\n gte: $8dSFQ,\n lte: $eekMY,\n cmp: $3ktqT,\n coerce: $h5EpL,\n Comparator: $hf4vi,\n Range: $3ZIKH,\n satisfies: $h0AH5,\n toComparators: $iGUY3,\n maxSatisfying: $jpWIo,\n minSatisfying: $dJyj1,\n minVersion: $9inVR,\n validRange: $5wxvo,\n outside: $16OoL,\n gtr: $aNIaY,\n ltr: $huA22,\n intersects: $hRcmf,\n simplifyRange: $fnXJa,\n subset: $cVjo2,\n SemVer: $bmedX,\n re: $aYJ5s.re,\n src: $aYJ5s.src,\n tokens: $aYJ5s.t,\n SEMVER_SPEC_VERSION: $84nXv.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $84nXv.RELEASE_TYPES,\n compareIdentifiers: $lG7j5.compareIdentifiers,\n rcompareIdentifiers: $lG7j5.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"aYJ5s\", function(module, exports) {\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH = $84nXv.MAX_SAFE_COMPONENT_LENGTH;\nvar $7fe27b54ca3f8458$require$MAX_SAFE_BUILD_LENGTH = $84nXv.MAX_SAFE_BUILD_LENGTH;\nvar $7fe27b54ca3f8458$require$MAX_LENGTH = $84nXv.MAX_LENGTH;\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $7fe27b54ca3f8458$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $7fe27b54ca3f8458$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $dc2zw(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$7fe27b54ca3f8458$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"84nXv\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $5e0148275b563db4$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $5e0148275b563db4$var$MAX_LENGTH = 256;\nconst $5e0148275b563db4$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $5e0148275b563db4$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $5e0148275b563db4$var$MAX_SAFE_BUILD_LENGTH = $5e0148275b563db4$var$MAX_LENGTH - 6;\nconst $5e0148275b563db4$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $5e0148275b563db4$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $5e0148275b563db4$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $5e0148275b563db4$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $5e0148275b563db4$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $5e0148275b563db4$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $5e0148275b563db4$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"dc2zw\", function(module, exports) {\nconst $99ae6419d8c8fc94$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $99ae6419d8c8fc94$var$debug;\n\n});\n\n\nparcelRegister(\"bmedX\", function(module, exports) {\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $844cc864cf80093e$require$MAX_LENGTH = $84nXv.MAX_LENGTH;\nvar $844cc864cf80093e$require$MAX_SAFE_INTEGER = $84nXv.MAX_SAFE_INTEGER;\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $844cc864cf80093e$require$re = $aYJ5s.safeRe;\nvar $844cc864cf80093e$require$t = $aYJ5s.t;\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $lG7j5 = parcelRequire(\"lG7j5\");\nvar $844cc864cf80093e$require$compareIdentifiers = $lG7j5.compareIdentifiers;\nclass $844cc864cf80093e$var$SemVer {\n constructor(version, options){\n options = $9rxnK(options);\n if (version instanceof $844cc864cf80093e$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $844cc864cf80093e$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$844cc864cf80093e$require$MAX_LENGTH} characters`);\n $dc2zw(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $844cc864cf80093e$require$re[$844cc864cf80093e$require$t.LOOSE] : $844cc864cf80093e$require$re[$844cc864cf80093e$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $844cc864cf80093e$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $844cc864cf80093e$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $dc2zw(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $844cc864cf80093e$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n return $844cc864cf80093e$require$compareIdentifiers(this.major, other.major) || $844cc864cf80093e$require$compareIdentifiers(this.minor, other.minor) || $844cc864cf80093e$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $dc2zw(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $844cc864cf80093e$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $844cc864cf80093e$var$SemVer)) other = new $844cc864cf80093e$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $dc2zw(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $844cc864cf80093e$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($844cc864cf80093e$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $844cc864cf80093e$var$SemVer;\n\n});\nparcelRegister(\"9rxnK\", function(module, exports) {\n// parse out just the options we care about\nconst $6e0087ab21a6c699$var$looseOption = Object.freeze({\n loose: true\n});\nconst $6e0087ab21a6c699$var$emptyOpts = Object.freeze({});\nconst $6e0087ab21a6c699$var$parseOptions = (options)=>{\n if (!options) return $6e0087ab21a6c699$var$emptyOpts;\n if (typeof options !== \"object\") return $6e0087ab21a6c699$var$looseOption;\n return options;\n};\nmodule.exports = $6e0087ab21a6c699$var$parseOptions;\n\n});\n\nparcelRegister(\"lG7j5\", function(module, exports) {\nconst $fc8330362673038c$var$numeric = /^[0-9]+$/;\nconst $fc8330362673038c$var$compareIdentifiers = (a, b)=>{\n const anum = $fc8330362673038c$var$numeric.test(a);\n const bnum = $fc8330362673038c$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $fc8330362673038c$var$rcompareIdentifiers = (a, b)=>$fc8330362673038c$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $fc8330362673038c$var$compareIdentifiers,\n rcompareIdentifiers: $fc8330362673038c$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"9fZKy\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $6bd569fe6daf4ade$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $bmedX) return version;\n try {\n return new $bmedX(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $6bd569fe6daf4ade$var$parse;\n\n});\n\nparcelRegister(\"SUO5C\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $0a511bed2d1a680e$var$valid = (version, options)=>{\n const v = $9fZKy(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $0a511bed2d1a680e$var$valid;\n\n});\n\nparcelRegister(\"5UYbM\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $44f0df021a9b0feb$var$clean = (version, options)=>{\n const s = $9fZKy(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $44f0df021a9b0feb$var$clean;\n\n});\n\nparcelRegister(\"g4dmV\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $bb2763cd0bca792e$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $bmedX(version instanceof $bmedX ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $bb2763cd0bca792e$var$inc;\n\n});\n\nparcelRegister(\"avNOz\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $7a7370cefff4d4d5$var$diff = (version1, version2)=>{\n const v1 = $9fZKy(version1, null, true);\n const v2 = $9fZKy(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $7a7370cefff4d4d5$var$diff;\n\n});\n\nparcelRegister(\"3nHUu\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $276594b9c180e0f0$var$major = (a, loose)=>new $bmedX(a, loose).major;\nmodule.exports = $276594b9c180e0f0$var$major;\n\n});\n\nparcelRegister(\"dYfT7\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $a2bd3401b9e3d9ac$var$minor = (a, loose)=>new $bmedX(a, loose).minor;\nmodule.exports = $a2bd3401b9e3d9ac$var$minor;\n\n});\n\nparcelRegister(\"9h5Uk\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $6c0a48b3f9338d20$var$patch = (a, loose)=>new $bmedX(a, loose).patch;\nmodule.exports = $6c0a48b3f9338d20$var$patch;\n\n});\n\nparcelRegister(\"1oG7j\", function(module, exports) {\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\nconst $1048b3e89636d643$var$prerelease = (version, options)=>{\n const parsed = $9fZKy(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $1048b3e89636d643$var$prerelease;\n\n});\n\nparcelRegister(\"dKY2K\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $a03e2595d876bcf8$var$compare = (a, b, loose)=>new $bmedX(a, loose).compare(new $bmedX(b, loose));\nmodule.exports = $a03e2595d876bcf8$var$compare;\n\n});\n\nparcelRegister(\"9fB4n\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $6bc2450a8af70fb2$var$rcompare = (a, b, loose)=>$dKY2K(b, a, loose);\nmodule.exports = $6bc2450a8af70fb2$var$rcompare;\n\n});\n\nparcelRegister(\"b7w7T\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $818944cadcc94a9c$var$compareLoose = (a, b)=>$dKY2K(a, b, true);\nmodule.exports = $818944cadcc94a9c$var$compareLoose;\n\n});\n\nparcelRegister(\"4Cdie\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\nconst $35c505c017250381$var$compareBuild = (a, b, loose)=>{\n const versionA = new $bmedX(a, loose);\n const versionB = new $bmedX(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $35c505c017250381$var$compareBuild;\n\n});\n\nparcelRegister(\"4Jb5D\", function(module, exports) {\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\nconst $3713f7a31735ad15$var$sort = (list, loose)=>list.sort((a, b)=>$4Cdie(a, b, loose));\nmodule.exports = $3713f7a31735ad15$var$sort;\n\n});\n\nparcelRegister(\"hhi7M\", function(module, exports) {\n\nvar $4Cdie = parcelRequire(\"4Cdie\");\nconst $c942155432093a9e$var$rsort = (list, loose)=>list.sort((a, b)=>$4Cdie(b, a, loose));\nmodule.exports = $c942155432093a9e$var$rsort;\n\n});\n\nparcelRegister(\"cmfRl\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $8ff3d77984ea3cf4$var$gt = (a, b, loose)=>$dKY2K(a, b, loose) > 0;\nmodule.exports = $8ff3d77984ea3cf4$var$gt;\n\n});\n\nparcelRegister(\"9cmQV\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $6b26f620b01a90e5$var$lt = (a, b, loose)=>$dKY2K(a, b, loose) < 0;\nmodule.exports = $6b26f620b01a90e5$var$lt;\n\n});\n\nparcelRegister(\"dLLSg\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $a064ccf62d702cc4$var$eq = (a, b, loose)=>$dKY2K(a, b, loose) === 0;\nmodule.exports = $a064ccf62d702cc4$var$eq;\n\n});\n\nparcelRegister(\"7CMva\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $58d1b476ad4304dd$var$neq = (a, b, loose)=>$dKY2K(a, b, loose) !== 0;\nmodule.exports = $58d1b476ad4304dd$var$neq;\n\n});\n\nparcelRegister(\"8dSFQ\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $5fc9f2b6d040d887$var$gte = (a, b, loose)=>$dKY2K(a, b, loose) >= 0;\nmodule.exports = $5fc9f2b6d040d887$var$gte;\n\n});\n\nparcelRegister(\"eekMY\", function(module, exports) {\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nconst $a5c27fc1b30916a7$var$lte = (a, b, loose)=>$dKY2K(a, b, loose) <= 0;\nmodule.exports = $a5c27fc1b30916a7$var$lte;\n\n});\n\nparcelRegister(\"3ktqT\", function(module, exports) {\n\nvar $dLLSg = parcelRequire(\"dLLSg\");\n\nvar $7CMva = parcelRequire(\"7CMva\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\nconst $26ca121a33818d4a$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $dLLSg(a, b, loose);\n case \"!=\":\n return $7CMva(a, b, loose);\n case \">\":\n return $cmfRl(a, b, loose);\n case \">=\":\n return $8dSFQ(a, b, loose);\n case \"<\":\n return $9cmQV(a, b, loose);\n case \"<=\":\n return $eekMY(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $26ca121a33818d4a$var$cmp;\n\n});\n\nparcelRegister(\"h5EpL\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $9fZKy = parcelRequire(\"9fZKy\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $c71240ccd625fe7d$require$re = $aYJ5s.safeRe;\nvar $c71240ccd625fe7d$require$t = $aYJ5s.t;\nconst $c71240ccd625fe7d$var$coerce = (version, options)=>{\n if (version instanceof $bmedX) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCEFULL] : $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCERTLFULL] : $c71240ccd625fe7d$require$re[$c71240ccd625fe7d$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $9fZKy(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $c71240ccd625fe7d$var$coerce;\n\n});\n\nparcelRegister(\"hf4vi\", function(module, exports) {\nconst $c8d754bc004d1996$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $c8d754bc004d1996$var$Comparator {\n static get ANY() {\n return $c8d754bc004d1996$var$ANY;\n }\n constructor(comp, options){\n options = $9rxnK(options);\n if (comp instanceof $c8d754bc004d1996$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $dc2zw(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $c8d754bc004d1996$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $dc2zw(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $c8d754bc004d1996$require$re[$c8d754bc004d1996$require$t.COMPARATORLOOSE] : $c8d754bc004d1996$require$re[$c8d754bc004d1996$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $c8d754bc004d1996$var$ANY;\n else this.semver = new $bmedX(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $dc2zw(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $c8d754bc004d1996$var$ANY || version === $c8d754bc004d1996$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $bmedX(version, this.options);\n } catch (er) {\n return false;\n }\n return $3ktqT(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $c8d754bc004d1996$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $3ZIKH(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $3ZIKH(this.value, options).test(comp.semver);\n }\n options = $9rxnK(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($3ktqT(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($3ktqT(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $c8d754bc004d1996$var$Comparator;\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $c8d754bc004d1996$require$re = $aYJ5s.safeRe;\nvar $c8d754bc004d1996$require$t = $aYJ5s.t;\n\nvar $3ktqT = parcelRequire(\"3ktqT\");\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\n});\nparcelRegister(\"3ZIKH\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $2e89c8759dc5e770$var$Range {\n constructor(range, options){\n options = $9rxnK(options);\n if (range instanceof $2e89c8759dc5e770$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $2e89c8759dc5e770$var$Range(range.raw, options);\n }\n if (range instanceof $hf4vi) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$2e89c8759dc5e770$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $2e89c8759dc5e770$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $2e89c8759dc5e770$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $2e89c8759dc5e770$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $2e89c8759dc5e770$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.HYPHENRANGELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.HYPHENRANGE];\n range = range.replace(hr, $2e89c8759dc5e770$var$hyphenReplace(this.options.includePrerelease));\n $dc2zw(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.COMPARATORTRIM], $2e89c8759dc5e770$require$comparatorTrimReplace);\n $dc2zw(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDETRIM], $2e89c8759dc5e770$require$tildeTrimReplace);\n $dc2zw(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARETTRIM], $2e89c8759dc5e770$require$caretTrimReplace);\n $dc2zw(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$2e89c8759dc5e770$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$2e89c8759dc5e770$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $dc2zw(\"loose invalid filter\", comp, this.options);\n return !!comp.match($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.COMPARATORLOOSE]);\n });\n $dc2zw(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $hf4vi(comp, this.options));\n for (const comp of comparators){\n if ($2e89c8759dc5e770$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $2e89c8759dc5e770$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $2e89c8759dc5e770$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $2e89c8759dc5e770$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $2e89c8759dc5e770$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $bmedX(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($2e89c8759dc5e770$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $2e89c8759dc5e770$var$Range;\n\nvar $tPjHU = parcelRequire(\"tPjHU\");\nconst $2e89c8759dc5e770$var$cache = new $tPjHU({\n max: 1000\n});\n\nvar $9rxnK = parcelRequire(\"9rxnK\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\n\nvar $dc2zw = parcelRequire(\"dc2zw\");\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $aYJ5s = parcelRequire(\"aYJ5s\");\nvar $2e89c8759dc5e770$require$re = $aYJ5s.safeRe;\nvar $2e89c8759dc5e770$require$t = $aYJ5s.t;\nvar $2e89c8759dc5e770$require$comparatorTrimReplace = $aYJ5s.comparatorTrimReplace;\nvar $2e89c8759dc5e770$require$tildeTrimReplace = $aYJ5s.tildeTrimReplace;\nvar $2e89c8759dc5e770$require$caretTrimReplace = $aYJ5s.caretTrimReplace;\n\nvar $84nXv = parcelRequire(\"84nXv\");\nvar $2e89c8759dc5e770$require$FLAG_INCLUDE_PRERELEASE = $84nXv.FLAG_INCLUDE_PRERELEASE;\nvar $2e89c8759dc5e770$require$FLAG_LOOSE = $84nXv.FLAG_LOOSE;\nconst $2e89c8759dc5e770$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $2e89c8759dc5e770$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $2e89c8759dc5e770$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $2e89c8759dc5e770$var$parseComparator = (comp, options)=>{\n $dc2zw(\"comp\", comp, options);\n comp = $2e89c8759dc5e770$var$replaceCarets(comp, options);\n $dc2zw(\"caret\", comp);\n comp = $2e89c8759dc5e770$var$replaceTildes(comp, options);\n $dc2zw(\"tildes\", comp);\n comp = $2e89c8759dc5e770$var$replaceXRanges(comp, options);\n $dc2zw(\"xrange\", comp);\n comp = $2e89c8759dc5e770$var$replaceStars(comp, options);\n $dc2zw(\"stars\", comp);\n return comp;\n};\nconst $2e89c8759dc5e770$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $2e89c8759dc5e770$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceTilde(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $dc2zw(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($2e89c8759dc5e770$var$isX(M)) ret = \"\";\n else if ($2e89c8759dc5e770$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $dc2zw(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $dc2zw(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $2e89c8759dc5e770$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceCaret(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceCaret = (comp, options)=>{\n $dc2zw(\"caret\", comp, options);\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARETLOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $dc2zw(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($2e89c8759dc5e770$var$isX(M)) ret = \"\";\n else if ($2e89c8759dc5e770$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $dc2zw(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $dc2zw(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $dc2zw(\"caret return\", ret);\n return ret;\n });\n};\nconst $2e89c8759dc5e770$var$replaceXRanges = (comp, options)=>{\n $dc2zw(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$2e89c8759dc5e770$var$replaceXRange(c, options)).join(\" \");\n};\nconst $2e89c8759dc5e770$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.XRANGELOOSE] : $2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $dc2zw(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $2e89c8759dc5e770$var$isX(M);\n const xm = xM || $2e89c8759dc5e770$var$isX(m);\n const xp = xm || $2e89c8759dc5e770$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $dc2zw(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $2e89c8759dc5e770$var$replaceStars = (comp, options)=>{\n $dc2zw(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($2e89c8759dc5e770$require$re[$2e89c8759dc5e770$require$t.STAR], \"\");\n};\nconst $2e89c8759dc5e770$var$replaceGTE0 = (comp, options)=>{\n $dc2zw(\"replaceGTE0\", comp, options);\n return comp.trim().replace($2e89c8759dc5e770$require$re[options.includePrerelease ? $2e89c8759dc5e770$require$t.GTE0PRE : $2e89c8759dc5e770$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $2e89c8759dc5e770$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($2e89c8759dc5e770$var$isX(fM)) from = \"\";\n else if ($2e89c8759dc5e770$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($2e89c8759dc5e770$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($2e89c8759dc5e770$var$isX(tM)) to = \"\";\n else if ($2e89c8759dc5e770$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($2e89c8759dc5e770$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $2e89c8759dc5e770$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $dc2zw(set[i].semver);\n if (set[i].semver === $hf4vi.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"tPjHU\", function(module, exports) {\n\"use strict\";\n\nvar $8VtHa = parcelRequire(\"8VtHa\");\nconst $059a8401eb22b5e6$var$MAX = Symbol(\"max\");\nconst $059a8401eb22b5e6$var$LENGTH = Symbol(\"length\");\nconst $059a8401eb22b5e6$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $059a8401eb22b5e6$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $059a8401eb22b5e6$var$MAX_AGE = Symbol(\"maxAge\");\nconst $059a8401eb22b5e6$var$DISPOSE = Symbol(\"dispose\");\nconst $059a8401eb22b5e6$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $059a8401eb22b5e6$var$LRU_LIST = Symbol(\"lruList\");\nconst $059a8401eb22b5e6$var$CACHE = Symbol(\"cache\");\nconst $059a8401eb22b5e6$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $059a8401eb22b5e6$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $059a8401eb22b5e6$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$059a8401eb22b5e6$var$MAX] = options.max || Infinity;\n const lc = options.length || $059a8401eb22b5e6$var$naiveLength;\n this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $059a8401eb22b5e6$var$naiveLength : lc;\n this[$059a8401eb22b5e6$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$059a8401eb22b5e6$var$MAX_AGE] = options.maxAge || 0;\n this[$059a8401eb22b5e6$var$DISPOSE] = options.dispose;\n this[$059a8401eb22b5e6$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$059a8401eb22b5e6$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$059a8401eb22b5e6$var$MAX] = mL || Infinity;\n $059a8401eb22b5e6$var$trim(this);\n }\n get max() {\n return this[$059a8401eb22b5e6$var$MAX];\n }\n set allowStale(allowStale) {\n this[$059a8401eb22b5e6$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$059a8401eb22b5e6$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$059a8401eb22b5e6$var$MAX_AGE] = mA;\n $059a8401eb22b5e6$var$trim(this);\n }\n get maxAge() {\n return this[$059a8401eb22b5e6$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $059a8401eb22b5e6$var$naiveLength;\n if (lC !== this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR]) {\n this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR] = lC;\n this[$059a8401eb22b5e6$var$LENGTH] = 0;\n this[$059a8401eb22b5e6$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$059a8401eb22b5e6$var$LENGTH] += hit.length;\n });\n }\n $059a8401eb22b5e6$var$trim(this);\n }\n get lengthCalculator() {\n return this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$059a8401eb22b5e6$var$LENGTH];\n }\n get itemCount() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$059a8401eb22b5e6$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $059a8401eb22b5e6$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$059a8401eb22b5e6$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $059a8401eb22b5e6$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$059a8401eb22b5e6$var$DISPOSE] && this[$059a8401eb22b5e6$var$LRU_LIST] && this[$059a8401eb22b5e6$var$LRU_LIST].length) this[$059a8401eb22b5e6$var$LRU_LIST].forEach((hit)=>this[$059a8401eb22b5e6$var$DISPOSE](hit.key, hit.value));\n this[$059a8401eb22b5e6$var$CACHE] = new Map() // hash of items by key\n ;\n this[$059a8401eb22b5e6$var$LRU_LIST] = new $8VtHa() // list of items in order of use recency\n ;\n this[$059a8401eb22b5e6$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$059a8401eb22b5e6$var$LRU_LIST].map((hit)=>$059a8401eb22b5e6$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$059a8401eb22b5e6$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$059a8401eb22b5e6$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$059a8401eb22b5e6$var$LENGTH_CALCULATOR](value, key);\n if (this[$059a8401eb22b5e6$var$CACHE].has(key)) {\n if (len > this[$059a8401eb22b5e6$var$MAX]) {\n $059a8401eb22b5e6$var$del(this, this[$059a8401eb22b5e6$var$CACHE].get(key));\n return false;\n }\n const node = this[$059a8401eb22b5e6$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$059a8401eb22b5e6$var$DISPOSE]) {\n if (!this[$059a8401eb22b5e6$var$NO_DISPOSE_ON_SET]) this[$059a8401eb22b5e6$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$059a8401eb22b5e6$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $059a8401eb22b5e6$var$trim(this);\n return true;\n }\n const hit = new $059a8401eb22b5e6$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$059a8401eb22b5e6$var$MAX]) {\n if (this[$059a8401eb22b5e6$var$DISPOSE]) this[$059a8401eb22b5e6$var$DISPOSE](key, value);\n return false;\n }\n this[$059a8401eb22b5e6$var$LENGTH] += hit.length;\n this[$059a8401eb22b5e6$var$LRU_LIST].unshift(hit);\n this[$059a8401eb22b5e6$var$CACHE].set(key, this[$059a8401eb22b5e6$var$LRU_LIST].head);\n $059a8401eb22b5e6$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$059a8401eb22b5e6$var$CACHE].has(key)) return false;\n const hit = this[$059a8401eb22b5e6$var$CACHE].get(key).value;\n return !$059a8401eb22b5e6$var$isStale(this, hit);\n }\n get(key) {\n return $059a8401eb22b5e6$var$get(this, key, true);\n }\n peek(key) {\n return $059a8401eb22b5e6$var$get(this, key, false);\n }\n pop() {\n const node = this[$059a8401eb22b5e6$var$LRU_LIST].tail;\n if (!node) return null;\n $059a8401eb22b5e6$var$del(this, node);\n return node.value;\n }\n del(key) {\n $059a8401eb22b5e6$var$del(this, this[$059a8401eb22b5e6$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$059a8401eb22b5e6$var$CACHE].forEach((value, key)=>$059a8401eb22b5e6$var$get(this, key, false));\n }\n}\nconst $059a8401eb22b5e6$var$get = (self, key, doUse)=>{\n const node = self[$059a8401eb22b5e6$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($059a8401eb22b5e6$var$isStale(self, hit)) {\n $059a8401eb22b5e6$var$del(self, node);\n if (!self[$059a8401eb22b5e6$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$059a8401eb22b5e6$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$059a8401eb22b5e6$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $059a8401eb22b5e6$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$059a8401eb22b5e6$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$059a8401eb22b5e6$var$MAX_AGE] && diff > self[$059a8401eb22b5e6$var$MAX_AGE];\n};\nconst $059a8401eb22b5e6$var$trim = (self)=>{\n if (self[$059a8401eb22b5e6$var$LENGTH] > self[$059a8401eb22b5e6$var$MAX]) for(let walker = self[$059a8401eb22b5e6$var$LRU_LIST].tail; self[$059a8401eb22b5e6$var$LENGTH] > self[$059a8401eb22b5e6$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $059a8401eb22b5e6$var$del(self, walker);\n walker = prev;\n }\n};\nconst $059a8401eb22b5e6$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$059a8401eb22b5e6$var$DISPOSE]) self[$059a8401eb22b5e6$var$DISPOSE](hit.key, hit.value);\n self[$059a8401eb22b5e6$var$LENGTH] -= hit.length;\n self[$059a8401eb22b5e6$var$CACHE].delete(hit.key);\n self[$059a8401eb22b5e6$var$LRU_LIST].removeNode(node);\n }\n};\nclass $059a8401eb22b5e6$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $059a8401eb22b5e6$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($059a8401eb22b5e6$var$isStale(self, hit)) {\n $059a8401eb22b5e6$var$del(self, node);\n if (!self[$059a8401eb22b5e6$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $059a8401eb22b5e6$var$LRUCache;\n\n});\nparcelRegister(\"8VtHa\", function(module, exports) {\n\"use strict\";\nmodule.exports = $67faae78dc454350$var$Yallist;\n$67faae78dc454350$var$Yallist.Node = $67faae78dc454350$var$Node;\n$67faae78dc454350$var$Yallist.create = $67faae78dc454350$var$Yallist;\nfunction $67faae78dc454350$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $67faae78dc454350$var$Yallist)) self = new $67faae78dc454350$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$67faae78dc454350$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$67faae78dc454350$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$67faae78dc454350$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$67faae78dc454350$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$67faae78dc454350$var$push(this, arguments[i]);\n return this.length;\n};\n$67faae78dc454350$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$67faae78dc454350$var$unshift(this, arguments[i]);\n return this.length;\n};\n$67faae78dc454350$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$67faae78dc454350$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$67faae78dc454350$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$67faae78dc454350$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$67faae78dc454350$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $67faae78dc454350$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $67faae78dc454350$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$67faae78dc454350$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$67faae78dc454350$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$67faae78dc454350$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$67faae78dc454350$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$67faae78dc454350$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $67faae78dc454350$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $67faae78dc454350$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $67faae78dc454350$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$67faae78dc454350$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $67faae78dc454350$var$insert(self, node, value) {\n var inserted = node === self.head ? new $67faae78dc454350$var$Node(value, null, node, self) : new $67faae78dc454350$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $67faae78dc454350$var$push(self, item) {\n self.tail = new $67faae78dc454350$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $67faae78dc454350$var$unshift(self, item) {\n self.head = new $67faae78dc454350$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $67faae78dc454350$var$Node(value, prev, next, list) {\n if (!(this instanceof $67faae78dc454350$var$Node)) return new $67faae78dc454350$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"iDH6t\"))($67faae78dc454350$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"iDH6t\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"h0AH5\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $c61ee66e825b833b$var$satisfies = (version, range, options)=>{\n try {\n range = new $3ZIKH(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $c61ee66e825b833b$var$satisfies;\n\n});\n\nparcelRegister(\"iGUY3\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n// Mostly just for testing and legacy API reasons\nconst $d9b856cbb52d7485$var$toComparators = (range, options)=>new $3ZIKH(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $d9b856cbb52d7485$var$toComparators;\n\n});\n\nparcelRegister(\"jpWIo\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $e22de5b256aee447$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $3ZIKH(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $bmedX(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $e22de5b256aee447$var$maxSatisfying;\n\n});\n\nparcelRegister(\"dJyj1\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $9ffa16baebb6172d$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $3ZIKH(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $bmedX(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $9ffa16baebb6172d$var$minSatisfying;\n\n});\n\nparcelRegister(\"9inVR\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\nconst $6c485befcc0d8d86$var$minVersion = (range, loose)=>{\n range = new $3ZIKH(range, loose);\n let minver = new $bmedX(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $bmedX(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $bmedX(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cmfRl(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cmfRl(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $6c485befcc0d8d86$var$minVersion;\n\n});\n\nparcelRegister(\"5wxvo\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $4059ee5dc358195f$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $3ZIKH(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $4059ee5dc358195f$var$validRange;\n\n});\n\nparcelRegister(\"16OoL\", function(module, exports) {\n\nvar $bmedX = parcelRequire(\"bmedX\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\nconst { ANY: $0ced720887f8e111$var$ANY } = $hf4vi;\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $cmfRl = parcelRequire(\"cmfRl\");\n\nvar $9cmQV = parcelRequire(\"9cmQV\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $8dSFQ = parcelRequire(\"8dSFQ\");\nconst $0ced720887f8e111$var$outside = (version, range, hilo, options)=>{\n version = new $bmedX(version, options);\n range = new $3ZIKH(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cmfRl;\n ltefn = $eekMY;\n ltfn = $9cmQV;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $9cmQV;\n ltefn = $8dSFQ;\n ltfn = $cmfRl;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($h0AH5(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $0ced720887f8e111$var$ANY) comparator = new $hf4vi(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $0ced720887f8e111$var$outside;\n\n});\n\nparcelRegister(\"aNIaY\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $16OoL = parcelRequire(\"16OoL\");\nconst $7dd0bf66272f2aa5$var$gtr = (version, range, options)=>$16OoL(version, range, \">\", options);\nmodule.exports = $7dd0bf66272f2aa5$var$gtr;\n\n});\n\nparcelRegister(\"huA22\", function(module, exports) {\n\nvar $16OoL = parcelRequire(\"16OoL\");\n// Determine if version is less than all the versions possible in the range\nconst $cbc1302becc6ade2$var$ltr = (version, range, options)=>$16OoL(version, range, \"<\", options);\nmodule.exports = $cbc1302becc6ade2$var$ltr;\n\n});\n\nparcelRegister(\"hRcmf\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\nconst $d000f8ee70e292e2$var$intersects = (r1, r2, options)=>{\n r1 = new $3ZIKH(r1, options);\n r2 = new $3ZIKH(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $d000f8ee70e292e2$var$intersects;\n\n});\n\nparcelRegister(\"fnXJa\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$dKY2K(a, b, options));\n for (const version of v){\n const included = $h0AH5(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"cVjo2\", function(module, exports) {\n\nvar $3ZIKH = parcelRequire(\"3ZIKH\");\n\nvar $hf4vi = parcelRequire(\"hf4vi\");\nconst { ANY: $9689d8b7ef65728f$var$ANY } = $hf4vi;\n\nvar $h0AH5 = parcelRequire(\"h0AH5\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $9689d8b7ef65728f$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $3ZIKH(sub, options);\n dom = new $3ZIKH(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $9689d8b7ef65728f$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $9689d8b7ef65728f$var$minimumVersionWithPreRelease = [\n new $hf4vi(\">=0.0.0-0\")\n];\nconst $9689d8b7ef65728f$var$minimumVersion = [\n new $hf4vi(\">=0.0.0\")\n];\nconst $9689d8b7ef65728f$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $9689d8b7ef65728f$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $9689d8b7ef65728f$var$ANY) return true;\n else if (options.includePrerelease) sub = $9689d8b7ef65728f$var$minimumVersionWithPreRelease;\n else sub = $9689d8b7ef65728f$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $9689d8b7ef65728f$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $9689d8b7ef65728f$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $9689d8b7ef65728f$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $9689d8b7ef65728f$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $dKY2K(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$h0AH5(eq, String(gt), options)) return null;\n if (lt && !$h0AH5(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$h0AH5(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $9689d8b7ef65728f$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$h0AH5(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $9689d8b7ef65728f$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$h0AH5(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $9689d8b7ef65728f$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $dKY2K(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $9689d8b7ef65728f$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $dKY2K(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $9689d8b7ef65728f$var$subset;\n\n});\n\n\nparcelRegister(\"6afW1\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $47d0099950e01565$export$f8b9fb4db095815b);\n\nasync function $47d0099950e01565$export$f8b9fb4db095815b(path) {\n try {\n await (0, $fnyYE$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $47d0099950e01565$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($fnyYE$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"fQ0Jj\", function(module, exports) {\n\"use strict\";\nvar $b87c474932ac0f16$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($b87c474932ac0f16$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"e19ul\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $50261410344d920a$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $50261410344d920a$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $50261410344d920a$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $fnyYE$path.dirname);\n$parcel$export(module.exports, \"join\", () => $fnyYE$path.join);\n\n\nvar $hImoI = parcelRequire(\"hImoI\");\n\nvar $f2mBC = parcelRequire(\"f2mBC\");\nfunction $50261410344d920a$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $50261410344d920a$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $50261410344d920a$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $fnyYE$path.basename)(e) : (0, $fnyYE$path.basename)(e, (0, $fnyYE$path.extname)(e));\n}\nfunction $50261410344d920a$export$873fead74fe2f1ff(e) {\n return (0, $fnyYE$path.normalize)(e).replace(RegExp((0, $hImoI.default)((0, $fnyYE$path.sep)) + \"$\"), \"\");\n}\nfunction $50261410344d920a$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $50261410344d920a$export$3e333f8cb13439c(e, a) {\n const r = (0, $fnyYE$path.extname)(e), s = `${a}${(0, $fnyYE$path.basename)(e, r)}${r}`;\n return (0, $fnyYE$path.join)((0, $fnyYE$path.dirname)(e), s);\n}\nfunction $50261410344d920a$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $fnyYE$path.extname)(e), s = `${(0, $fnyYE$path.basename)(e, r)}${a}${r}`;\n return (0, $fnyYE$path.join)((0, $fnyYE$path.dirname)(e), s);\n}\nfunction $50261410344d920a$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $50261410344d920a$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $50261410344d920a$export$19c5468f88f6e968(e) {\n const a = (0, $fnyYE$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $50261410344d920a$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($f2mBC)))(e, a);\n}\nfunction $50261410344d920a$export$7d0573375890d05c(e, a) {\n const r = (0, $fnyYE$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $fnyYE$path.sep)) || r === (0, $fnyYE$path.resolve)(e));\n}\nvar $50261410344d920a$var$O = {}, $50261410344d920a$var$R = {};\n$50261410344d920a$var$a($50261410344d920a$var$R, \"name\", ()=>$50261410344d920a$export$a8ff84c12d48cfa6);\nvar $50261410344d920a$var$A = {};\n$50261410344d920a$var$a($50261410344d920a$var$A, \"normalizeTrim\", ()=>$50261410344d920a$export$873fead74fe2f1ff);\nvar $50261410344d920a$var$I = {};\n$50261410344d920a$var$a($50261410344d920a$var$I, \"addExeExt\", ()=>$50261410344d920a$export$2d20c564cade3c93);\nvar $50261410344d920a$var$T = {};\n$50261410344d920a$var$a($50261410344d920a$var$T, \"addNamePrefix\", ()=>$50261410344d920a$export$3e333f8cb13439c);\nvar $50261410344d920a$var$_ = {};\n$50261410344d920a$var$a($50261410344d920a$var$_, \"addNameSuffix\", ()=>$50261410344d920a$export$3b60a3e9bd1aef9d);\nvar $50261410344d920a$var$k = {};\n$50261410344d920a$var$a($50261410344d920a$var$k, \"addShExt\", ()=>$50261410344d920a$export$609be29b80b555e1);\nvar $50261410344d920a$var$M = {};\n$50261410344d920a$var$a($50261410344d920a$var$M, \"addShRelativePrefix\", ()=>$50261410344d920a$export$e1f23f8d3e53fe6);\nvar $50261410344d920a$var$W = {};\n$50261410344d920a$var$a($50261410344d920a$var$W, \"removeExt\", ()=>$50261410344d920a$export$19c5468f88f6e968);\nvar $50261410344d920a$var$q = {};\n$50261410344d920a$var$a($50261410344d920a$var$q, \"replaceExt\", ()=>$50261410344d920a$export$e9c34737ac8e53d2);\nvar $50261410344d920a$var$B = {};\n$50261410344d920a$var$a($50261410344d920a$var$B, \"isPathInside\", ()=>$50261410344d920a$export$7d0573375890d05c), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$R), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$A), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$I), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$T), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$_), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$k), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$M), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$W), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$q), $50261410344d920a$var$e($50261410344d920a$var$O, $50261410344d920a$var$B);\n\n});\nparcelRegister(\"hImoI\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $ce57eb70ef70e8ad$export$2e2bcd8739ae039);\nfunction $ce57eb70ef70e8ad$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"f2mBC\", function(module, exports) {\n\"use strict\";\n\nfunction $af2893f38bb1ffcd$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $fnyYE$path.basename(npath, $fnyYE$path.extname(npath)) + ext;\n var nFilepath = $fnyYE$path.join($fnyYE$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($af2893f38bb1ffcd$var$startsWithSingleDot(npath)) return \".\" + $fnyYE$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $af2893f38bb1ffcd$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $fnyYE$path.sep || first2chars === \"./\";\n}\nmodule.exports = $af2893f38bb1ffcd$var$replaceExt;\n\n});\n\n\nparcelRegister(\"jGHPG\", function(module, exports) {\n\"use strict\";\nvar $e553f0cadbd2b95a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $e553f0cadbd2b95a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $e553f0cadbd2b95a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $e553f0cadbd2b95a$var$__createBinding(result, mod, k);\n }\n $e553f0cadbd2b95a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $e553f0cadbd2b95a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $e553f0cadbd2b95a$var$path = $e553f0cadbd2b95a$var$__importStar($fnyYE$path);\n\nconst $e553f0cadbd2b95a$var$ioUtil = $e553f0cadbd2b95a$var$__importStar((parcelRequire(\"akQoU\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $e553f0cadbd2b95a$var$cp(source, dest, options = {}) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $e553f0cadbd2b95a$var$readCopyOptions(options);\n const destStat = (yield $e553f0cadbd2b95a$var$ioUtil.exists(dest)) ? yield $e553f0cadbd2b95a$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $e553f0cadbd2b95a$var$path.join(dest, $e553f0cadbd2b95a$var$path.basename(source)) : dest;\n if (!(yield $e553f0cadbd2b95a$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $e553f0cadbd2b95a$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $e553f0cadbd2b95a$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($e553f0cadbd2b95a$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $e553f0cadbd2b95a$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $e553f0cadbd2b95a$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $e553f0cadbd2b95a$var$mv(source, dest, options = {}) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $e553f0cadbd2b95a$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $e553f0cadbd2b95a$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $e553f0cadbd2b95a$var$path.join(dest, $e553f0cadbd2b95a$var$path.basename(source));\n destExists = yield $e553f0cadbd2b95a$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $e553f0cadbd2b95a$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $e553f0cadbd2b95a$var$mkdirP($e553f0cadbd2b95a$var$path.dirname(dest));\n yield $e553f0cadbd2b95a$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $e553f0cadbd2b95a$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $e553f0cadbd2b95a$var$rmRF(inputPath) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $e553f0cadbd2b95a$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $e553f0cadbd2b95a$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $e553f0cadbd2b95a$var$mkdirP(fsPath) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok(fsPath, \"a path argument must be provided\");\n yield $e553f0cadbd2b95a$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $e553f0cadbd2b95a$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $e553f0cadbd2b95a$var$which(tool, check) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $e553f0cadbd2b95a$var$which(tool, false);\n if (!result) {\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $e553f0cadbd2b95a$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $e553f0cadbd2b95a$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $e553f0cadbd2b95a$var$findInPath(tool) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($e553f0cadbd2b95a$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($e553f0cadbd2b95a$var$ioUtil.isRooted(tool)) {\n const filePath = yield $e553f0cadbd2b95a$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($e553f0cadbd2b95a$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($e553f0cadbd2b95a$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $e553f0cadbd2b95a$var$ioUtil.tryGetExecutablePath($e553f0cadbd2b95a$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $e553f0cadbd2b95a$var$findInPath;\nfunction $e553f0cadbd2b95a$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $e553f0cadbd2b95a$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $e553f0cadbd2b95a$var$mkdirP(destDir);\n const files = yield $e553f0cadbd2b95a$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $e553f0cadbd2b95a$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $e553f0cadbd2b95a$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $e553f0cadbd2b95a$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $e553f0cadbd2b95a$var$ioUtil.chmod(destDir, (yield $e553f0cadbd2b95a$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $e553f0cadbd2b95a$var$copyFile(srcFile, destFile, force) {\n return $e553f0cadbd2b95a$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $e553f0cadbd2b95a$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $e553f0cadbd2b95a$var$ioUtil.lstat(destFile);\n yield $e553f0cadbd2b95a$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $e553f0cadbd2b95a$var$ioUtil.chmod(destFile, \"0666\");\n yield $e553f0cadbd2b95a$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $e553f0cadbd2b95a$var$ioUtil.readlink(srcFile);\n yield $e553f0cadbd2b95a$var$ioUtil.symlink(symlinkFull, destFile, $e553f0cadbd2b95a$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $e553f0cadbd2b95a$var$ioUtil.exists(destFile)) || force) yield $e553f0cadbd2b95a$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"akQoU\", function(module, exports) {\n\"use strict\";\nvar $78646b550a341622$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $78646b550a341622$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $78646b550a341622$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $78646b550a341622$var$__createBinding(result, mod, k);\n }\n $78646b550a341622$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $78646b550a341622$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $78646b550a341622$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $78646b550a341622$var$fs = $78646b550a341622$var$__importStar($fnyYE$fs);\n\nconst $78646b550a341622$var$path = $78646b550a341622$var$__importStar($fnyYE$path);\n$78646b550a341622$var$_a = $78646b550a341622$var$fs.promises, module.exports.chmod = $78646b550a341622$var$_a.chmod, module.exports.copyFile = $78646b550a341622$var$_a.copyFile, module.exports.lstat = $78646b550a341622$var$_a.lstat, module.exports.mkdir = $78646b550a341622$var$_a.mkdir, module.exports.open = $78646b550a341622$var$_a.open, module.exports.readdir = $78646b550a341622$var$_a.readdir, module.exports.readlink = $78646b550a341622$var$_a.readlink, module.exports.rename = $78646b550a341622$var$_a.rename, module.exports.rm = $78646b550a341622$var$_a.rm, module.exports.rmdir = $78646b550a341622$var$_a.rmdir, module.exports.stat = $78646b550a341622$var$_a.stat, module.exports.symlink = $78646b550a341622$var$_a.symlink, module.exports.unlink = $78646b550a341622$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $78646b550a341622$var$fs.constants.O_RDONLY;\nfunction $78646b550a341622$var$exists(fsPath) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $78646b550a341622$var$exists;\nfunction $78646b550a341622$var$isDirectory(fsPath, useStat = false) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $78646b550a341622$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $78646b550a341622$var$isRooted(p) {\n p = $78646b550a341622$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $78646b550a341622$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $78646b550a341622$var$tryGetExecutablePath(filePath, extensions) {\n return $78646b550a341622$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $78646b550a341622$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($78646b550a341622$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $78646b550a341622$var$path.dirname(filePath);\n const upperName = $78646b550a341622$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $78646b550a341622$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($78646b550a341622$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $78646b550a341622$var$tryGetExecutablePath;\nfunction $78646b550a341622$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $78646b550a341622$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $78646b550a341622$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $78646b550a341622$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"aUW7f\", function(module, exports) {\n\"use strict\";\nvar $7f2c36ee4c1c2579$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7f2c36ee4c1c2579$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7f2c36ee4c1c2579$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7f2c36ee4c1c2579$var$__createBinding(result, mod, k);\n }\n $7f2c36ee4c1c2579$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $7f2c36ee4c1c2579$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $7f2c36ee4c1c2579$var$semver = $7f2c36ee4c1c2579$var$__importStar((parcelRequire(\"1mmqj\")));\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\n\nfunction $7f2c36ee4c1c2579$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $7f2c36ee4c1c2579$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $fnyYE$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $lUL8q.debug(`check ${version} satisfies ${versionSpec}`);\n if ($7f2c36ee4c1c2579$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $lUL8q.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $7f2c36ee4c1c2579$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $lUL8q.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $7f2c36ee4c1c2579$var$_findMatch;\nfunction $7f2c36ee4c1c2579$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $fnyYE$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $fnyYE$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $7f2c36ee4c1c2579$var$_getOsVersion;\nfunction $7f2c36ee4c1c2579$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($fnyYE$fs.existsSync(lsbReleaseFile)) contents = $fnyYE$fs.readFileSync(lsbReleaseFile).toString();\n else if ($fnyYE$fs.existsSync(osReleaseFile)) contents = $fnyYE$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $7f2c36ee4c1c2579$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"1mmqj\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"b4HqL\", function(module, exports) {\n\nvar $djHKf = parcelRequire(\"djHKf\");\n\nvar $CMWjw = parcelRequire(\"CMWjw\");\nfunction $8101c1dee09e6f84$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $djHKf)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $CMWjw(rnds);\n}\nmodule.exports = $8101c1dee09e6f84$var$v4;\n\n});\nparcelRegister(\"djHKf\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $fnyYE$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"CMWjw\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $074983196b00f550$var$byteToHex = [];\nfor(var $074983196b00f550$var$i = 0; $074983196b00f550$var$i < 256; ++$074983196b00f550$var$i)$074983196b00f550$var$byteToHex[$074983196b00f550$var$i] = ($074983196b00f550$var$i + 0x100).toString(16).substr(1);\nfunction $074983196b00f550$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $074983196b00f550$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $074983196b00f550$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"ioM8U\", function(module, exports) {\n\"use strict\";\nvar $d64fd000bc54e123$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d64fd000bc54e123$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d64fd000bc54e123$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d64fd000bc54e123$var$__createBinding(result, mod, k);\n }\n $d64fd000bc54e123$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d64fd000bc54e123$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $d64fd000bc54e123$var$tr = $d64fd000bc54e123$var$__importStar((parcelRequire(\"7Ee0q\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $d64fd000bc54e123$var$exec(commandLine, args, options) {\n return $d64fd000bc54e123$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $d64fd000bc54e123$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $d64fd000bc54e123$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $d64fd000bc54e123$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $d64fd000bc54e123$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $d64fd000bc54e123$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $fnyYE$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $fnyYE$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $d64fd000bc54e123$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $d64fd000bc54e123$var$getExecOutput;\n\n});\nparcelRegister(\"7Ee0q\", function(module, exports) {\n\"use strict\";\nvar $59172219f851c8e5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $59172219f851c8e5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $59172219f851c8e5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $59172219f851c8e5$var$__createBinding(result, mod, k);\n }\n $59172219f851c8e5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $59172219f851c8e5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $59172219f851c8e5$var$os = $59172219f851c8e5$var$__importStar($fnyYE$os);\n\nconst $59172219f851c8e5$var$events = $59172219f851c8e5$var$__importStar($fnyYE$events);\n\nconst $59172219f851c8e5$var$child = $59172219f851c8e5$var$__importStar($fnyYE$child_process);\n\nconst $59172219f851c8e5$var$path = $59172219f851c8e5$var$__importStar($fnyYE$path);\n\nconst $59172219f851c8e5$var$io = $59172219f851c8e5$var$__importStar((parcelRequire(\"jGHPG\")));\n\nconst $59172219f851c8e5$var$ioUtil = $59172219f851c8e5$var$__importStar((parcelRequire(\"akQoU\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $59172219f851c8e5$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $59172219f851c8e5$var$ToolRunner extends $59172219f851c8e5$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($59172219f851c8e5$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $59172219f851c8e5$var$os.EOL.length);\n n = s.indexOf($59172219f851c8e5$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($59172219f851c8e5$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $59172219f851c8e5$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$59172219f851c8e5$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $59172219f851c8e5$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $59172219f851c8e5$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $59172219f851c8e5$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$59172219f851c8e5$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $59172219f851c8e5$var$os.EOL);\n const state = new $59172219f851c8e5$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $59172219f851c8e5$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $59172219f851c8e5$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $59172219f851c8e5$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $59172219f851c8e5$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $59172219f851c8e5$var$argStringToArray;\nclass $59172219f851c8e5$var$ExecState extends $59172219f851c8e5$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $fnyYE$timers.setTimeout($59172219f851c8e5$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"kqI8i\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.e93d39c0.js\")).then(()=>parcelRequire(\"i1n7v\"));\n\n});\n\nparcelRegister(\"jaABp\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.4215b06b.js\")).then(()=>parcelRequire(\"dTPU2\"));\n\n});\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $hapVv = parcelRequire(\"hapVv\");\nvar $4e3c346433ebbc09$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"kspKY\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($4e3c346433ebbc09$exports);\n\n\nvar $34bd17ad1efa4734$exports = {};\n\n$34bd17ad1efa4734$exports = (parcelRequire(\"dl3mv\"));\n\n\nvar $59f03960c4356765$exports = {};\n$59f03960c4356765$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $50315e26c0e27da3$exports = {};\nvar $0e88ae88a43ce51d$exports = {};\n\n$parcel$export($0e88ae88a43ce51d$exports, \"isexe\", () => $0e88ae88a43ce51d$export$35888d6059c232d4);\n$parcel$export($0e88ae88a43ce51d$exports, \"sync\", () => $0e88ae88a43ce51d$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $eYpZW = parcelRequire(\"eYpZW\");\nconst $0e88ae88a43ce51d$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $0e88ae88a43ce51d$var$checkStat(await (0, $eYpZW.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $0e88ae88a43ce51d$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $0e88ae88a43ce51d$var$checkStat((0, $fnyYE$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $0e88ae88a43ce51d$var$checkStat = (stat, options)=>stat.isFile() && $0e88ae88a43ce51d$var$checkMode(stat, options);\nconst $0e88ae88a43ce51d$var$checkMode = (stat, options)=>{\n const myUid = options.uid ?? process.getuid?.();\n const myGroups = options.groups ?? process.getgroups?.() ?? [];\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $d91120341e00e8b1$exports = {};\n\n$parcel$export($d91120341e00e8b1$exports, \"isexe\", () => $d91120341e00e8b1$export$35888d6059c232d4);\n$parcel$export($d91120341e00e8b1$exports, \"sync\", () => $d91120341e00e8b1$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $eYpZW = parcelRequire(\"eYpZW\");\nconst $d91120341e00e8b1$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $d91120341e00e8b1$var$checkStat(await (0, $eYpZW.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $d91120341e00e8b1$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $d91120341e00e8b1$var$checkStat((0, $fnyYE$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $d91120341e00e8b1$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $d91120341e00e8b1$var$checkStat = (stat, path, options)=>stat.isFile() && $d91120341e00e8b1$var$checkPathExt(path, options);\n\n\n\n\nconst $2c6753b9b21a521e$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $2c6753b9b21a521e$var$impl = $2c6753b9b21a521e$var$platform === \"win32\" ? $d91120341e00e8b1$exports : $0e88ae88a43ce51d$exports;\nconst $2c6753b9b21a521e$export$35888d6059c232d4 = $2c6753b9b21a521e$var$impl.isexe;\nconst $2c6753b9b21a521e$export$92d6409d68f0739a = $2c6753b9b21a521e$var$impl.sync;\n\n\nvar $50315e26c0e27da3$require$isexe = $2c6753b9b21a521e$export$35888d6059c232d4;\nvar $50315e26c0e27da3$require$isexeSync = $2c6753b9b21a521e$export$92d6409d68f0739a;\n\nvar $50315e26c0e27da3$require$join = $fnyYE$path.join;\nvar $50315e26c0e27da3$require$delimiter = $fnyYE$path.delimiter;\nvar $50315e26c0e27da3$require$sep = $fnyYE$path.sep;\nvar $50315e26c0e27da3$require$posix = $fnyYE$path.posix;\nconst $50315e26c0e27da3$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $50315e26c0e27da3$var$rSlash = new RegExp(`[${$50315e26c0e27da3$require$posix.sep}${$50315e26c0e27da3$require$sep === $50315e26c0e27da3$require$posix.sep ? \"\" : $50315e26c0e27da3$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $50315e26c0e27da3$var$rRel = new RegExp(`^\\\\.${$50315e26c0e27da3$var$rSlash.source}`);\nconst $50315e26c0e27da3$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $50315e26c0e27da3$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $50315e26c0e27da3$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($50315e26c0e27da3$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$50315e26c0e27da3$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($50315e26c0e27da3$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $50315e26c0e27da3$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $50315e26c0e27da3$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $50315e26c0e27da3$require$join(pathPart, cmd);\n};\nconst $50315e26c0e27da3$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $50315e26c0e27da3$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $50315e26c0e27da3$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $50315e26c0e27da3$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $50315e26c0e27da3$var$getNotFoundError(cmd);\n};\nconst $50315e26c0e27da3$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $50315e26c0e27da3$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $50315e26c0e27da3$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $50315e26c0e27da3$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $50315e26c0e27da3$var$getNotFoundError(cmd);\n};\n$50315e26c0e27da3$exports = $50315e26c0e27da3$var$which;\n$50315e26c0e27da3$var$which.sync = $50315e26c0e27da3$var$whichSync;\n\n\n\n\n\n\nvar $4921eafec1abd3dc$exports = {};\n\"use strict\";\n\nvar $df2913cc641c503d$exports = {};\n\"use strict\";\n\nvar $2a2a7578225e6f8a$exports = {};\n\"use strict\";\n\nvar $22610d5675f6cbfc$exports = {};\nconst $22610d5675f6cbfc$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $22610d5675f6cbfc$var$COLON = $22610d5675f6cbfc$var$isWindows ? \";\" : \":\";\nvar $0ce59135430d56bf$exports = {};\n\nvar $0ce59135430d56bf$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $0ce59135430d56bf$var$core = (parcelRequire(\"ipr2f\"));\nelse $0ce59135430d56bf$var$core = (parcelRequire(\"bn5RY\"));\n$0ce59135430d56bf$exports = $0ce59135430d56bf$var$isexe;\n$0ce59135430d56bf$var$isexe.sync = $0ce59135430d56bf$var$sync;\nfunction $0ce59135430d56bf$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $0ce59135430d56bf$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $0ce59135430d56bf$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $0ce59135430d56bf$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $0ce59135430d56bf$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $22610d5675f6cbfc$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $22610d5675f6cbfc$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $22610d5675f6cbfc$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $22610d5675f6cbfc$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$22610d5675f6cbfc$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $22610d5675f6cbfc$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $22610d5675f6cbfc$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($22610d5675f6cbfc$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $22610d5675f6cbfc$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $22610d5675f6cbfc$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($22610d5675f6cbfc$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $fnyYE$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $0ce59135430d56bf$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $22610d5675f6cbfc$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $22610d5675f6cbfc$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $fnyYE$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $0ce59135430d56bf$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $22610d5675f6cbfc$var$getNotFoundError(cmd);\n};\n$22610d5675f6cbfc$exports = $22610d5675f6cbfc$var$which;\n$22610d5675f6cbfc$var$which.sync = $22610d5675f6cbfc$var$whichSync;\n\n\nvar $1f7ea53efdcc568b$exports = {};\n\"use strict\";\nconst $1f7ea53efdcc568b$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$1f7ea53efdcc568b$exports = $1f7ea53efdcc568b$var$pathKey;\n// TODO: Remove this for the next major release\n$1f7ea53efdcc568b$exports.default = $1f7ea53efdcc568b$var$pathKey;\n\n\nfunction $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $22610d5675f6cbfc$exports.sync(parsed.command, {\n path: env[$1f7ea53efdcc568b$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $fnyYE$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $fnyYE$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $2a2a7578225e6f8a$var$resolveCommand(parsed) {\n return $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed) || $2a2a7578225e6f8a$var$resolveCommandAttempt(parsed, true);\n}\n$2a2a7578225e6f8a$exports = $2a2a7578225e6f8a$var$resolveCommand;\n\n\nvar $8f2050aa08af93ac$export$ae50443ffc990749;\nvar $8f2050aa08af93ac$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $8f2050aa08af93ac$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $8f2050aa08af93ac$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $8f2050aa08af93ac$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($8f2050aa08af93ac$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$8f2050aa08af93ac$export$ae50443ffc990749 = $8f2050aa08af93ac$var$escapeCommand;\n$8f2050aa08af93ac$export$6ea29ee575e3f5ff = $8f2050aa08af93ac$var$escapeArgument;\n\n\nvar $17732a12c00d3843$exports = {};\n\"use strict\";\n\nvar $5e87f691800d5237$exports = {};\n\"use strict\";\nvar $d4a9b9ffe69e7e9d$exports = {};\n\"use strict\";\n$d4a9b9ffe69e7e9d$exports = /^#!(.*)/;\n\n\n$5e87f691800d5237$exports = (string = \"\")=>{\n const match = string.match($d4a9b9ffe69e7e9d$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $17732a12c00d3843$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $fnyYE$fs.openSync(command, \"r\");\n $fnyYE$fs.readSync(fd, buffer, 0, size, 0);\n $fnyYE$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $5e87f691800d5237$exports(buffer.toString());\n}\n$17732a12c00d3843$exports = $17732a12c00d3843$var$readShebang;\n\n\nconst $df2913cc641c503d$var$isWin = process.platform === \"win32\";\nconst $df2913cc641c503d$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $df2913cc641c503d$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $df2913cc641c503d$var$detectShebang(parsed) {\n parsed.file = $2a2a7578225e6f8a$exports(parsed);\n const shebang = parsed.file && $17732a12c00d3843$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $2a2a7578225e6f8a$exports(parsed);\n }\n return parsed.file;\n}\nfunction $df2913cc641c503d$var$parseNonShell(parsed) {\n if (!$df2913cc641c503d$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $df2913cc641c503d$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$df2913cc641c503d$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $df2913cc641c503d$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $fnyYE$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $8f2050aa08af93ac$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$8f2050aa08af93ac$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $df2913cc641c503d$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $df2913cc641c503d$var$parseNonShell(parsed);\n}\n$df2913cc641c503d$exports = $df2913cc641c503d$var$parse;\n\n\nvar $634e1b38a0252685$exports = {};\n\"use strict\";\nconst $634e1b38a0252685$var$isWin = process.platform === \"win32\";\nfunction $634e1b38a0252685$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $634e1b38a0252685$var$hookChildProcess(cp, parsed) {\n if (!$634e1b38a0252685$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $634e1b38a0252685$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $634e1b38a0252685$var$verifyENOENT(status, parsed) {\n if ($634e1b38a0252685$var$isWin && status === 1 && !parsed.file) return $634e1b38a0252685$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $634e1b38a0252685$var$verifyENOENTSync(status, parsed) {\n if ($634e1b38a0252685$var$isWin && status === 1 && !parsed.file) return $634e1b38a0252685$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$634e1b38a0252685$exports = {\n hookChildProcess: $634e1b38a0252685$var$hookChildProcess,\n verifyENOENT: $634e1b38a0252685$var$verifyENOENT,\n verifyENOENTSync: $634e1b38a0252685$var$verifyENOENTSync,\n notFoundError: $634e1b38a0252685$var$notFoundError\n};\n\n\nfunction $4921eafec1abd3dc$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $df2913cc641c503d$exports(command, args, options);\n // Spawn the child process\n const spawned = $fnyYE$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $634e1b38a0252685$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $4921eafec1abd3dc$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $df2913cc641c503d$exports(command, args, options);\n // Spawn the child process\n const result = $fnyYE$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $634e1b38a0252685$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$4921eafec1abd3dc$exports = $4921eafec1abd3dc$var$spawn;\n$4921eafec1abd3dc$exports.spawn = $4921eafec1abd3dc$var$spawn;\n$4921eafec1abd3dc$exports.sync = $4921eafec1abd3dc$var$spawnSync;\n$4921eafec1abd3dc$exports._parse = $df2913cc641c503d$exports;\n$4921eafec1abd3dc$exports._enoent = $634e1b38a0252685$exports;\n\n\nfunction $549c4e352a06b05c$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $d5525f2f15c52c26$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $18f3ecaaed9ee42e$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).env[(0, $d5525f2f15c52c26$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($fnyYE$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($fnyYE$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($fnyYE$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($fnyYE$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($fnyYE$nodepath))).delimiter);\n}\nfunction $18f3ecaaed9ee42e$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $d5525f2f15c52c26$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $18f3ecaaed9ee42e$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $52b2bbacbf2fce64$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$52b2bbacbf2fce64$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $52b2bbacbf2fce64$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $52b2bbacbf2fce64$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $52b2bbacbf2fce64$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $52b2bbacbf2fce64$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $52b2bbacbf2fce64$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $52b2bbacbf2fce64$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $52b2bbacbf2fce64$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $52b2bbacbf2fce64$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$52b2bbacbf2fce64$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $52b2bbacbf2fce64$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$52b2bbacbf2fce64$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $52b2bbacbf2fce64$var$changePrototype(to, from);\n $52b2bbacbf2fce64$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $a04d4844a0ed4819$var$calledFunctions = new WeakMap();\nconst $a04d4844a0ed4819$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $a04d4844a0ed4819$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $52b2bbacbf2fce64$export$2e2bcd8739ae039)(onetime, function_);\n $a04d4844a0ed4819$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$a04d4844a0ed4819$var$onetime.callCount = (function_)=>{\n if (!$a04d4844a0ed4819$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $a04d4844a0ed4819$var$calledFunctions.get(function_);\n};\nvar $a04d4844a0ed4819$export$2e2bcd8739ae039 = $a04d4844a0ed4819$var$onetime;\n\n\n\n\nconst $fa830640b47f21b1$export$e221a98f4fd84d36 = ()=>{\n const length = $fa830640b47f21b1$export$dc8812f2f8882ff4 - $fa830640b47f21b1$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $fa830640b47f21b1$var$getRealtimeSignal);\n};\nconst $fa830640b47f21b1$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $fa830640b47f21b1$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $fa830640b47f21b1$var$SIGRTMIN = 34;\nconst $fa830640b47f21b1$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $882a189e1c91ec96$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $301d564d0cf65684$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $fa830640b47f21b1$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $882a189e1c91ec96$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($301d564d0cf65684$var$normalizeSignal);\n return signals;\n};\nconst $301d564d0cf65684$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $fnyYE$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $12507e11216e36ef$var$getSignalsByName = ()=>{\n const signals = (0, $301d564d0cf65684$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($12507e11216e36ef$var$getSignalByName));\n};\nconst $12507e11216e36ef$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $12507e11216e36ef$export$c3fcb39d6848c78d = $12507e11216e36ef$var$getSignalsByName();\nconst $12507e11216e36ef$var$getSignalsByNumber = ()=>{\n const signals = (0, $301d564d0cf65684$export$c50078d4faa171f0)();\n const length = (0, $fa830640b47f21b1$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$12507e11216e36ef$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $12507e11216e36ef$var$getSignalByNumber = (number, signals)=>{\n const signal = $12507e11216e36ef$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $12507e11216e36ef$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $fnyYE$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $12507e11216e36ef$export$12f57f97a08d2468 = $12507e11216e36ef$var$getSignalsByNumber();\n\n\nconst $308db063cbc0241c$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $308db063cbc0241c$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $12507e11216e36ef$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $308db063cbc0241c$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $f24ec4aeaa88c171$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $f24ec4aeaa88c171$var$hasAlias = (options)=>$f24ec4aeaa88c171$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $f24ec4aeaa88c171$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $f24ec4aeaa88c171$var$aliases.map((alias)=>options[alias]);\n if ($f24ec4aeaa88c171$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$f24ec4aeaa88c171$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $f24ec4aeaa88c171$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $f24ec4aeaa88c171$export$889423b478ae2ba = (options)=>{\n const stdio = $f24ec4aeaa88c171$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $5bcfa55382034716$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $5bcfa55382034716$var$process = $parcel$global.process;\nconst $5bcfa55382034716$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($5bcfa55382034716$var$process)) $5bcfa55382034716$exports = function() {\n return function() {};\n};\nelse {\n var $5bcfa55382034716$var$assert = $fnyYE$assert;\n var $5bcfa55382034716$var$signals = (parcelRequire(\"97KW0\"));\n var $5bcfa55382034716$var$isWin = /^win/i.test($5bcfa55382034716$var$process.platform);\n var $5bcfa55382034716$var$EE = $fnyYE$events;\n /* istanbul ignore if */ if (typeof $5bcfa55382034716$var$EE !== \"function\") $5bcfa55382034716$var$EE = $5bcfa55382034716$var$EE.EventEmitter;\n var $5bcfa55382034716$var$emitter;\n if ($5bcfa55382034716$var$process.__signal_exit_emitter__) $5bcfa55382034716$var$emitter = $5bcfa55382034716$var$process.__signal_exit_emitter__;\n else {\n $5bcfa55382034716$var$emitter = $5bcfa55382034716$var$process.__signal_exit_emitter__ = new $5bcfa55382034716$var$EE();\n $5bcfa55382034716$var$emitter.count = 0;\n $5bcfa55382034716$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$5bcfa55382034716$var$emitter.infinite) {\n $5bcfa55382034716$var$emitter.setMaxListeners(Infinity);\n $5bcfa55382034716$var$emitter.infinite = true;\n }\n $5bcfa55382034716$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return function() {};\n $5bcfa55382034716$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($5bcfa55382034716$var$loaded === false) $5bcfa55382034716$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $5bcfa55382034716$var$emitter.removeListener(ev, cb);\n if ($5bcfa55382034716$var$emitter.listeners(\"exit\").length === 0 && $5bcfa55382034716$var$emitter.listeners(\"afterexit\").length === 0) $5bcfa55382034716$var$unload();\n };\n $5bcfa55382034716$var$emitter.on(ev, cb);\n return remove;\n };\n var $5bcfa55382034716$var$unload = function unload() {\n if (!$5bcfa55382034716$var$loaded || !$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$loaded = false;\n $5bcfa55382034716$var$signals.forEach(function(sig) {\n try {\n $5bcfa55382034716$var$process.removeListener(sig, $5bcfa55382034716$var$sigListeners[sig]);\n } catch (er) {}\n });\n $5bcfa55382034716$var$process.emit = $5bcfa55382034716$var$originalProcessEmit;\n $5bcfa55382034716$var$process.reallyExit = $5bcfa55382034716$var$originalProcessReallyExit;\n $5bcfa55382034716$var$emitter.count -= 1;\n };\n $5bcfa55382034716$exports.unload = $5bcfa55382034716$var$unload;\n var $5bcfa55382034716$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($5bcfa55382034716$var$emitter.emitted[event]) return;\n $5bcfa55382034716$var$emitter.emitted[event] = true;\n $5bcfa55382034716$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $5bcfa55382034716$var$sigListeners = {};\n $5bcfa55382034716$var$signals.forEach(function(sig) {\n $5bcfa55382034716$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $5bcfa55382034716$var$process.listeners(sig);\n if (listeners.length === $5bcfa55382034716$var$emitter.count) {\n $5bcfa55382034716$var$unload();\n $5bcfa55382034716$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($5bcfa55382034716$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $5bcfa55382034716$var$process.kill($5bcfa55382034716$var$process.pid, sig);\n }\n };\n });\n $5bcfa55382034716$exports.signals = function() {\n return $5bcfa55382034716$var$signals;\n };\n var $5bcfa55382034716$var$loaded = false;\n var $5bcfa55382034716$var$load = function load() {\n if ($5bcfa55382034716$var$loaded || !$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $5bcfa55382034716$var$emitter.count += 1;\n $5bcfa55382034716$var$signals = $5bcfa55382034716$var$signals.filter(function(sig) {\n try {\n $5bcfa55382034716$var$process.on(sig, $5bcfa55382034716$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $5bcfa55382034716$var$process.emit = $5bcfa55382034716$var$processEmit;\n $5bcfa55382034716$var$process.reallyExit = $5bcfa55382034716$var$processReallyExit;\n };\n $5bcfa55382034716$exports.load = $5bcfa55382034716$var$load;\n var $5bcfa55382034716$var$originalProcessReallyExit = $5bcfa55382034716$var$process.reallyExit;\n var $5bcfa55382034716$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$5bcfa55382034716$var$processOk($parcel$global.process)) return;\n $5bcfa55382034716$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $5bcfa55382034716$var$emit(\"exit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$originalProcessReallyExit.call($5bcfa55382034716$var$process, $5bcfa55382034716$var$process.exitCode);\n };\n var $5bcfa55382034716$var$originalProcessEmit = $5bcfa55382034716$var$process.emit;\n var $5bcfa55382034716$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $5bcfa55382034716$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $5bcfa55382034716$var$process.exitCode = arg;\n var ret = $5bcfa55382034716$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"exit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ $5bcfa55382034716$var$emit(\"afterexit\", $5bcfa55382034716$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $5bcfa55382034716$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $57cef2d38629c34e$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $57cef2d38629c34e$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $57cef2d38629c34e$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $57cef2d38629c34e$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$57cef2d38629c34e$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $57cef2d38629c34e$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $57cef2d38629c34e$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$57cef2d38629c34e$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $57cef2d38629c34e$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($fnyYE$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $57cef2d38629c34e$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $57cef2d38629c34e$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $57cef2d38629c34e$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $57cef2d38629c34e$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $57cef2d38629c34e$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $57cef2d38629c34e$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $57cef2d38629c34e$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $57cef2d38629c34e$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($5bcfa55382034716$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $2d6c6b95b9de87a9$export$b58a61c52edb4f66(stream) {\n return $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $2d6c6b95b9de87a9$export$ac613ff475b69d05(stream) {\n return $2d6c6b95b9de87a9$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $2d6c6b95b9de87a9$export$f92d8ccfaec172d4(stream) {\n return $2d6c6b95b9de87a9$export$b58a61c52edb4f66(stream) && $2d6c6b95b9de87a9$export$ac613ff475b69d05(stream);\n}\nfunction $2d6c6b95b9de87a9$export$3053cdc6f2e088fd(stream) {\n return $2d6c6b95b9de87a9$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $744049a49fc85c52$var$isExecaChildProcess = (target)=>target instanceof (0, $fnyYE$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $744049a49fc85c52$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $fnyYE$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$744049a49fc85c52$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $744049a49fc85c52$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $744049a49fc85c52$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $349ce5e91c8678de$exports = {};\n\"use strict\";\n\nvar $349ce5e91c8678de$require$BufferConstants = $fnyYE$buffer.constants;\n\n\nvar $349ce5e91c8678de$require$promisify = $fnyYE$util.promisify;\nvar $0a562810758a12db$exports = {};\n\"use strict\";\n\nvar $0a562810758a12db$require$PassThroughStream = $fnyYE$stream.PassThrough;\n$0a562810758a12db$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $0a562810758a12db$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $349ce5e91c8678de$var$streamPipelinePromisified = $349ce5e91c8678de$require$promisify($fnyYE$stream.pipeline);\nclass $349ce5e91c8678de$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $349ce5e91c8678de$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $0a562810758a12db$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $349ce5e91c8678de$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $349ce5e91c8678de$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $349ce5e91c8678de$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$349ce5e91c8678de$exports = $349ce5e91c8678de$var$getStream;\n$349ce5e91c8678de$exports.buffer = (stream, options)=>$349ce5e91c8678de$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$349ce5e91c8678de$exports.array = (stream, options)=>$349ce5e91c8678de$var$getStream(stream, {\n ...options,\n array: true\n });\n$349ce5e91c8678de$exports.MaxBufferError = $349ce5e91c8678de$var$MaxBufferError;\n\n\nvar $7870f1a2cf8ddf98$exports = {};\n\"use strict\";\n\nvar $7870f1a2cf8ddf98$require$PassThrough = $fnyYE$stream.PassThrough;\n$7870f1a2cf8ddf98$exports = function() {\n var sources = [];\n var output = new $7870f1a2cf8ddf98$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $71bc5c93e99bc1be$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $71bc5c93e99bc1be$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $71bc5c93e99bc1be$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.readFileSync)(inputFile);\n};\nconst $71bc5c93e99bc1be$export$7f2f9b6457412b41 = (options)=>{\n const input = $71bc5c93e99bc1be$var$getInputSync(options);\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $71bc5c93e99bc1be$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $71bc5c93e99bc1be$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.createReadStream)(inputFile);\n};\nconst $71bc5c93e99bc1be$export$412508d679148d5c = (spawned, options)=>{\n const input = $71bc5c93e99bc1be$var$getInput(options);\n if (input === undefined) return;\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $71bc5c93e99bc1be$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($7870f1a2cf8ddf98$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $71bc5c93e99bc1be$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $71bc5c93e99bc1be$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $71bc5c93e99bc1be$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $71bc5c93e99bc1be$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $71bc5c93e99bc1be$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $71bc5c93e99bc1be$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $71bc5c93e99bc1be$var$getBufferedData(stdout, stdoutPromise),\n $71bc5c93e99bc1be$var$getBufferedData(stderr, stderrPromise),\n $71bc5c93e99bc1be$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $7eb1badc051e7744$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $7eb1badc051e7744$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($7eb1badc051e7744$var$nativePromisePrototype, property)\n ]);\nconst $7eb1badc051e7744$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $7eb1badc051e7744$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $7eb1badc051e7744$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $374572c9d0f23731$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $374572c9d0f23731$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $374572c9d0f23731$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $374572c9d0f23731$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $374572c9d0f23731$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($374572c9d0f23731$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $374572c9d0f23731$export$ab3db8fe5ebf3a1 = (file, args)=>$374572c9d0f23731$var$normalizeArgs(file, args).join(\" \");\nconst $374572c9d0f23731$export$9d3099014bd914f8 = (file, args)=>$374572c9d0f23731$var$normalizeArgs(file, args).map((arg)=>$374572c9d0f23731$var$escapeArg(arg)).join(\" \");\nconst $374572c9d0f23731$var$SPACES_REGEXP = / +/g;\nconst $374572c9d0f23731$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($374572c9d0f23731$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $374572c9d0f23731$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $fnyYE$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $fnyYE$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $374572c9d0f23731$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $374572c9d0f23731$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($374572c9d0f23731$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $374572c9d0f23731$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$374572c9d0f23731$var$parseExpression(expression)) : [\n $374572c9d0f23731$var$parseExpression(expression)\n ];\n return $374572c9d0f23731$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $374572c9d0f23731$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $374572c9d0f23731$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $82a444b20e7edc56$export$38bb3c1fbaa0bdcf = (0, $fnyYE$nodeutil.debuglog)(\"execa\").enabled;\nconst $82a444b20e7edc56$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $82a444b20e7edc56$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$82a444b20e7edc56$var$padField(date.getHours(), 2)}:${$82a444b20e7edc56$var$padField(date.getMinutes(), 2)}:${$82a444b20e7edc56$var$padField(date.getSeconds(), 2)}.${$82a444b20e7edc56$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $82a444b20e7edc56$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($fnyYE$nodeprocess))).stderr.write(`[${$82a444b20e7edc56$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $bd3d80fab706f490$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $bd3d80fab706f490$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($fnyYE$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $18f3ecaaed9ee42e$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $bd3d80fab706f490$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($4921eafec1abd3dc$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $bd3d80fab706f490$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $82a444b20e7edc56$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $bd3d80fab706f490$var$getEnv(options);\n options.stdio = (0, $f24ec4aeaa88c171$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($fnyYE$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($fnyYE$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $bd3d80fab706f490$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $fnyYE$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $549c4e352a06b05c$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $bd3d80fab706f490$export$db6b1668e3758717(file, args, options) {\n const parsed = $bd3d80fab706f490$var$handleArguments(file, args, options);\n const command = (0, $374572c9d0f23731$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $374572c9d0f23731$export$9d3099014bd914f8)(file, args);\n (0, $82a444b20e7edc56$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $57cef2d38629c34e$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($fnyYE$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $7eb1badc051e7744$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $7eb1badc051e7744$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $57cef2d38629c34e$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $57cef2d38629c34e$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $57cef2d38629c34e$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $57cef2d38629c34e$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $71bc5c93e99bc1be$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $bd3d80fab706f490$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $bd3d80fab706f490$var$handleOutput(parsed.options, stderrResult);\n const all = $bd3d80fab706f490$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a04d4844a0ed4819$export$2e2bcd8739ae039)(handlePromise);\n (0, $71bc5c93e99bc1be$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $71bc5c93e99bc1be$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $744049a49fc85c52$export$14becf8d91886424)(spawned);\n (0, $7eb1badc051e7744$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $bd3d80fab706f490$export$28823a701bb5a12d(file, args, options) {\n const parsed = $bd3d80fab706f490$var$handleArguments(file, args, options);\n const command = (0, $374572c9d0f23731$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $374572c9d0f23731$export$9d3099014bd914f8)(file, args);\n (0, $82a444b20e7edc56$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $71bc5c93e99bc1be$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $bd3d80fab706f490$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $bd3d80fab706f490$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $308db063cbc0241c$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $bd3d80fab706f490$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $bd3d80fab706f490$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$bd3d80fab706f490$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $bd3d80fab706f490$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $bd3d80fab706f490$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $374572c9d0f23731$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $bd3d80fab706f490$export$db6b1668e3758717(file, args, $bd3d80fab706f490$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $374572c9d0f23731$export$4a6ee54de9b0f25d)(templates, expressions);\n return $bd3d80fab706f490$export$28823a701bb5a12d(file, args, $bd3d80fab706f490$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $bd3d80fab706f490$export$3d8c2f653ac9d0b9 = $bd3d80fab706f490$var$create$();\nfunction $bd3d80fab706f490$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $374572c9d0f23731$export$78bcee23e0849f6a)(command);\n return $bd3d80fab706f490$export$db6b1668e3758717(file, args, options);\n}\nfunction $bd3d80fab706f490$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $374572c9d0f23731$export$78bcee23e0849f6a)(command);\n return $bd3d80fab706f490$export$28823a701bb5a12d(file, args, options);\n}\nfunction $bd3d80fab706f490$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $f24ec4aeaa88c171$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $bd3d80fab706f490$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $1e9f9ad269e26aae$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $1e9f9ad269e26aae$export$e3140dc7d0c35e48() {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI);\n}\nfunction $1e9f9ad269e26aae$export$316200228f28b8ce() {\n return $1e9f9ad269e26aae$export$e3140dc7d0c35e48() && $1e9f9ad269e26aae$export$7683bf1311d8252();\n}\nfunction $1e9f9ad269e26aae$export$d976d47922ae9667(command) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $1e9f9ad269e26aae$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $1e9f9ad269e26aae$export$58f152936f209932(program, args = [], execOptions = $1e9f9ad269e26aae$export$151aeb0ade3989e1) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) {\n const command = $1e9f9ad269e26aae$var$getSudoCommand(program, args);\n return (0, $bd3d80fab706f490$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $bd3d80fab706f490$export$28823a701bb5a12d)(program, $1e9f9ad269e26aae$var$quote(args), execOptions);\n}\nfunction $1e9f9ad269e26aae$export$351270479e2eef26(program, args = [], execOptions = $1e9f9ad269e26aae$export$151aeb0ade3989e1) {\n if ($1e9f9ad269e26aae$export$316200228f28b8ce()) {\n const command = $1e9f9ad269e26aae$var$getSudoCommand(program, args);\n return (0, $bd3d80fab706f490$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $bd3d80fab706f490$export$db6b1668e3758717)(program, $1e9f9ad269e26aae$var$quote(args), execOptions);\n}\nfunction $1e9f9ad269e26aae$var$getSudoCommand(program, args) {\n return `sudo ${$1e9f9ad269e26aae$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $1e9f9ad269e26aae$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $7120092f94f12685$var$testFltmc() {\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $7120092f94f12685$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n process.env.systemdrive ?? \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $7120092f94f12685$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $1aae8e03aef537e0$export$36ad181701cee597 = (0, $7120092f94f12685$export$2e2bcd8739ae039);\nconst $1aae8e03aef537e0$export$2ebf12717e6b5bb8 = (0, $1e9f9ad269e26aae$export$e3140dc7d0c35e48);\nfunction $1aae8e03aef537e0$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $1aae8e03aef537e0$export$36ad181701cee597();\n else return (0, $1e9f9ad269e26aae$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $5d373f8b741de762$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $1e9f9ad269e26aae$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($fnyYE$fs))).statSync(path).isDirectory();\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $1e9f9ad269e26aae$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $4575b21c37e83a45$export$3ce714bda98f65f0() {\n if ((0, $1e9f9ad269e26aae$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $fnyYE$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $fnyYE$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $fnyYE$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $4575b21c37e83a45$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $4575b21c37e83a45$export$8312d9eeba321950(path) {\n const maybeHomeDir = $4575b21c37e83a45$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($4575b21c37e83a45$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $b27adcb42a309c31$exports = {};\n\"use strict\";\n\n\nvar $24j9d = parcelRequire(\"24j9d\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $b27adcb42a309c31$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $b27adcb42a309c31$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $b27adcb42a309c31$var$packageJson = $fnyYE$process.env.npm_package_json;\nvar $b27adcb42a309c31$var$userAgent = $fnyYE$process.env.npm_config_user_agent;\nvar $b27adcb42a309c31$var$isNpm6 = Boolean($b27adcb42a309c31$var$userAgent && $b27adcb42a309c31$var$userAgent.startsWith(\"npm\"));\nvar $b27adcb42a309c31$var$isNpm7 = Boolean($b27adcb42a309c31$var$packageJson && $b27adcb42a309c31$var$packageJson.endsWith(\"package.json\"));\nvar $b27adcb42a309c31$var$isNpm = $b27adcb42a309c31$var$isNpm6 || $b27adcb42a309c31$var$isNpm7;\nvar $b27adcb42a309c31$var$isYarn = Boolean($b27adcb42a309c31$var$userAgent && $b27adcb42a309c31$var$userAgent.startsWith(\"yarn\"));\nvar $b27adcb42a309c31$var$isNpmOrYarn = $b27adcb42a309c31$var$isNpm || $b27adcb42a309c31$var$isYarn;\nvar $b27adcb42a309c31$var$homeDirectory = $fnyYE$os.homedir();\nvar $b27adcb42a309c31$var$configDir = process.env.XDG_CONFIG_HOME || $fnyYE$path.join($b27adcb42a309c31$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $b27adcb42a309c31$var$getConfigFile = function(packageName) {\n return $fnyYE$path.join($b27adcb42a309c31$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $b27adcb42a309c31$var$createConfigDir = function() {\n if (!$fnyYE$fs.existsSync($b27adcb42a309c31$var$configDir)) $fnyYE$fs.mkdirSync($b27adcb42a309c31$var$configDir, {\n recursive: true\n });\n};\nvar $b27adcb42a309c31$var$getLastUpdate = function(packageName) {\n var configFile = $b27adcb42a309c31$var$getConfigFile(packageName);\n try {\n if (!$fnyYE$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($fnyYE$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $b27adcb42a309c31$var$saveLastUpdate = function(packageName) {\n var configFile = $b27adcb42a309c31$var$getConfigFile(packageName);\n $fnyYE$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $b27adcb42a309c31$var$getDistVersion = function(packageName, distTag) {\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $b27adcb42a309c31$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $fnyYE$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $b27adcb42a309c31$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $b27adcb42a309c31$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $b27adcb42a309c31$var$createConfigDir();\n lastUpdateCheck = $b27adcb42a309c31$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $b27adcb42a309c31$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $b27adcb42a309c31$var$saveLastUpdate(pkg.name);\n if ($24j9d.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $b27adcb42a309c31$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $b27adcb42a309c31$var$simpleUpdateNotifier = function(args) {\n return $b27adcb42a309c31$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $b27adcb42a309c31$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $b27adcb42a309c31$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $b27adcb42a309c31$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($b27adcb42a309c31$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$b27adcb42a309c31$exports = $b27adcb42a309c31$var$simpleUpdateNotifier;\n\n\nvar $36ad19468a8da7cc$exports = {};\n$36ad19468a8da7cc$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $8f12de6ff658e88d$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($b27adcb42a309c31$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($36ad19468a8da7cc$exports)))\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nfunction $43b63e3f508cec08$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $43b63e3f508cec08$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $43b63e3f508cec08$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $43b63e3f508cec08$var$toArr(opts.string);\n opts.boolean = $43b63e3f508cec08$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $43b63e3f508cec08$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $43b63e3f508cec08$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $ab26416ab1998b9d$var$hasDnfCache = undefined;\nfunction $ab26416ab1998b9d$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($ab26416ab1998b9d$var$hasDnfCache === undefined) $ab26416ab1998b9d$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $ab26416ab1998b9d$var$hasDnfCache;\n}\n\n\n\nlet $01378da92d425308$var$isArchCache = undefined;\nfunction $01378da92d425308$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($01378da92d425308$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $01378da92d425308$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $01378da92d425308$var$isArchCache;\n}\n\n\n\nlet $92d741f963835199$var$isUbuntuCache = undefined;\nfunction $92d741f963835199$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($92d741f963835199$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $92d741f963835199$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $92d741f963835199$var$isUbuntuCache;\n}\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $ed450a52f29dc246$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $ed450a52f29dc246$var$is_posix_os = $fnyYE$os.platform() !== \"win32\";\nconst $ed450a52f29dc246$var$version = $fnyYE$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $ed450a52f29dc246$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $ed450a52f29dc246$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$ed450a52f29dc246$exports = function(given_path) {\n return $ed450a52f29dc246$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $ed450a52f29dc246$var$should_not_escape(...$ed450a52f29dc246$var$windows_version_regex.exec($ed450a52f29dc246$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $32df303eaddee625$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"fQ0Jj\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $32df303eaddee625$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($32df303eaddee625$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $2d2b35cb7d79377d$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $12507e11216e36ef$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $2d2b35cb7d79377d$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $1fcc4334ad29416e$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $1fcc4334ad29416e$var$hasAlias = (options)=>$1fcc4334ad29416e$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $1fcc4334ad29416e$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $1fcc4334ad29416e$var$aliases.map((alias)=>options[alias]);\n if ($1fcc4334ad29416e$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$1fcc4334ad29416e$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $1fcc4334ad29416e$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $1fcc4334ad29416e$export$889423b478ae2ba = (options)=>{\n const stdio = $1fcc4334ad29416e$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $3eb76a003fd13692$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $3eb76a003fd13692$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $3eb76a003fd13692$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $3eb76a003fd13692$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$3eb76a003fd13692$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $3eb76a003fd13692$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $3eb76a003fd13692$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$3eb76a003fd13692$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $3eb76a003fd13692$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($fnyYE$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $3eb76a003fd13692$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $3eb76a003fd13692$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $3eb76a003fd13692$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $3eb76a003fd13692$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $3eb76a003fd13692$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $3eb76a003fd13692$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $3eb76a003fd13692$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $3eb76a003fd13692$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($5bcfa55382034716$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $6d92929d9d6e2535$var$isExecaChildProcess = (target)=>target instanceof (0, $fnyYE$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $6d92929d9d6e2535$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $fnyYE$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$6d92929d9d6e2535$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $2d6c6b95b9de87a9$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $6d92929d9d6e2535$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $6d92929d9d6e2535$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $91d0a6b72dc7a2bf$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $91d0a6b72dc7a2bf$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $91d0a6b72dc7a2bf$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.readFileSync)(inputFile);\n};\nconst $91d0a6b72dc7a2bf$export$7f2f9b6457412b41 = (options)=>{\n const input = $91d0a6b72dc7a2bf$var$getInputSync(options);\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $91d0a6b72dc7a2bf$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $91d0a6b72dc7a2bf$var$validateInputOptions(input);\n return (0, $fnyYE$nodefs.createReadStream)(inputFile);\n};\nconst $91d0a6b72dc7a2bf$export$412508d679148d5c = (spawned, options)=>{\n const input = $91d0a6b72dc7a2bf$var$getInput(options);\n if (input === undefined) return;\n if ((0, $2d6c6b95b9de87a9$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $91d0a6b72dc7a2bf$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($7870f1a2cf8ddf98$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $91d0a6b72dc7a2bf$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $91d0a6b72dc7a2bf$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($349ce5e91c8678de$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $91d0a6b72dc7a2bf$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $91d0a6b72dc7a2bf$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $91d0a6b72dc7a2bf$var$getBufferedData(stdout, stdoutPromise),\n $91d0a6b72dc7a2bf$var$getBufferedData(stderr, stderrPromise),\n $91d0a6b72dc7a2bf$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $d2bfba69adbb5bfe$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $d2bfba69adbb5bfe$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($d2bfba69adbb5bfe$var$nativePromisePrototype, property)\n ]);\nconst $d2bfba69adbb5bfe$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $d2bfba69adbb5bfe$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $d2bfba69adbb5bfe$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $218398de7f05b125$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $218398de7f05b125$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $218398de7f05b125$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $218398de7f05b125$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $218398de7f05b125$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($218398de7f05b125$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $218398de7f05b125$export$ab3db8fe5ebf3a1 = (file, args)=>$218398de7f05b125$var$normalizeArgs(file, args).join(\" \");\nconst $218398de7f05b125$export$9d3099014bd914f8 = (file, args)=>$218398de7f05b125$var$normalizeArgs(file, args).map((arg)=>$218398de7f05b125$var$escapeArg(arg)).join(\" \");\nconst $218398de7f05b125$var$SPACES_REGEXP = / +/g;\nconst $218398de7f05b125$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($218398de7f05b125$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $218398de7f05b125$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $fnyYE$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $fnyYE$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $218398de7f05b125$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $218398de7f05b125$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($218398de7f05b125$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $218398de7f05b125$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$218398de7f05b125$var$parseExpression(expression)) : [\n $218398de7f05b125$var$parseExpression(expression)\n ];\n return $218398de7f05b125$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $218398de7f05b125$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $218398de7f05b125$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $d9b84425ae38ee46$export$38bb3c1fbaa0bdcf = (0, $fnyYE$nodeutil.debuglog)(\"execa\").enabled;\nconst $d9b84425ae38ee46$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $d9b84425ae38ee46$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$d9b84425ae38ee46$var$padField(date.getHours(), 2)}:${$d9b84425ae38ee46$var$padField(date.getMinutes(), 2)}:${$d9b84425ae38ee46$var$padField(date.getSeconds(), 2)}.${$d9b84425ae38ee46$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $d9b84425ae38ee46$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($fnyYE$nodeprocess))).stderr.write(`[${$d9b84425ae38ee46$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $77816da212b6c3e7$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $77816da212b6c3e7$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($fnyYE$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $18f3ecaaed9ee42e$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $77816da212b6c3e7$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($4921eafec1abd3dc$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $77816da212b6c3e7$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($fnyYE$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $d9b84425ae38ee46$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $77816da212b6c3e7$var$getEnv(options);\n options.stdio = (0, $1fcc4334ad29416e$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($fnyYE$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($fnyYE$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $77816da212b6c3e7$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $fnyYE$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $549c4e352a06b05c$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $77816da212b6c3e7$export$db6b1668e3758717(file, args, options) {\n const parsed = $77816da212b6c3e7$var$handleArguments(file, args, options);\n const command = (0, $218398de7f05b125$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $218398de7f05b125$export$9d3099014bd914f8)(file, args);\n (0, $d9b84425ae38ee46$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $3eb76a003fd13692$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($fnyYE$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $d2bfba69adbb5bfe$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $d2bfba69adbb5bfe$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $3eb76a003fd13692$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $3eb76a003fd13692$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $3eb76a003fd13692$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $3eb76a003fd13692$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $91d0a6b72dc7a2bf$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $77816da212b6c3e7$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $77816da212b6c3e7$var$handleOutput(parsed.options, stderrResult);\n const all = $77816da212b6c3e7$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a04d4844a0ed4819$export$2e2bcd8739ae039)(handlePromise);\n (0, $91d0a6b72dc7a2bf$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $91d0a6b72dc7a2bf$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $6d92929d9d6e2535$export$14becf8d91886424)(spawned);\n (0, $d2bfba69adbb5bfe$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $77816da212b6c3e7$export$28823a701bb5a12d(file, args, options) {\n const parsed = $77816da212b6c3e7$var$handleArguments(file, args, options);\n const command = (0, $218398de7f05b125$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $218398de7f05b125$export$9d3099014bd914f8)(file, args);\n (0, $d9b84425ae38ee46$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $91d0a6b72dc7a2bf$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($fnyYE$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $77816da212b6c3e7$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $77816da212b6c3e7$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $2d2b35cb7d79377d$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $77816da212b6c3e7$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $77816da212b6c3e7$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$77816da212b6c3e7$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $77816da212b6c3e7$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $77816da212b6c3e7$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $218398de7f05b125$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $77816da212b6c3e7$export$db6b1668e3758717(file, args, $77816da212b6c3e7$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $218398de7f05b125$export$4a6ee54de9b0f25d)(templates, expressions);\n return $77816da212b6c3e7$export$28823a701bb5a12d(file, args, $77816da212b6c3e7$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $77816da212b6c3e7$export$3d8c2f653ac9d0b9 = $77816da212b6c3e7$var$create$();\nfunction $77816da212b6c3e7$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $218398de7f05b125$export$78bcee23e0849f6a)(command);\n return $77816da212b6c3e7$export$db6b1668e3758717(file, args, options);\n}\nfunction $77816da212b6c3e7$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $218398de7f05b125$export$78bcee23e0849f6a)(command);\n return $77816da212b6c3e7$export$28823a701bb5a12d(file, args, options);\n}\nfunction $77816da212b6c3e7$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $1fcc4334ad29416e$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($fnyYE$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $77816da212b6c3e7$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $a74ade802ba8cfb6$var$powershell;\nfunction $a74ade802ba8cfb6$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $77816da212b6c3e7$export$db6b1668e3758717($a74ade802ba8cfb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $a74ade802ba8cfb6$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $77816da212b6c3e7$export$28823a701bb5a12d($a74ade802ba8cfb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $a74ade802ba8cfb6$export$4dfdd3964d242d20() {\n if ($a74ade802ba8cfb6$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $a74ade802ba8cfb6$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $a74ade802ba8cfb6$var$powershell = maybePowerShell;\n }\n if ($a74ade802ba8cfb6$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $a74ade802ba8cfb6$var$powershell;\n}\n\n\n\nvar $eYpZW = parcelRequire(\"eYpZW\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nconst $8050f2585a3bae5e$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $8050f2585a3bae5e$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $8050f2585a3bae5e$var$defaultAddEnvOptions) {\n const options = {\n ...$8050f2585a3bae5e$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $8050f2585a3bae5e$var$escapeString(valGiven ?? \"\", options.shouldEscapeSpace);\n try {\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $lUL8q.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $lUL8q.exportVariable)(name, val);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n await $8050f2585a3bae5e$var$addEnvSystem(name, val, options);\n }\n else await $8050f2585a3bae5e$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n (0, $lUL8q.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $8050f2585a3bae5e$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($ed450a52f29dc246$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($32df303eaddee625$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $8050f2585a3bae5e$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $8050f2585a3bae5e$var$isIgnoredPath(path) {\n if ($8050f2585a3bae5e$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n const paths = process.env.PATH?.split((0, $fnyYE$path.delimiter)) ?? [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $8050f2585a3bae5e$export$4c25481b843feb0b(path) {\n if ($8050f2585a3bae5e$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $fnyYE$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n (0, $lUL8q.addPath)(path);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n await $8050f2585a3bae5e$var$addPathSystem(path);\n }\n else await $8050f2585a3bae5e$var$addPathSystem(path);\n } catch (err) {\n (0, $g0Mwp.error)(err);\n (0, $lUL8q.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $8050f2585a3bae5e$export$1bbbc3a810c5799d = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $8050f2585a3bae5e$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven ?? \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $lUL8q.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $a74ade802ba8cfb6$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $lUL8q.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $8050f2585a3bae5e$export$7536cc7938378f6c();\n if (options.shouldAddOnlyIfNotDefined) {\n await (0, $eYpZW.appendFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $lUL8q.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n } else {\n await (0, $eYpZW.appendFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $lUL8q.info)(`${name}=\"${val}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $8050f2585a3bae5e$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $a74ade802ba8cfb6$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $lUL8q.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $8050f2585a3bae5e$export$7536cc7938378f6c();\n await (0, $eYpZW.appendFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $lUL8q.info)(`\"${path}\" was added to \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $8050f2585a3bae5e$var$setupCppInProfile_called = false;\nasync function $8050f2585a3bae5e$export$7536cc7938378f6c() {\n if ($8050f2585a3bae5e$var$setupCppInProfile_called) return;\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\" ]]; then source \"${$8050f2585a3bae5e$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n await Promise.all([\n $8050f2585a3bae5e$var$addCpprcHeader(),\n $8050f2585a3bae5e$var$sourceCpprcInProfile(source_cpprc_string),\n $8050f2585a3bae5e$var$sourceCpprcInBashrc(source_cpprc_string)\n ]);\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $8050f2585a3bae5e$var$setupCppInProfile_called = true;\n}\nasync function $8050f2585a3bae5e$var$addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $6afW1.pathExists)($8050f2585a3bae5e$export$1bbbc3a810c5799d)) {\n const cpprc_content = await (0, $eYpZW.readFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await (0, $eYpZW.appendFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, `\\n${cpprc_header}\\n`);\n (0, $lUL8q.info)(`Added ${cpprc_header} to ${$8050f2585a3bae5e$export$1bbbc3a810c5799d}`);\n }\n }\n}\nasync function $8050f2585a3bae5e$var$sourceCpprcInBashrc(source_cpprc_string) {\n const bashrc_path = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $6afW1.pathExists)(bashrc_path)) {\n const bashrcContent = await (0, $eYpZW.readFile)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n await (0, $eYpZW.appendFile)(bashrc_path, source_cpprc_string);\n (0, $lUL8q.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n}\nasync function $8050f2585a3bae5e$var$sourceCpprcInProfile(source_cpprc_string) {\n const profile_path = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $6afW1.pathExists)(profile_path)) {\n const profileContent = await (0, $eYpZW.readFile)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n await (0, $eYpZW.appendFile)(profile_path, source_cpprc_string);\n (0, $lUL8q.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n}\nasync function $8050f2585a3bae5e$export$ca46151966bee7ba() {\n if (await (0, $6afW1.pathExists)($8050f2585a3bae5e$export$1bbbc3a810c5799d)) {\n const entries = (await (0, $eYpZW.readFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, \"utf-8\")).split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n await (0, $eYpZW.writeFile)($8050f2585a3bae5e$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $5d373f8b741de762$export$4718e061a205eab)($8050f2585a3bae5e$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $hImoI = parcelRequire(\"hImoI\");\n\n\nconst { appendFile: $c7e2f37817c8297c$var$appendFile } = (0, $fnyYE$fs.promises);\n/* eslint-disable require-atomic-updates */ let $c7e2f37817c8297c$var$didUpdate = false;\nlet $c7e2f37817c8297c$var$didInit = false;\nconst $c7e2f37817c8297c$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $c7e2f37817c8297c$export$d73dc343f5abf26(packages, update = false) {\n const apt = $c7e2f37817c8297c$var$getApt();\n for (const { name: name, version: version } of packages)(0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$c7e2f37817c8297c$var$didUpdate || update) {\n $c7e2f37817c8297c$var$updateRepos(apt);\n $c7e2f37817c8297c$var$didUpdate = true;\n }\n if (!$c7e2f37817c8297c$var$didInit) {\n await $c7e2f37817c8297c$var$initApt(apt);\n $c7e2f37817c8297c$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>pack.repositories ?? []))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $c7e2f37817c8297c$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$c7e2f37817c8297c$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($c7e2f37817c8297c$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $g0Mwp.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $c7e2f37817c8297c$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($c7e2f37817c8297c$export$e6e2160a140a491e || ($c7e2f37817c8297c$export$e6e2160a140a491e = {}));\nasync function $c7e2f37817c8297c$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $hImoI.default)(name)}-${(0, $hImoI.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $c7e2f37817c8297c$var$getAptArg(name, version) {\n const package_type = await $c7e2f37817c8297c$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`);\n }\n}\nfunction $c7e2f37817c8297c$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $c7e2f37817c8297c$var$getApt() {\n let apt;\n if ($c7e2f37817c8297c$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $c7e2f37817c8297c$var$updateRepos(apt) {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $c7e2f37817c8297c$var$initApt(apt) {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $c7e2f37817c8297c$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $c7e2f37817c8297c$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $c7e2f37817c8297c$var$initGpg() {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $c7e2f37817c8297c$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6afW1.pathExists)(fileName)) {\n $c7e2f37817c8297c$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $c7e2f37817c8297c$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6afW1.pathExists)(fileName)) {\n $c7e2f37817c8297c$var$initGpg();\n await $c7e2f37817c8297c$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $c7e2f37817c8297c$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $l5aZl.GITHUB_ACTIONS) return (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $8050f2585a3bae5e$export$7536cc7938378f6c)();\n return $c7e2f37817c8297c$var$appendFile((0, $8050f2585a3bae5e$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $c7e2f37817c8297c$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nvar $jGHPG = parcelRequire(\"jGHPG\");\n\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/* eslint-disable require-atomic-updates */ let $b898747961832fe2$var$binDir;\nasync function $b898747961832fe2$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $b898747961832fe2$var$binDir === \"string\") return {\n binDir: $b898747961832fe2$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $b898747961832fe2$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $b898747961832fe2$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($fnyYE$path))).join((0, $fnyYE$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $jGHPG.mkdirP)(brewTempDirectory);\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $fnyYE$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $fnyYE$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $b898747961832fe2$var$binDir = $b898747961832fe2$export$cba19b0564b654bf();\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)($b898747961832fe2$var$binDir);\n return {\n binDir: $b898747961832fe2$var$binDir\n };\n}\nfunction $b898747961832fe2$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $479118dccc1788e1$var$hasBrew = false;\nasync function $479118dccc1788e1$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $lUL8q.info)(`Installing ${name} ${version ?? \"\"} via brew`);\n if (!$479118dccc1788e1$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $b898747961832fe2$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $479118dccc1788e1$var$hasBrew = true;\n }\n const binDir = (0, $b898747961832fe2$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)((0, $e19ul.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nlet $f06ab0c228dc75ce$var$binDir;\nasync function $f06ab0c228dc75ce$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $f06ab0c228dc75ce$var$binDir === \"string\") return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $f06ab0c228dc75ce$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeChoco !== null) $f06ab0c228dc75ce$var$binDir = (0, $e19ul.dirname)(maybeChoco);\n else $f06ab0c228dc75ce$var$binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $6afW1.pathExists)($f06ab0c228dc75ce$var$binDir)) return {\n binDir: $f06ab0c228dc75ce$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $173db03f510746e0$var$hasChoco = false;\nasync function $173db03f510746e0$export$9f6912bc890040b2(name, version, args = []) {\n (0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via chocolatey`);\n if (!$173db03f510746e0$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $f06ab0c228dc75ce$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $173db03f510746e0$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $g0Mwp.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nasync function $1819dff75b0e473e$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$1819dff75b0e473e$var$getDnfArg(pack.name, pack.version)));\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $1819dff75b0e473e$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $g0Mwp.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $6c882e7c88e29bec$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $c7e2f37817c8297c$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n/* eslint-disable require-atomic-updates */ let $351111ae1a9a89f6$var$didUpdate = false;\nlet $351111ae1a9a89f6$var$didInit = false;\nasync function $351111ae1a9a89f6$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $g0Mwp.info)(`Installing ${name} ${version ?? \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$351111ae1a9a89f6$var$didUpdate && aur !== \"yay\") {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $351111ae1a9a89f6$var$didUpdate = true;\n }\n // install base-devel\n if (!$351111ae1a9a89f6$var$didInit && aur !== \"yay\") {\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $351111ae1a9a89f6$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $bd3d80fab706f490$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $1e9f9ad269e26aae$export$58f152936f209932)(aur ?? pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $351111ae1a9a89f6$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $g0Mwp.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $351111ae1a9a89f6$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $351111ae1a9a89f6$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($351111ae1a9a89f6$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $c04ea7570e5d5658$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $ad6b822883344ac4$exports = {};\n\nvar $ad6b822883344ac4$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $ad6b822883344ac4$var$__createBinding = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ad6b822883344ac4$var$__setModuleDefault = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ad6b822883344ac4$var$__importStar = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ad6b822883344ac4$var$__createBinding(result, mod, k);\n }\n $ad6b822883344ac4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ad6b822883344ac4$var$__awaiter = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $ad6b822883344ac4$var$__importDefault = $ad6b822883344ac4$exports && $ad6b822883344ac4$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($ad6b822883344ac4$exports, \"__esModule\", {\n value: true\n});\n$ad6b822883344ac4$exports.evaluateVersions = $ad6b822883344ac4$exports.isExplicitVersion = $ad6b822883344ac4$exports.findFromManifest = $ad6b822883344ac4$exports.getManifestFromRepo = $ad6b822883344ac4$exports.findAllVersions = $ad6b822883344ac4$exports.find = $ad6b822883344ac4$exports.cacheFile = $ad6b822883344ac4$exports.cacheDir = $ad6b822883344ac4$exports.extractZip = $ad6b822883344ac4$exports.extractXar = $ad6b822883344ac4$exports.extractTar = $ad6b822883344ac4$exports.extract7z = $ad6b822883344ac4$exports.downloadTool = $ad6b822883344ac4$exports.HTTPError = void 0;\n\nconst $ad6b822883344ac4$var$core = $ad6b822883344ac4$var$__importStar((parcelRequire(\"lUL8q\")));\n\nconst $ad6b822883344ac4$var$io = $ad6b822883344ac4$var$__importStar((parcelRequire(\"jGHPG\")));\n\nconst $ad6b822883344ac4$var$fs = $ad6b822883344ac4$var$__importStar($fnyYE$fs);\n\nconst $ad6b822883344ac4$var$mm = $ad6b822883344ac4$var$__importStar((parcelRequire(\"aUW7f\")));\n\nconst $ad6b822883344ac4$var$os = $ad6b822883344ac4$var$__importStar($fnyYE$os);\n\nconst $ad6b822883344ac4$var$path = $ad6b822883344ac4$var$__importStar($fnyYE$path);\n\nconst $ad6b822883344ac4$var$httpm = $ad6b822883344ac4$var$__importStar((parcelRequire(\"l6zH0\")));\n\nconst $ad6b822883344ac4$var$semver = $ad6b822883344ac4$var$__importStar((parcelRequire(\"1mmqj\")));\n\nconst $ad6b822883344ac4$var$stream = $ad6b822883344ac4$var$__importStar($fnyYE$stream);\n\nconst $ad6b822883344ac4$var$util = $ad6b822883344ac4$var$__importStar($fnyYE$util);\n\n\nconst $ad6b822883344ac4$var$v4_1 = $ad6b822883344ac4$var$__importDefault((parcelRequire(\"b4HqL\")));\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\nvar $2975b776a90b2b1b$exports = {};\n\"use strict\";\nvar $2975b776a90b2b1b$var$__createBinding = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $2975b776a90b2b1b$var$__setModuleDefault = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $2975b776a90b2b1b$var$__importStar = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $2975b776a90b2b1b$var$__createBinding(result, mod, k);\n }\n $2975b776a90b2b1b$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $2975b776a90b2b1b$var$__awaiter = $2975b776a90b2b1b$exports && $2975b776a90b2b1b$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($2975b776a90b2b1b$exports, \"__esModule\", {\n value: true\n});\n$2975b776a90b2b1b$exports.RetryHelper = void 0;\n\nconst $2975b776a90b2b1b$var$core = $2975b776a90b2b1b$var$__importStar((parcelRequire(\"lUL8q\")));\n/**\n * Internal class for retries\n */ class $2975b776a90b2b1b$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $2975b776a90b2b1b$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $2975b776a90b2b1b$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $2975b776a90b2b1b$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $2975b776a90b2b1b$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$2975b776a90b2b1b$exports.RetryHelper = $2975b776a90b2b1b$var$RetryHelper;\n\n\nclass $ad6b822883344ac4$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$ad6b822883344ac4$exports.HTTPError = $ad6b822883344ac4$var$HTTPError;\nconst $ad6b822883344ac4$var$IS_WINDOWS = process.platform === \"win32\";\nconst $ad6b822883344ac4$var$IS_MAC = process.platform === \"darwin\";\nconst $ad6b822883344ac4$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $ad6b822883344ac4$var$downloadTool(url, dest, auth, headers) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getTempDirectory(), $ad6b822883344ac4$var$v4_1.default());\n yield $ad6b822883344ac4$var$io.mkdirP($ad6b822883344ac4$var$path.dirname(dest));\n $ad6b822883344ac4$var$core.debug(`Downloading ${url}`);\n $ad6b822883344ac4$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $2975b776a90b2b1b$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n return yield $ad6b822883344ac4$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $ad6b822883344ac4$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$ad6b822883344ac4$exports.downloadTool = $ad6b822883344ac4$var$downloadTool;\nfunction $ad6b822883344ac4$var$downloadToolAttempt(url, dest, auth, headers) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if ($ad6b822883344ac4$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $ad6b822883344ac4$var$httpm.HttpClient($ad6b822883344ac4$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $ad6b822883344ac4$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $ad6b822883344ac4$var$HTTPError(response.message.statusCode);\n $ad6b822883344ac4$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $ad6b822883344ac4$var$util.promisify($ad6b822883344ac4$var$stream.pipeline);\n const responseMessageFactory = $ad6b822883344ac4$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $ad6b822883344ac4$var$fs.createWriteStream(dest));\n $ad6b822883344ac4$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $ad6b822883344ac4$var$core.debug(\"download failed\");\n try {\n yield $ad6b822883344ac4$var$io.rmRF(dest);\n } catch (err) {\n $ad6b822883344ac4$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extract7z(file, dest, _7zPath) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok($ad6b822883344ac4$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $fnyYE$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $ad6b822883344ac4$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $ioM8U.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $ad6b822883344ac4$var$io.which(\"powershell\", true);\n yield $ioM8U.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extract7z = $ad6b822883344ac4$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractTar(file, dest, flags = \"xz\") {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $ad6b822883344ac4$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $ioM8U.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $ad6b822883344ac4$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($ad6b822883344ac4$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($ad6b822883344ac4$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $ioM8U.exec(`tar`, args);\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractTar = $ad6b822883344ac4$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractXar(file, dest, flags = []) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n $fnyYE$assert.ok($ad6b822883344ac4$var$IS_MAC, \"extractXar() not supported on current OS\");\n $fnyYE$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($ad6b822883344ac4$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $ad6b822883344ac4$var$io.which(\"xar\", true);\n yield $ioM8U.exec(`\"${xarPath}\"`, $ad6b822883344ac4$var$_unique(args));\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractXar = $ad6b822883344ac4$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $ad6b822883344ac4$var$extractZip(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $ad6b822883344ac4$var$_createExtractFolder(dest);\n if ($ad6b822883344ac4$var$IS_WINDOWS) yield $ad6b822883344ac4$var$extractZipWin(file, dest);\n else yield $ad6b822883344ac4$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$ad6b822883344ac4$exports.extractZip = $ad6b822883344ac4$var$extractZip;\nfunction $ad6b822883344ac4$var$extractZipWin(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $ad6b822883344ac4$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $ad6b822883344ac4$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $ioM8U.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $ad6b822883344ac4$var$io.which(\"powershell\", true);\n $ad6b822883344ac4$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $ioM8U.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $ad6b822883344ac4$var$extractZipNix(file, dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $ad6b822883344ac4$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$ad6b822883344ac4$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $ioM8U.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ad6b822883344ac4$var$cacheDir(sourceDir, tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n version = $ad6b822883344ac4$var$semver.clean(version) || version;\n arch = arch || $ad6b822883344ac4$var$os.arch();\n $ad6b822883344ac4$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ad6b822883344ac4$var$core.debug(`source dir: ${sourceDir}`);\n if (!$ad6b822883344ac4$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $ad6b822883344ac4$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $ad6b822883344ac4$var$fs.readdirSync(sourceDir)){\n const s = $ad6b822883344ac4$var$path.join(sourceDir, itemName);\n yield $ad6b822883344ac4$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $ad6b822883344ac4$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$ad6b822883344ac4$exports.cacheDir = $ad6b822883344ac4$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ad6b822883344ac4$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n version = $ad6b822883344ac4$var$semver.clean(version) || version;\n arch = arch || $ad6b822883344ac4$var$os.arch();\n $ad6b822883344ac4$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ad6b822883344ac4$var$core.debug(`source file: ${sourceFile}`);\n if (!$ad6b822883344ac4$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $ad6b822883344ac4$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $ad6b822883344ac4$var$path.join(destFolder, targetFile);\n $ad6b822883344ac4$var$core.debug(`destination file ${destPath}`);\n yield $ad6b822883344ac4$var$io.cp(sourceFile, destPath);\n // write .complete\n $ad6b822883344ac4$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$ad6b822883344ac4$exports.cacheFile = $ad6b822883344ac4$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ad6b822883344ac4$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $ad6b822883344ac4$var$os.arch();\n // attempt to resolve an explicit version\n if (!$ad6b822883344ac4$var$isExplicitVersion(versionSpec)) {\n const localVersions = $ad6b822883344ac4$var$findAllVersions(toolName, arch);\n const match = $ad6b822883344ac4$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $ad6b822883344ac4$var$semver.clean(versionSpec) || \"\";\n const cachePath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $ad6b822883344ac4$var$core.debug(`checking cache: ${cachePath}`);\n if ($ad6b822883344ac4$var$fs.existsSync(cachePath) && $ad6b822883344ac4$var$fs.existsSync(`${cachePath}.complete`)) {\n $ad6b822883344ac4$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $ad6b822883344ac4$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$ad6b822883344ac4$exports.find = $ad6b822883344ac4$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ad6b822883344ac4$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $ad6b822883344ac4$var$os.arch();\n const toolPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), toolName);\n if ($ad6b822883344ac4$var$fs.existsSync(toolPath)) {\n const children = $ad6b822883344ac4$var$fs.readdirSync(toolPath);\n for (const child of children)if ($ad6b822883344ac4$var$isExplicitVersion(child)) {\n const fullPath = $ad6b822883344ac4$var$path.join(toolPath, child, arch || \"\");\n if ($ad6b822883344ac4$var$fs.existsSync(fullPath) && $ad6b822883344ac4$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$ad6b822883344ac4$exports.findAllVersions = $ad6b822883344ac4$var$findAllVersions;\nfunction $ad6b822883344ac4$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $ad6b822883344ac4$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $ad6b822883344ac4$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $ad6b822883344ac4$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$ad6b822883344ac4$exports.getManifestFromRepo = $ad6b822883344ac4$var$getManifestFromRepo;\nfunction $ad6b822883344ac4$var$findFromManifest(versionSpec, stable, manifest, archFilter = $ad6b822883344ac4$var$os.arch()) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $ad6b822883344ac4$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$ad6b822883344ac4$exports.findFromManifest = $ad6b822883344ac4$var$findFromManifest;\nfunction $ad6b822883344ac4$var$_createExtractFolder(dest) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getTempDirectory(), $ad6b822883344ac4$var$v4_1.default());\n yield $ad6b822883344ac4$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $ad6b822883344ac4$var$_createToolPath(tool, version, arch) {\n return $ad6b822883344ac4$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), tool, $ad6b822883344ac4$var$semver.clean(version) || version, arch || \"\");\n $ad6b822883344ac4$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $ad6b822883344ac4$var$io.rmRF(folderPath);\n yield $ad6b822883344ac4$var$io.rmRF(markerPath);\n yield $ad6b822883344ac4$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $ad6b822883344ac4$var$_completeToolPath(tool, version, arch) {\n const folderPath = $ad6b822883344ac4$var$path.join($ad6b822883344ac4$var$_getCacheDirectory(), tool, $ad6b822883344ac4$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $ad6b822883344ac4$var$fs.writeFileSync(markerPath, \"\");\n $ad6b822883344ac4$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $ad6b822883344ac4$var$isExplicitVersion(versionSpec) {\n const c = $ad6b822883344ac4$var$semver.clean(versionSpec) || \"\";\n $ad6b822883344ac4$var$core.debug(`isExplicit: ${c}`);\n const valid = $ad6b822883344ac4$var$semver.valid(c) != null;\n $ad6b822883344ac4$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$ad6b822883344ac4$exports.isExplicitVersion = $ad6b822883344ac4$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $ad6b822883344ac4$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $ad6b822883344ac4$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($ad6b822883344ac4$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $ad6b822883344ac4$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $ad6b822883344ac4$var$core.debug(`matched: ${version}`);\n else $ad6b822883344ac4$var$core.debug(\"match not found\");\n return version;\n}\n$ad6b822883344ac4$exports.evaluateVersions = $ad6b822883344ac4$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $ad6b822883344ac4$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $fnyYE$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $ad6b822883344ac4$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $fnyYE$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $ad6b822883344ac4$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $ad6b822883344ac4$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\nvar $jGHPG = parcelRequire(\"jGHPG\");\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\n\n\n\n\n\n\n\nfunction $13e8dd9676c43513$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $e9ff4d4a41a45dd8$var$sevenZip;\nasync function $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest) {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(await $e9ff4d4a41a45dd8$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $5d373f8b741de762$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $e9ff4d4a41a45dd8$var$getSevenZip() {\n if ($e9ff4d4a41a45dd8$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $13e8dd9676c43513$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $e9ff4d4a41a45dd8$var$sevenZip = \"7z\";\n }\n return $e9ff4d4a41a45dd8$var$sevenZip;\n}\nfunction $e9ff4d4a41a45dd8$export$7949938b2681a4f0(file, dest) {\n return $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest);\n}\nfunction $e9ff4d4a41a45dd8$export$6411c5cbab21135b(file, dest) {\n return $e9ff4d4a41a45dd8$export$eecfe186811d4a20(file, dest);\n}\nasync function $e9ff4d4a41a45dd8$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $jGHPG.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $g0Mwp.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $5d373f8b741de762$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\nvar $117e61005623f281$exports = {};\n\"use strict\";\nObject.defineProperty($117e61005623f281$exports, \"__esModule\", {\n value: true\n});\n$117e61005623f281$exports.retryAsPromised = $117e61005623f281$exports.TimeoutError = void 0;\nclass $117e61005623f281$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$117e61005623f281$exports.TimeoutError = $117e61005623f281$var$TimeoutError;\nfunction $117e61005623f281$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $117e61005623f281$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $117e61005623f281$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $117e61005623f281$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $117e61005623f281$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $117e61005623f281$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$117e61005623f281$exports.retryAsPromised = $117e61005623f281$var$retryAsPromised;\n$117e61005623f281$exports.default = $117e61005623f281$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $ca25e7d546c09dd0$var$didInit = false;\nasync function $ca25e7d546c09dd0$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $g0Mwp.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? (0, $fnyYE$os.tmpdir)();\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? (0, $e19ul.join)((0, $fnyYE$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $l5aZl.GITHUB_ACTIONS) try {\n const dir = (0, $ad6b822883344ac4$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $e19ul.join)(dir, extractedFolderName);\n const binDir = (0, $e19ul.join)(installDir, binRelativeDir);\n if (await (0, $6afW1.pathExists)((0, $e19ul.join)(binDir, binFileName))) {\n (0, $g0Mwp.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $e19ul.join)(setupDir, extractedFolderName);\n const binDir = (0, $e19ul.join)(installDir, binRelativeDir);\n const binFile = (0, $e19ul.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $6afW1.pathExists)(binDir),\n (0, $6afW1.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $g0Mwp.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($117e61005623f281$exports)))(()=>{\n return (0, $ad6b822883344ac4$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $g0Mwp.info)(err)\n });\n if (!$ca25e7d546c09dd0$var$didInit) {\n (0, $g0Mwp.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $ca25e7d546c09dd0$var$didInit = true;\n }\n (0, $g0Mwp.info)(`Extracting ${downloaded} to ${setupDir}`);\n await extractFunction?.(downloaded, setupDir);\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $g0Mwp.info)(`Add ${binDir} to PATH`);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $l5aZl.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $ad6b822883344ac4$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $4843a8590048fdb7$var$getCmakePackageInfo(version, platform, arch) {\n const semVersion = (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $4843a8590048fdb7$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"cmake\", version, $4843a8590048fdb7$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $e1c8114ccf331d29$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $e1c8114ccf331d29$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $e1c8114ccf331d29$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $e1c8114ccf331d29$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $e1c8114ccf331d29$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$e1c8114ccf331d29$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $e1c8114ccf331d29$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $e1c8114ccf331d29$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $e1c8114ccf331d29$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $e1c8114ccf331d29$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $e1c8114ccf331d29$var$cloneArray(this.keys),\n size: this.size,\n values: $e1c8114ccf331d29$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $e1c8114ccf331d29$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($e1c8114ccf331d29$var$isMemoized(fn)) return $e1c8114ccf331d29$export$2e2bcd8739ae039(fn.fn, $e1c8114ccf331d29$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $e1c8114ccf331d29$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $e1c8114ccf331d29$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $e1c8114ccf331d29$var$getCustomOptions(options));\n var cache = new $e1c8114ccf331d29$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $e1c8114ccf331d29$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $e1c8114ccf331d29$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $03133746bc7c4255$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $fnyYE$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $fnyYE$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $fnyYE$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $fnyYE$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $cf131c133eb79221$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $fnyYE$path.dirname)(path);\n const opts = {\n ...(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $cf131c133eb79221$export$fa6f1b792dc805a5(path, opts, $cf131c133eb79221$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $cf131c133eb79221$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $cf131c133eb79221$export$96a3a6083628c9d8(parent, opts).then((made)=>$cf131c133eb79221$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $cf131c133eb79221$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461(opts, (0, $fnyYE$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $f15e325e2e1c3cd0$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $f15e325e2e1c3cd0$export$5bbea51519185a10(opts, (0, $fnyYE$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $511b2b7043ca8938$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $f15e325e2e1c3cd0$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $cf131c133eb79221$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $511b2b7043ca8938$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $fnyYE$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $f15e325e2e1c3cd0$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $cf131c133eb79221$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $511b2b7043ca8938$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $093f39a65ae5d778$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $093f39a65ae5d778$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $fnyYE$path.resolve)(path);\n if ($093f39a65ae5d778$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $fnyYE$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $178d0e351594f127$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $178d0e351594f127$var$versArr = $178d0e351594f127$var$version.replace(/^v/, \"\").split(\".\");\nconst $178d0e351594f127$var$hasNative = +$178d0e351594f127$var$versArr[0] > 10 || +$178d0e351594f127$var$versArr[0] === 10 && +$178d0e351594f127$var$versArr[1] >= 12;\nconst $178d0e351594f127$export$f32201cb36e5654a = !$178d0e351594f127$var$hasNative ? ()=>false : (opts)=>(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $fnyYE$fs.mkdirSync);\nconst $178d0e351594f127$export$875f149e5ea533c1 = Object.assign(!$178d0e351594f127$var$hasNative ? ()=>false : (opts)=>(0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts).mkdir === (0, $fnyYE$fs.mkdir), {\n sync: $178d0e351594f127$export$f32201cb36e5654a\n});\n\n\nconst $6e9a7f963f1a962b$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $093f39a65ae5d778$export$84f52eb1a6059876)(path);\n const resolved = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts);\n return (0, $178d0e351594f127$export$f32201cb36e5654a)(resolved) ? (0, $511b2b7043ca8938$export$abcdbcf229aec40d)(path, resolved) : (0, $cf131c133eb79221$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $6e9a7f963f1a962b$export$92d6409d68f0739a = $6e9a7f963f1a962b$export$f5e50515bfceb13b;\nconst $6e9a7f963f1a962b$export$d5db38ffe1f43b01 = (0, $cf131c133eb79221$export$96a3a6083628c9d8);\nconst $6e9a7f963f1a962b$export$36e1c11973ff5d6a = (0, $cf131c133eb79221$export$fa6f1b792dc805a5);\nconst $6e9a7f963f1a962b$export$e199e4a0c0335c4f = (0, $511b2b7043ca8938$export$efd8fb7a8c453d34);\nconst $6e9a7f963f1a962b$export$dd70f1af61563969 = (0, $511b2b7043ca8938$export$abcdbcf229aec40d);\nconst $6e9a7f963f1a962b$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $093f39a65ae5d778$export$84f52eb1a6059876)(path);\n const resolved = (0, $03133746bc7c4255$export$edfda2f049ea6cd1)(opts);\n return (0, $178d0e351594f127$export$875f149e5ea533c1)(resolved) ? (0, $511b2b7043ca8938$export$efd8fb7a8c453d34)(path, resolved) : (0, $cf131c133eb79221$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $6e9a7f963f1a962b$export$f5e50515bfceb13b,\n mkdirpNative: $511b2b7043ca8938$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $511b2b7043ca8938$export$abcdbcf229aec40d,\n mkdirpManual: $cf131c133eb79221$export$96a3a6083628c9d8,\n mkdirpManualSync: $cf131c133eb79221$export$fa6f1b792dc805a5,\n sync: $6e9a7f963f1a962b$export$f5e50515bfceb13b,\n native: (0, $511b2b7043ca8938$export$efd8fb7a8c453d34),\n nativeSync: (0, $511b2b7043ca8938$export$abcdbcf229aec40d),\n manual: (0, $cf131c133eb79221$export$96a3a6083628c9d8),\n manualSync: (0, $cf131c133eb79221$export$fa6f1b792dc805a5),\n useNative: $178d0e351594f127$export$875f149e5ea533c1,\n useNativeSync: $178d0e351594f127$export$f32201cb36e5654a\n});\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $ioM8U = parcelRequire(\"ioM8U\");\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n// src/modules/https-utils.ts\n\n\nfunction $3cb545350be8357c$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $3cb545350be8357c$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $fnyYE$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($3cb545350be8357c$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $3cb545350be8357c$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $fnyYE$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $3cb545350be8357c$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $3cb545350be8357c$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $3cb545350be8357c$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $3cb545350be8357c$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $3cb545350be8357c$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $dKY2K = parcelRequire(\"dKY2K\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\nfunction $5aede9bc9e501a75$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($dKY2K)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $5aede9bc9e501a75$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $5aede9bc9e501a75$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $5aede9bc9e501a75$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $5aede9bc9e501a75$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $5aede9bc9e501a75$export$5b54ecc7386538f(file, versionRegex = $5aede9bc9e501a75$export$d7ab5e2d33b06cd5) {\n try {\n const execout = await (0, $ioM8U.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = version_output.trim().match(versionRegex)?.[1];\n return (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $5aede9bc9e501a75$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $5aede9bc9e501a75$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $5aede9bc9e501a75$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($dKY2K)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $5aede9bc9e501a75$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version);\n if (coercedVersion !== null) {\n (0, $g0Mwp.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $5aede9bc9e501a75$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $5aede9bc9e501a75$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $7621db79aa35f3d3$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $652d1fcf01440681$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $652d1fcf01440681$export$5fb1985a02d8f66f = {\n llvm: $652d1fcf01440681$var$getLLVMDefault(),\n clangtidy: $652d1fcf01440681$var$getLLVMDefault(),\n clangformat: $652d1fcf01440681$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $01378da92d425308$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $01378da92d425308$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $652d1fcf01440681$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $652d1fcf01440681$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $f52817e181fae4e9$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $f52817e181fae4e9$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($fnyYE$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $f52817e181fae4e9$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $f52817e181fae4e9$var$setupPipx(foundPython);\n await $f52817e181fae4e9$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$setupPipx(foundPython) {\n try {\n if (!await (0, $735680774c283561$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $735680774c283561$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $f52817e181fae4e9$var$setupWheel(foundPython) {\n try {\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $735680774c283561$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $g0Mwp.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $f52817e181fae4e9$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $e19ul.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $l5aZl.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $g0Mwp.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"kqI8i\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n const binDir = (0, $e19ul.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $g0Mwp.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $f52817e181fae4e9$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $f52817e181fae4e9$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $f52817e181fae4e9$var$findPython(setupDir);\n const binDir = (0, $e19ul.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $e19ul.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $f52817e181fae4e9$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $f52817e181fae4e9$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $e19ul.join)(binDir, (0, $e19ul.addExeExt)(candidate));\n if (await (0, $6afW1.pathExists)(pythonBinPath)) {\n if (await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pythonBinPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n const pythonBinPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports)))(candidate, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pythonBinPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$findOrSetupPip(foundPython) {\n const maybePip = await $f52817e181fae4e9$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $g0Mwp.info)(\"pip was not found. Installing pip\");\n await $f52817e181fae4e9$var$setupPip(foundPython);\n return $f52817e181fae4e9$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $f52817e181fae4e9$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $f52817e181fae4e9$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$isPipUptoDate(pip) {\n try {\n const pipPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports)))(pip, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $5aede9bc9e501a75$export$d1f0d32b896ba08)(pipPath, (0, $652d1fcf01440681$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $f52817e181fae4e9$var$setupPip(foundPython) {\n const upgraded = await $f52817e181fae4e9$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $735680774c283561$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $f52817e181fae4e9$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $f52817e181fae4e9$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $g0Mwp.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $g0Mwp.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $f52817e181fae4e9$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $ioM8U.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $e19ul.join)(base_exec_prefix, \"Scripts\"), (0, $e19ul.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $e19ul.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $7621db79aa35f3d3$export$7a5d5c156e7dc406)(dirs);\n}\nconst $f52817e181fae4e9$export$4bf645347c3b7001 = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($f52817e181fae4e9$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $15fcb2187261fc62$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($15fcb2187261fc62$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $652d1fcf01440681$export$1bb63c984aa6e760)) return $15fcb2187261fc62$var$getDefaultLinuxVersion(osVersion, (0, $652d1fcf01440681$export$1bb63c984aa6e760)[name]);\n else if ($15fcb2187261fc62$var$isVersionDefault(version) && name in (0, $652d1fcf01440681$export$5fb1985a02d8f66f)) return (0, $652d1fcf01440681$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version ?? \"\";\n}\nfunction $15fcb2187261fc62$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $15fcb2187261fc62$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $15fcb2187261fc62$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$15fcb2187261fc62$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $26d94f5bd8a224ee$exports = {};\n\"use strict\";\nObject.defineProperty($26d94f5bd8a224ee$exports, \"__esModule\", {\n value: true\n});\n$26d94f5bd8a224ee$exports.getUbuntuVersion = void 0;\n\nfunction $26d94f5bd8a224ee$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $26d94f5bd8a224ee$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $fnyYE$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($26d94f5bd8a224ee$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $26d94f5bd8a224ee$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $26d94f5bd8a224ee$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$26d94f5bd8a224ee$exports.getUbuntuVersion = $26d94f5bd8a224ee$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $1561ff1c985746ac$var$ubuntuVersion_raw() {\n try {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $1561ff1c985746ac$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $26d94f5bd8a224ee$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $1561ff1c985746ac$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $g0Mwp.warning)(err.toString());\n return null;\n }\n}\nconst $1561ff1c985746ac$export$49c9cf1111dfa0ee = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($1561ff1c985746ac$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $1561ff1c985746ac$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($fnyYE$os))) && typeof (0, ($parcel$interopDefault($fnyYE$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($fnyYE$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $735680774c283561$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $735680774c283561$export$7c60aea099ad1c1d(await $735680774c283561$var$getPython(), name, version, options);\n}\nasync function $735680774c283561$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $735680774c283561$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $735680774c283561$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $lUL8q.info)(`Installing ${name} ${version ?? \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $735680774c283561$var$getPipxHome();\n env.PIPX_BIN_DIR = await $735680774c283561$var$getPipxBinDir();\n }\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $lUL8q.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $735680774c283561$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $735680774c283561$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $f52817e181fae4e9$export$4bf645347c3b7001)(givenPython);\n const binDir = await $735680774c283561$var$findBinDir(execPaths, name);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $735680774c283561$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $bd3d80fab706f490$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $735680774c283561$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $6afW1.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"trash\"));\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"shared\"));\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)((0, $e19ul.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $735680774c283561$var$getPipxHome = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $6e9a7f963f1a962b$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $735680774c283561$var$getPipxBinDir = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$getPython_raw() {\n const pythonBin = (await (0, $f52817e181fae4e9$export$2b0b68e9df3d4a02)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $735680774c283561$var$getPython = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($735680774c283561$var$getPython_raw, {\n isPromise: true\n});\nasync function $735680774c283561$var$pipHasPackage(python, name) {\n const result = await (0, $bd3d80fab706f490$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $735680774c283561$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $6afW1.pathExists)((0, $e19ul.join)(dir, (0, $e19ul.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync((0, $e19ul.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $e19ul.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $735680774c283561$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $lUL8q.info)(`Installing ${name} via the system package manager`);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $cb2eb9cd8de0ff3c$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $e185fe9d7e14fd3c$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $e185fe9d7e14fd3c$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $e185fe9d7e14fd3c$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\nasync function $d6e2edee563953d7$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"graphviz\", version);\n return $d6e2edee563953d7$var$activateGraphviz();\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $d6e2edee563953d7$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\n\n\n\n\nconst $dec315a434b47901$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $dec315a434b47901$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($fnyYE$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $dec315a434b47901$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $bb36c0f082c84565$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $dec315a434b47901$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $bb36c0f082c84565$export$b16fc932ee62ae86 = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($bb36c0f082c84565$var$macosVersion_raw);\n\n\n\n\n\nasync function $d0b46aa290ad2acb$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"jaABp\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $fnyYE$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $443cb2ebf97018af$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ad6b822883344ac4$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $e19ul.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $d0b46aa290ad2acb$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $443cb2ebf97018af$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($117e61005623f281$exports)))(()=>{\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $g0Mwp.info)(err)\n });\n const binDir = await $443cb2ebf97018af$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $bb36c0f082c84565$export$b16fc932ee62ae86)()[0] > 11) await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $01378da92d425308$export$d415ddb6702ec3a2)() || (0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"doxygen\", version, $443cb2ebf97018af$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $g0Mwp.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $d6e2edee563953d7$export$b885bd977caaafb9)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $443cb2ebf97018af$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $6afW1.pathExists)((0, $e19ul.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $h5EpL = parcelRequire(\"h5EpL\");\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $ioM8U = parcelRequire(\"ioM8U\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nasync function $9414c8293fe072e8$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $ioM8U.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $g0Mwp.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $g0Mwp.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $b82735dd0f3fb385$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $b82735dd0f3fb385$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $b82735dd0f3fb385$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $b82735dd0f3fb385$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $e19ul.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $e9ff4d4a41a45dd8$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $b82735dd0f3fb385$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"g++\", version, $b82735dd0f3fb385$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $b82735dd0f3fb385$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $g0Mwp.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $b82735dd0f3fb385$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $b82735dd0f3fb385$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $b82735dd0f3fb385$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) installationInfo = await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) installationInfo = await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $b82735dd0f3fb385$var$setupChocoMingw(version, arch) {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n if (arch === \"x64\" && await (0, $6afW1.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $6afW1.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $6afW1.pathExists)(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $b82735dd0f3fb385$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", (0, $e19ul.addExeExt)(`${binDir}/gcc`)), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", (0, $e19ul.addExeExt)(`${binDir}/g++`)));\n else {\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($3nHUu)))((0, (/*@__PURE__*/$parcel$interopDefault($h5EpL)))(version) ?? version);\n if (majorVersion >= 5) {\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) promises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) promises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $9414c8293fe072e8$export$28f5fd35e3005b7a)());\n if (0, $l5aZl.GITHUB_ACTIONS) await $b82735dd0f3fb385$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $b82735dd0f3fb385$var$addGccLoggingMatcher() {\n const matcherPath = (0, $e19ul.join)($b82735dd0f3fb385$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $3nHUu = parcelRequire(\"3nHUu\");\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\n\nfunction $ffeab3d8ae1dcd56$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $ffeab3d8ae1dcd56$export$2a0488baf2a20c0f() {\n return (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $ffeab3d8ae1dcd56$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($3nHUu)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $c3df47ee2e275dc8$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c3df47ee2e275dc8$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $c3df47ee2e275dc8$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $c3df47ee2e275dc8$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"ninja\", version, $c3df47ee2e275dc8$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ed43354497f82ab8$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/kcov\");\nfunction $ed43354497f82ab8$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $e19ul.addExeExt)(\"kcov\"),\n extractFunction: (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)\n };\n}\nfunction $ed43354497f82ab8$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $e19ul.addExeExt)(\"kcov\"),\n extractFunction: $ed43354497f82ab8$var$buildKcov\n };\n}\nasync function $ed43354497f82ab8$var$buildKcov(file, dest) {\n const out = await (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $ed43354497f82ab8$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $e19ul.join)($ed43354497f82ab8$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $g0Mwp.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $e19ul.join)(out, \"build\");\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $ed43354497f82ab8$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $4843a8590048fdb7$export$c28663a621f418ce)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), (0, $e19ul.join)((0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $e19ul.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $c3df47ee2e275dc8$export$e6190f4bfe2ef71)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), (0, $e19ul.join)((0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $ed43354497f82ab8$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $g0Mwp.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $5aede9bc9e501a75$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $5aede9bc9e501a75$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"kcov\", version, $ed43354497f82ab8$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"kcov\", version, $ed43354497f82ab8$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nclass $33328ee155e6c412$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $33328ee155e6c412$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $33328ee155e6c412$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $33328ee155e6c412$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $33328ee155e6c412$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $33328ee155e6c412$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $33328ee155e6c412$var$getDOMException(reason);\n};\nfunction $33328ee155e6c412$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($33328ee155e6c412$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($33328ee155e6c412$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $33328ee155e6c412$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\nvar $86d8606d45e489e7$export$3c7cae5a162b1458;\nvar $86d8606d45e489e7$export$704f0be24425353b;\nvar $86d8606d45e489e7$export$f49c12d2898d28cb;\nvar $86d8606d45e489e7$export$a6a3bfb882356813;\nvar $86d8606d45e489e7$export$443b8bb890f5027e;\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\n\n\n\nconst $86d8606d45e489e7$var$PROGRAM_FILES_X86 = $fnyYE$process.env[\"ProgramFiles(x86)\"];\nconst $86d8606d45e489e7$var$PROGRAM_FILES = [\n $fnyYE$process.env[\"ProgramFiles(x86)\"],\n $fnyYE$process.env[\"ProgramFiles\"]\n];\nconst $86d8606d45e489e7$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $86d8606d45e489e7$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $86d8606d45e489e7$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $86d8606d45e489e7$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($86d8606d45e489e7$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $86d8606d45e489e7$var$VsYearVersion) return $86d8606d45e489e7$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$86d8606d45e489e7$export$3c7cae5a162b1458 = $86d8606d45e489e7$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $86d8606d45e489e7$var$vsversion_to_year(vsversion) {\n if (Object.keys($86d8606d45e489e7$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($86d8606d45e489e7$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$86d8606d45e489e7$export$704f0be24425353b = $86d8606d45e489e7$var$vsversion_to_year;\nconst $86d8606d45e489e7$var$VSWHERE_PATH = `${$86d8606d45e489e7$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $86d8606d45e489e7$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $fnyYE$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $lUL8q.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$86d8606d45e489e7$export$f49c12d2898d28cb = $86d8606d45e489e7$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $86d8606d45e489e7$var$findVcvarsall(vsversion) {\n const vsversion_number = $86d8606d45e489e7$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $86d8606d45e489e7$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found with vswhere: ${path}`);\n return path;\n }\n $lUL8q.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $86d8606d45e489e7$var$vsversion_to_year(vsversion)\n ] : $86d8606d45e489e7$var$YEARS;\n for (const prog_files of $86d8606d45e489e7$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $86d8606d45e489e7$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $lUL8q.info(`Trying standard location: ${path}`);\n if ($fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $lUL8q.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$86d8606d45e489e7$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($fnyYE$fs.existsSync(path)) {\n $lUL8q.info(`Found VS 2015: ${path}`);\n return path;\n }\n $lUL8q.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$86d8606d45e489e7$export$a6a3bfb882356813 = $86d8606d45e489e7$var$findVcvarsall;\nfunction $86d8606d45e489e7$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $86d8606d45e489e7$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $86d8606d45e489e7$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($fnyYE$process.platform != \"win32\") {\n $lUL8q.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $fnyYE$process.env.PATH += $fnyYE$path.delimiter + $86d8606d45e489e7$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$86d8606d45e489e7$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $lUL8q.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $fnyYE$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $lUL8q.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $lUL8q.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($86d8606d45e489e7$var$isPathVariable(name)) new_value = $86d8606d45e489e7$var$filterPathValue(new_value);\n $lUL8q.exportVariable(name, new_value);\n }\n }\n $lUL8q.endGroup();\n $lUL8q.info(`Configured Developer Command Prompt`);\n}\n$86d8606d45e489e7$export$443b8bb890f5027e = $86d8606d45e489e7$var$setupMSVCDevCmd;\n\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nfunction $b3d4aaf1ab3b1279$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $b3d4aaf1ab3b1279$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $6afW1.pathExists)(VCTargetsPath)) {\n (0, $g0Mwp.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $86d8606d45e489e7$export$443b8bb890f5027e)($b3d4aaf1ab3b1279$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $85a072a44fce60d8$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $85a072a44fce60d8$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $85a072a44fce60d8$export$7bd623b29ec8e1eb) {\n (0, $lUL8q.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $33328ee155e6c412$export$2e2bcd8739ae039)($85a072a44fce60d8$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $g0Mwp.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $lUL8q.endGroup)();\n return hasLLVM;\n}\nasync function $85a072a44fce60d8$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $f5048ac1244eaa54$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $e19ul.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $073ad92077ebdb01$var$readFile, writeFile: $073ad92077ebdb01$var$writeFile, chmod: $073ad92077ebdb01$var$chmod } = (0, $fnyYE$fs.promises);\nvar $073ad92077ebdb01$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($073ad92077ebdb01$export$35fa309210df3df6 || ($073ad92077ebdb01$export$35fa309210df3df6 = {}));\nasync function $073ad92077ebdb01$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $bd3d80fab706f490$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $073ad92077ebdb01$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)(neededPackages);\n await $073ad92077ebdb01$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $1e9f9ad269e26aae$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $85a072a44fce60d8$export$7bd623b29ec8e1eb)\n });\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $073ad92077ebdb01$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $073ad92077ebdb01$var$readFile(path, \"utf-8\");\n script = $073ad92077ebdb01$var$debugScript(script);\n script = $073ad92077ebdb01$var$nonInteractiveScript(script);\n script = $073ad92077ebdb01$var$choosePackages(packages, script, majorVersion);\n script = await $073ad92077ebdb01$var$removeConflictingPackages(script);\n script = $073ad92077ebdb01$var$useNalaScript(script);\n await $073ad92077ebdb01$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $073ad92077ebdb01$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $073ad92077ebdb01$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $073ad92077ebdb01$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $c7e2f37817c8297c$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $fnyYE$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $073ad92077ebdb01$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $c7e2f37817c8297c$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $073ad92077ebdb01$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $eekMY = parcelRequire(\"eekMY\");\n\n\nconst $4ae402a71ba6ab5d$export$aa5307f1aca77413 = (0, $5aede9bc9e501a75$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $4ae402a71ba6ab5d$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $4ae402a71ba6ab5d$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $4ae402a71ba6ab5d$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $4ae402a71ba6ab5d$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $4ae402a71ba6ab5d$var$getDarwinUrl(version) {\n if ($4ae402a71ba6ab5d$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\")) return $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n else return $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $4ae402a71ba6ab5d$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $4ae402a71ba6ab5d$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$4ae402a71ba6ab5d$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $5aede9bc9e501a75$export$deb1064c8260c54c)($4ae402a71ba6ab5d$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP) linuxVersion = $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $4ae402a71ba6ab5d$var$UBUNTU_SUFFIX_MAP[$4ae402a71ba6ab5d$var$MAX_UBUNTU];\n (0, $g0Mwp.warning)(`Falling back to LLVM version ${$4ae402a71ba6ab5d$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\")) return $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n else return $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $4ae402a71ba6ab5d$var$getWin32Url(version) {\n if ($4ae402a71ba6ab5d$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($eekMY)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $4ae402a71ba6ab5d$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $3cb545350be8357c$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $4ae402a71ba6ab5d$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $4ae402a71ba6ab5d$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $4ae402a71ba6ab5d$var$getDarwinUrl(version);\n case \"linux\":\n return $4ae402a71ba6ab5d$export$ae24f9682a44836b(version);\n case \"win32\":\n return $4ae402a71ba6ab5d$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $4ae402a71ba6ab5d$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $5aede9bc9e501a75$export$4e4d3581f69a6d71)($4ae402a71ba6ab5d$export$aa5307f1aca77413, platform, version, $4ae402a71ba6ab5d$export$94df0e59ebebf4a7);\n (0, $g0Mwp.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $e19ul.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $e9ff4d4a41a45dd8$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $b9ed45c8698183ba$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/llvm\");\nasync function $b9ed45c8698183ba$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $b9ed45c8698183ba$var$setupLLVMWithoutActivation(version, setupDir, arch);\n await $b9ed45c8698183ba$export$6238b5ebfd6640e7(installationInfo.installDir ?? setupDir);\n return installationInfo;\n}\nasync function $b9ed45c8698183ba$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch),\n $b9ed45c8698183ba$var$setupLLVMDeps(arch),\n $b9ed45c8698183ba$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $b9ed45c8698183ba$var$setupLLVMWithoutActivation = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $b9ed45c8698183ba$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch, (0, $073ad92077ebdb01$export$35fa309210df3df6).ClangFormat);\n}\nfunction $b9ed45c8698183ba$export$814ccfc953503728(version, setupDir, arch) {\n return $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $b9ed45c8698183ba$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $073ad92077ebdb01$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $5aede9bc9e501a75$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return await (0, $073ad92077ebdb01$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $g0Mwp.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"llvm\", version, (0, $4ae402a71ba6ab5d$export$f203993d12226a27), setupDir, arch);\n await $b9ed45c8698183ba$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $b9ed45c8698183ba$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $b9ed45c8698183ba$var$llvmBinaryDeps = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $b9ed45c8698183ba$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $b82735dd0f3fb385$export$405fab3de79b77b)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $b9ed45c8698183ba$var$setupLLVMDeps = (0, $e1c8114ccf331d29$export$2e2bcd8739ae039)($b9ed45c8698183ba$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $b9ed45c8698183ba$export$6238b5ebfd6640e7(directory) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\";\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\";\n const actPromises = [\n // the output of this action\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $fnyYE$path.delimiter)}${ld}`),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $fnyYE$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", (0, $e19ul.addExeExt)(`${directory}/bin/clang`)),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", (0, $e19ul.addExeExt)(`${directory}/bin/clang++`)),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $9414c8293fe072e8$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $c7e2f37817c8297c$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $b9ed45c8698183ba$var$addLLVMLoggingMatcher() {\n if (0, $l5aZl.GITHUB_ACTIONS) {\n const matcherPath = (0, $e19ul.join)($b9ed45c8698183ba$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $9bb91601f6353265$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $6b27f07a473f7146$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $735680774c283561$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $l5aZl = parcelRequire(\"l5aZl\");\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $14a14b2ed2c1c098$var$$parcel$__dirname = $fnyYE$path.resolve(__dirname, \"../../src/msvc\");\nasync function $14a14b2ed2c1c098$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $86d8606d45e489e7$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $g0Mwp.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $86d8606d45e489e7$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $g0Mwp.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $g0Mwp.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $g0Mwp.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $l5aZl.GITHUB_ACTIONS) await $14a14b2ed2c1c098$var$addMSVCLoggingMatcher();\n}\nasync function $14a14b2ed2c1c098$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $e19ul.join)($14a14b2ed2c1c098$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $6afW1.pathExists)(matcherPath)) return (0, $g0Mwp.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $g0Mwp.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\nlet $c0f445ed64f3404a$var$binDir;\nasync function $c0f445ed64f3404a$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $92d741f963835199$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $c0f445ed64f3404a$var$binDir === \"string\") return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $c0f445ed64f3404a$var$binDir = (0, $e19ul.dirname)(maybeBinDir);\n return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $c7e2f37817c8297c$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $c0f445ed64f3404a$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $c0f445ed64f3404a$var$binDir\n };\n}\nfunction $c0f445ed64f3404a$export$2747aa8ef20f818d(script) {\n if ((0, $c7e2f37817c8297c$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $dc976d84c6869424$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $dc976d84c6869424$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $dc976d84c6869424$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $e9e97f17cf86d7ea$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $173db03f510746e0$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) return (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) {\n (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) {\n await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $1e9f9ad269e26aae$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $ff0b896f9d14b454$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $173db03f510746e0$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $479118dccc1788e1$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n/** Get the platform name task uses in their download links */ function $bcd72fcb5f868a8e$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $bcd72fcb5f868a8e$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $bcd72fcb5f868a8e$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $bcd72fcb5f868a8e$var$getTaskPlatform(platform);\n const taskArch = $bcd72fcb5f868a8e$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $e19ul.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $e9ff4d4a41a45dd8$export$6411c5cbab21135b) : (0, $e9ff4d4a41a45dd8$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $bcd72fcb5f868a8e$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $ca25e7d546c09dd0$export$334f77c9844c21f6)(\"task\", version, $bcd72fcb5f868a8e$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $6afW1 = parcelRequire(\"6afW1\");\n\nvar $e19ul = parcelRequire(\"e19ul\");\n\n\n\n\n\n\n\n\nlet $ff1491d7868b60e2$var$hasVCPKG = false;\nasync function $ff1491d7868b60e2$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$ff1491d7868b60e2$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $ab26416ab1998b9d$export$8ce8b4b22331a8c7)()) await (0, $1819dff75b0e473e$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $92d741f963835199$export$da8baf1d6c6802b6)()) await (0, $c7e2f37817c8297c$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $6afW1.pathExists)((0, $e19ul.join)(setupDir, (0, $e19ul.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $bd3d80fab706f490$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $e19ul.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $g0Mwp.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $bd3d80fab706f490$export$28823a701bb5a12d)((0, $e19ul.addShExt)((0, $e19ul.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $5d373f8b741de762$export$4718e061a205eab)(setupDir);\n await (0, $8050f2585a3bae5e$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $ff1491d7868b60e2$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $e19ul.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($50315e26c0e27da3$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $f5048ac1244eaa54$export$18a3521ac7306af4 = {\n nala: (0, $c0f445ed64f3404a$export$d73cbe8caeff03c5),\n cmake: (0, $4843a8590048fdb7$export$c28663a621f418ce),\n ninja: (0, $c3df47ee2e275dc8$export$e6190f4bfe2ef71),\n python: (0, $f52817e181fae4e9$export$2b0b68e9df3d4a02),\n vcpkg: (0, $ff1491d7868b60e2$export$490bdba4ef3e3f82),\n bazel: (0, $6c882e7c88e29bec$export$a66bc93580b0a849),\n conan: (0, $cb2eb9cd8de0ff3c$export$249d0c7d779d362f),\n meson: (0, $6b27f07a473f7146$export$f73905553f087748),\n gcovr: (0, $ffeab3d8ae1dcd56$export$b98d69f362caf61f),\n opencppcoverage: (0, $dc976d84c6869424$export$6aa28a97600a8ae3),\n llvm: (0, $b9ed45c8698183ba$export$3016de7ae9d14988),\n gcc: (0, $b82735dd0f3fb385$export$405fab3de79b77b),\n choco: (0, $f06ab0c228dc75ce$export$b804d731cdad7ef9),\n brew: (0, $b898747961832fe2$export$c5eeb9c87a610a0e),\n powershell: (0, $e9e97f17cf86d7ea$export$1ff6ad96ee130aba),\n ccache: (0, $c04ea7570e5d5658$export$111263621bbb0768),\n sccache: (0, $ff0b896f9d14b454$export$b963b67cda80fdc),\n doxygen: (0, $443cb2ebf97018af$export$b6e6613a954051ee),\n graphviz: (0, $d6e2edee563953d7$export$b885bd977caaafb9),\n cppcheck: (0, $e185fe9d7e14fd3c$export$13d77464c548b5d3),\n clangtidy: (0, $b9ed45c8698183ba$export$814ccfc953503728),\n clangformat: (0, $b9ed45c8698183ba$export$1cf2d186cecf1f54),\n msvc: (0, $14a14b2ed2c1c098$export$a91ef0362c1a7298),\n vcvarsall: (0, $b3d4aaf1ab3b1279$export$5dcf571c91fc8369),\n kcov: (0, $ed43354497f82ab8$export$abb7c2ff987b1f6b),\n make: (0, $9bb91601f6353265$export$b0a9411329e2916),\n task: (0, $bcd72fcb5f868a8e$export$4456b3a3d3540077),\n sevenzip: (0, $13e8dd9676c43513$export$5fc39629e14c8173)\n};\nconst $f5048ac1244eaa54$export$904054328df186b = Object.keys($f5048ac1244eaa54$export$18a3521ac7306af4);\nconst $f5048ac1244eaa54$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$f5048ac1244eaa54$export$904054328df186b\n];\n\n\nfunction $bf8ffdb3c7910f73$export$7300a92932ee17a3(args) {\n return (0, $43b63e3f508cec08$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $f5048ac1244eaa54$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $f5048ac1244eaa54$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $bf8ffdb3c7910f73$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $bf8ffdb3c7910f73$export$f57ebcae4da846e4() {\n (0, $g0Mwp.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $bf8ffdb3c7910f73$export$fc4ce4d885cb1082(key) {\n const value = (0, $lUL8q.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $lUL8q = parcelRequire(\"lUL8q\");\n\nvar $g0Mwp = parcelRequire(\"g0Mwp\");\n\n\nvar $SUO5C = parcelRequire(\"SUO5C\");\n\n\n\n\n\n\n\nfunction $8877e894c9430a5c$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($SUO5C)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $g0Mwp.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $8877e894c9430a5c$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $8877e894c9430a5c$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $lUL8q.startGroup)(`Installing ${compiler} ${version ?? \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $b9ed45c8698183ba$export$3016de7ae9d14988)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $fnyYE$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $ffeab3d8ae1dcd56$export$2a0488baf2a20c0f)();\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $b82735dd0f3fb385$export$f115c01d224b9e9a)(gccVersion, (0, $fnyYE$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $b82735dd0f3fb385$export$405fab3de79b77b)(gccVersion, (0, $fnyYE$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $ffeab3d8ae1dcd56$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $14a14b2ed2c1c098$export$a91ef0362c1a7298)((0, $15fcb2187261fc62$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $fnyYE$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $lUL8q.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $8050f2585a3bae5e$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $bf8ffdb3c7910f73$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $g0Mwp.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $lUL8q.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $c788ec15686482ed$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $l5aZl.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $8f12de6ff658e88d$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $bf8ffdb3c7910f73$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $bf8ffdb3c7910f73$export$f57ebcae4da846e4)();\n // cpu architecture\n const arch = opts.architecture ?? process.arch;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? (0, $4575b21c37e83a45$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $34bd17ad1efa4734$exports.create({\n autoloadLocales: true\n });\n $34bd17ad1efa4734$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($59f03960c4356765$exports))));\n $hapVv.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($4e3c346433ebbc09$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $1561ff1c985746ac$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $15fcb2187261fc62$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $g0Mwp.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $01378da92d425308$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $g0Mwp.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $351111ae1a9a89f6$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $f5048ac1244eaa54$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $l5aZl.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $85a072a44fce60d8$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat(opts.timeout ?? \"20\") * 60000);\n time2 = Date.now();\n (0, $g0Mwp.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $8877e894c9430a5c$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $g0Mwp.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $8050f2585a3bae5e$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $g0Mwp.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $g0Mwp.success)(tool));\n errorMessages.forEach((tool)=>(0, $g0Mwp.error)(tool));\n (0, $g0Mwp.info)(\"setup-cpp finished\");\n if (!(0, $l5aZl.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $g0Mwp.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $g0Mwp.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$c788ec15686482ed$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $g0Mwp.error)(\"main() panicked!\");\n (0, $g0Mwp.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.e93d39c0.js\"))).then(() => parcelRequire('i1n7v'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.4215b06b.js\"))).then(() => parcelRequire('dTPU2'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, sourceCpprc } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await sourceCpprc()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFile, readFile, writeFile } from \"fs/promises\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n if (options.shouldAddOnlyIfNotDefined) {\n await appendFile(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n await appendFile(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n await appendFile(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function sourceCpprc() {\n if (setupCppInProfile_called) {\n return\n }\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n await Promise.all([\n addCpprcHeader(),\n sourceCpprcInProfile(source_cpprc_string),\n sourceCpprcInBashrc(source_cpprc_string),\n ])\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nasync function addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = await readFile(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await appendFile(cpprc_path, `\\n${cpprc_header}\\n`)\n info(`Added ${cpprc_header} to ${cpprc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInBashrc(source_cpprc_string: string) {\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = await readFile(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n await appendFile(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInProfile(source_cpprc_string: string) {\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = await readFile(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n await appendFile(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = (await readFile(cpprc_path, \"utf-8\")).split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n await writeFile(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAAS,CAAAC,EAAOR,CAAI,CAAEC,CAAO,CAAEC,CAAE,EAM/B,GALuB,YAAnB,MAAO,CAAAD,CAAA,GACTC,CAAA,CAAKD,CAAA,CACLA,CAAA,CAAU,CAAC,GAGT,CAACC,CAAA,CAAI,CACP,GAAI,UAAmB,EAAnB,MAAO,CAAAO,OAAA,CACT,KAAM,CAAAC,SAA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QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,UACPC,WAAA,CAAY,WACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,SACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,gDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,qDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,oBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,eACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IA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YAAYzD,IAAI,CAAC1hC,CAAA,CAAS,CAAC,EAAE,EAG5C,MAAO,CAAAD,CACT,GwBxBiD,CAC/C,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAGKiiB,EAAA,CAA6B,GAAI,CAAAtT,GAAA,CAAI,CAAC,SAAU,SAAU,SAAU,SAAS,EAG7EwT,EAAA,CAAiB,GAAI,CAAAxT,GAAA,CAAI,CAC7B,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SAGA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAOKyT,EAAA,CAAiC,GAAI,CAAAugB,GAAA,GAQrCpgB,EAAA,CAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,eACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,sBAAuB,gBACvB,sBAAuB,gBACvB,SAAU,gBACV,sBAAuB,gBACvB,SAAU,gBAEV,SAAU,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iB,EAAA,CAAc/iB,CAAA,CAASC,CAAA,CAAUC,CAAA,CAAMgjB,EAAA,CAAam9B,WAAW,CACxE,G1EQEC,IAAA,CAAM18B,EAAA,CACN28B,SAAA,CAAWpgC,EAAA,CACXw+B,IAAA,CAAMl/B,EAAA,CACN+gC,IAAA,CAAM78B,EAAA,CACNi7B,IAAA,CwFXK,QAAAA,CAAmB5+C,CAAe,CAAEC,CAAgB,CAAEC,CAAY,EACvE,MAAO,CAAA4V,EAAA,CAAS,OAAQ9V,CAAA,CAASqkB,EAAA,CAAoBpkB,CAAA,CAAUC,CAAA,CACjE,GxFUEugD,QAAA,CAAUnsC,EACZ,EAKawS,EAAA,CAAQ/kB,MAAA,CAAOuB,IAAI,CAAC+d,EAAA,EAMpBmE,EAAA,CAAwB,CAAC,WAAY,eAAgB,aAAcsB,EAAA,CAAM,C,6C7DqFtFlC,EAAA,CAAK3jB,OAAA,CAAQy/C,IAAI,EACd92C,IAAI,CAAC5J,CAAC,GACLiB,OAAA,CAAQkG,QAAQ,CAAGnH,CACrB,IACC0V,KAAK,CAAC1V,CAAC,GACN,GAAA4K,EAAA,CAAA3E,KAAI,EAAE,oBACN,GAAA2E,EAAA,CAAA3E,KAAI,EAAEjG,CAAA,EACNiB,OAAA,CAAQkG,QAAQ,CAAG,CACrB","ignoreList":[]} \ No newline at end of file diff --git a/dist/legacy/setup-cpp.js b/dist/legacy/setup-cpp.js index f9f1ad80..d3f532bb 100644 --- a/dist/legacy/setup-cpp.js +++ b/dist/legacy/setup-cpp.js @@ -1,18 +1,18 @@ #!/usr/bin/env node -let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rM(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rj.sync(e.command,{path:n[rG({env:n})],pathExt:t?n1.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n1.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iS&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rk(e,t,r),i=rt.spawn(n.command,n.args,n.options);return rz.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ra).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ra).cwd(),path:n=c(ra).env[v()],execPath:i=c(ra).execPath}=e,o=i instanceof URL?c(rl).fileURLToPath(i):i,s=r instanceof URL?c(rl).fileURLToPath(r):r,a=c(ro).resolve(s),l=[];for(;t!==a;)l.push(c(ro).join(a,"node_modules/.bin")),t=a,a=c(ro).resolve(a,"..");return l.push(c(ro).resolve(s,o,"..")),[...l,n].join(c(ro).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r0(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=rJ.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await od(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new of());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oG(e,t,r),o=oC(e,t),s=o$(e,t);oF(s,i.options),oa(i.options);try{n=c(rs).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rs).ChildProcess)();return oR(e,Promise.reject(iq({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oO(n),l=os(n,i.options,a),u=ol(n,i.options,l),p={isCanceled:!1};n.kill=i7.bind(null,n.kill.bind(n)),n.cancel=oi.bind(null,n,p);let d=rW(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await ob(n,i.options,u),f=oB(i.options,l),h=oB(i.options,c),m=oB(i.options,d);if(e||0!==t||null!==r){let l=iq({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return oE(n,i.options),n.all=oy(n,i.options),op(n),oR(n,d),n;}function b(e,t,r){let n;let i=oG(e,t,r),o=oC(e,t),s=o$(e,t);oF(s,i.options);let a=ov(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iq({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oB(i.options,n.stdout,n.error),u=oB(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iq({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function S(){var e,t;return((null===(e=(t=process).getuid)||void 0===e?void 0:e.call(t))===0||!!process.env.CI)&&null!==c(rT).sync("sudo",{nothrow:!0});}function I(e,t=[],r=oV){return S()?function(e,t){let[r,...n]=o_(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function R(e,t=[],r=oV){return S()?function(e,t){let[r,...n]=o_(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function A(e){if(("linux"===process.platform||"darwin"===process.platform)&&S()&&void 0!==process.env.SUDO_USER){let t=c(n2).statSync(e).isDirectory();await R("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oV);}}function C(e){let t=function(){if(S()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n1.join)("/Users/",process.env.SUDO_USER):(0,n1.join)("/home/",process.env.SUDO_USER);{let e=(0,n0.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oX,t);}function $(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sd(n,i.options,u),f=s_(i.options,l),h=s_(i.options,c),m=s_(i.options,d);if(e||0!==t||null!==r){let l=oQ({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sl(n,i.options),n.all=sc(n,i.options),sn(n),sm(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(rT).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(rT).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sL){let n={...sL,...r},i=function(e,t=!1){let r=t?c(nm)(e):e;return c(nv)(r,'"',"\\");}(null!=t?t:"",n.shouldEscapeSpace);try{if(rx.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nf.exportVariable)(e,i);}catch(t){(0,rb.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function M(e){if(!function(e){if(sD.some(t=>t.test(e))){var t,r;return(null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(n1.delimiter))&&void 0!==r?r:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${n1.delimiter}${process.env.PATH}`;try{if(rx.GITHUB_ACTIONS)try{(0,nf.addPath)(e);}catch(t){(0,rb.error)(t),await B(e);}else await B(e);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nf.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?((0,n2.appendFileSync)(sk,` +let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rH(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rG.sync(e.command,{path:n[rq({env:n})],pathExt:t?n3.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n3.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iO&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rF(e,t,r),i=ri.spawn(n.command,n.args,n.options);return rY.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ru).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ru).cwd(),path:n=c(ru).env[v()],execPath:i=c(ru).execPath}=e,o=i instanceof URL?c(rp).fileURLToPath(i):i,s=r instanceof URL?c(rp).fileURLToPath(r):r,a=c(rl).resolve(s),l=[];for(;t!==a;)l.push(c(rl).join(a,"node_modules/.bin")),t=a,a=c(rl).resolve(a,"..");return l.push(c(rl).resolve(s,o,"..")),[...l,n].join(c(rl).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r4(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r1.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await om(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new ov());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oq(e,t,r),o=oP(e,t),s=oN(e,t);oB(s,i.options),ou(i.options);try{n=c(rc).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rc).ChildProcess)();return oA(e,Promise.reject(iz({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oC(n),l=oc(n,i.options,a),u=op(n,i.options,l),p={isCanceled:!1};n.kill=or.bind(null,n.kill.bind(n)),n.cancel=oa.bind(null,n,p);let d=rQ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await oR(n,i.options,u),f=oV(i.options,l),h=oV(i.options,c),m=oV(i.options,d);if(e||0!==t||null!==r){let l=iz({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ox(n,i.options),n.all=ob(n,i.options),oh(n),oA(n,d),n;}function b(e,t,r){let n;let i=oq(e,t,r),o=oP(e,t),s=oN(e,t);oB(s,i.options);let a=oy(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iz({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oV(i.options,n.stdout,n.error),u=oV(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iz({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function S(){var e,t;return((null===(e=(t=process).getuid)||void 0===e?void 0:e.call(t))===0||!!process.env.CI)&&null!==c(r$).sync("sudo",{nothrow:!0});}function I(e,t=[],r=oW){return S()?function(e,t){let[r,...n]=oL(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function R(e,t=[],r=oW){return S()?function(e,t){let[r,...n]=oL(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function A(e){if(("linux"===process.platform||"darwin"===process.platform)&&S()&&void 0!==process.env.SUDO_USER){let t=c(n6).statSync(e).isDirectory();await R("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oW);}}function C(e){let t=function(){if(S()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n3.join)("/Users/",process.env.SUDO_USER):(0,n3.join)("/home/",process.env.SUDO_USER);{let e=(0,n4.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oK,t);}function $(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sm(n,i.options,u),f=sL(i.options,l),h=sL(i.options,c),m=sL(i.options,d);if(e||0!==t||null!==r){let l=o0({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sp(n,i.options),n.all=sd(n,i.options),ss(n),sE(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(r$).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r$).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sU){let n={...sU,...r},i=function(e,t=!1){let r=t?c(nE)(e):e;return c(ny)(r,'"',"\\");}(null!=t?t:"",n.shouldEscapeSpace);try{if(rI.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nv.exportVariable)(e,i);}catch(t){(0,rR.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rR.error)(t),(0,nv.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function M(e){if(!function(e){if(sj.some(t=>t.test(e))){var t,r;return(null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(n3.delimiter))&&void 0!==r?r:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${n3.delimiter}${process.env.PATH}`;try{if(rI.GITHUB_ACTIONS)try{(0,nv.addPath)(e);}catch(t){(0,rR.error)(t),await B(e);}else await B(e);}catch(t){(0,rR.error)(t),(0,nv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nv.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?(await(0,rP.appendFile)(sF,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi -`),(0,nf.info)(`if not defined ${e} then ${e}="${n}" was added to "${sk}`)):((0,n2.appendFileSync)(sk,` +`),(0,nv.info)(`if not defined ${e} then ${e}="${n}" was added to "${sF}`)):(await(0,rP.appendFile)(sF,` export ${e}="${n}" -`),(0,nf.info)(`${e}="${n}" was added to "${sk}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nf.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),(0,n2.appendFileSync)(sk,` +`),(0,nv.info)(`${e}="${n}" was added to "${sF}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,rP.appendFile)(sF,` export PATH="${e}:$PATH" -`),(0,nf.info)(`"${e}" was added to "${sk}"`);return;default:return;}}async function H(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,nh.pathExists)(sk))&&!(0,n2.readFileSync)(sk,"utf8").includes(e)&&((0,n2.appendFileSync)(sk,` -${e} -`),(0,nf.info)(`Added ${e} to ${sk}`));let t=` +`),(0,nv.info)(`"${e}" was added to "${sF}"`);return;default:return;}}async function H(){if(sM)return;let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 -if [[ "$SOURCE_CPPRC" != 0 && -f "${sk}" ]]; then source "${sk}"; fi -`;try{let e=C("~/.profile");(await(0,nh.pathExists)(e))&&!(0,n2.readFileSync)(e,"utf-8").includes(t)&&((0,n2.appendFileSync)(e,t),(0,nf.info)(`${t} was added to ${e}`));let r=C("~/.bashrc");(await(0,nh.pathExists)(r))&&!(0,n2.readFileSync)(r,"utf-8").includes(t)&&((0,n2.appendFileSync)(r,t),(0,nf.info)(`${t} was added to ${r}`));}catch(e){(0,rb.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sU=!0;}async function q(){if(await(0,nh.pathExists)(sk)){let e=[...new Set((0,n2.readFileSync)(sk,"utf-8").split("\n").reverse())].reverse();(0,n2.writeFileSync)(sk,e.join("\n")),await A(sk);}}async function V(e,t=!1){let r;let n=W()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sF||t)&&(K(n),sF=!0),sM||(await Y(n),sM=!0);let i=[...new Set(e.flatMap(e=>{var t;return null!==(t=e.repositories)&&void 0!==t?t:[];}))];if(0!==i.length){for(let e of i)I("add-apt-repository",["-y",e]);K(n);}let o=await Promise.all(e.map(e=>z(e.name,e.version)));try{I(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sG.some(e=>t.includes(e))&&((0,rb.warning)(`Failed to install packages ${o}. Retrying...`),I(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function X(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,ng.default)(e)}-${(0,ng.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function z(e,t){switch(await X(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=t?t:""}`);}}function W(){return null!==c(rT).sync("nala",{nothrow:!0});}function K(e){I(e,"nala"!==e?["update","-y"]:["update"]);}async function Y(e){I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[J(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),J(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function Q(){I("gpg",["-k"]);}async function J(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nh.pathExists)(n))||(Q(),await Promise.all(e.map(async e=>{await R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await R("chmod",["644",n]);}))),n;}catch(e){(0,rb.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function Z(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nh.pathExists)(r))||(Q(),await V([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),I("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),I("chmod",["644",r])),r;}async function ee(e,t,r=40){return rx.GITHUB_ACTIONS?R("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sj(sk,` +if [[ "$SOURCE_CPPRC" != 0 && -f "${sF}" ]]; then source "${sF}"; fi +`;try{await Promise.all([q(),X(e),V(e)]);}catch(t){(0,rR.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${t}`);}sM=!0;}async function q(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,ng.pathExists)(sF))&&!(await(0,rP.readFile)(sF,"utf8")).includes(e)&&(await(0,rP.appendFile)(sF,` +${e} +`),(0,nv.info)(`Added ${e} to ${sF}`));}async function V(e){let t=C("~/.bashrc");(await(0,ng.pathExists)(t))&&!(await(0,rP.readFile)(t,"utf-8")).includes(e)&&(await(0,rP.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function X(e){let t=C("~/.profile");(await(0,ng.pathExists)(t))&&!(await(0,rP.readFile)(t,"utf-8")).includes(e)&&(await(0,rP.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function z(){if(await(0,ng.pathExists)(sF)){let e=[...new Set((await(0,rP.readFile)(sF,"utf-8")).split("\n").reverse())].reverse();await(0,rP.writeFile)(sF,e.join("\n")),await A(sF);}}async function W(e,t=!1){let r;let n=Q()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rR.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sB||t)&&(J(n),sB=!0),sH||(await Z(n),sH=!0);let i=[...new Set(e.flatMap(e=>{var t;return null!==(t=e.repositories)&&void 0!==t?t:[];}))];if(0!==i.length){for(let e of i)I("add-apt-repository",["-y",e]);J(n);}let o=await Promise.all(e.map(e=>Y(e.name,e.version)));try{I(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sq.some(e=>t.includes(e))&&((0,rR.warning)(`Failed to install packages ${o}. Retrying...`),I(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function K(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,nw.default)(e)}-${(0,nw.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function Y(e,t){switch(await K(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=t?t:""}`);}}function Q(){return null!==c(r$).sync("nala",{nothrow:!0});}function J(e){I(e,"nala"!==e?["update","-y"]:["update"]);}async function Z(e){I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[et(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),et(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function ee(){I("gpg",["-k"]);}async function et(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,ng.pathExists)(n))||(ee(),await Promise.all(e.map(async e=>{await R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await R("chmod",["644",n]);}))),n;}catch(e){(0,rR.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function er(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,ng.pathExists)(r))||(ee(),await W([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),I("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),I("chmod",["644",r])),r;}async function en(e,t,r=40){return rI.GITHUB_ACTIONS?R("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sG(sF,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi -`));}async function et(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function er(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(rT).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,ny.dirname)(i)};let o=c(n1).join((0,n0.tmpdir)(),"setup-cpp","brew");await(0,nw.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n1.join)(o,"install.sh");return"linux"===process.platform&&(0,n2.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=en(),await M(t),{binDir:t};}function en(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ei(e,t,r=[]){(0,nf.info)(`Installing ${e} ${null!=t?t:""} via brew`),sB&&null!==c(rT).sync("brew",{nothrow:!0})||(await er("","",process.arch),sB=!0);let n=en();return b((0,ny.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function eo(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=c(rT).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,ny.dirname)(o)};let s="powershell.exe",a=c(rT).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),b(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(l);let u=c(rT).sync("choco",{nothrow:!0});if(r=null!==u?(0,ny.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,nh.pathExists)(r))return{binDir:r};}async function es(e,t,r=[]){var n;(0,rb.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sH&&null!==c(rT).sync("choco",{nothrow:!0})||(await eo("","",process.arch),sH=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rb.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await M(s),{binDir:s};}async function ea(e){for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${null!=r?r:""} via dnf`);return I("dnf",["-y","install",...(await Promise.all(e.map(e=>el(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function el(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rb.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ec(e,t,r){switch(process.platform){case"win32":return es("bazelisk",e);case"darwin":return ei("bazelisk",e);case"linux":if(D())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await ea([{name:"dnf-plugins-core"}]),I("dnf",["copr","enable","vbatts/bazel"]),ea([{name:"bazel4"}]);if(k()){let t=await Z("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return I("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),V([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eu(e,t,r){(0,rb.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===c(rT).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sq||"yay"===r||(I(n,["-Sy","--noconfirm"]),sq=!0),sV||"yay"===r||(I(n,["-S","--noconfirm","base-devel"]),sV=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):I(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await ep(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rb.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ep(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sX))r.push(e[1]);}catch(e){(0,rb.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ed(e,t){let r=[];t=t||sQ.arch();let n=sJ.join(eE(),e);if(sK.existsSync(n)){for(let e of sK.readdirSync(n))if(ev(e)){let i=sJ.join(n,e,t||"");sK.existsSync(i)&&sK.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ef(e){return nO(this,void 0,void 0,function*(){return e||(e=sJ.join(ey(),s4.default())),yield sW.mkdirP(e),e;});}function eh(e,t,r){return nO(this,void 0,void 0,function*(){let n=sJ.join(eE(),e,s0.clean(t)||t,r||"");sz.debug("destination "+n);let i=`${n}.complete`;return yield sW.rmRF(n),yield sW.rmRF(i),yield sW.mkdirP(n),n;});}function em(e,t,r){let n=sJ.join(eE(),e,s0.clean(t)||t,r||""),i=`${n}.complete`;sK.writeFileSync(i,""),sz.debug("finished caching tool");}function ev(e){let t=s0.clean(e)||"";sz.debug("isExplicit: "+t);let r=null!=s0.valid(t);return sz.debug("explicit? "+r),r;}function eg(e,t){let r="";sz.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s0.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s0.satisfies(i,t)){r=i;break;}}return r?sz.debug("matched: "+r):sz.debug("match not found"),r;}function eE(){let e=process.env.RUNNER_TOOL_CACHE||"";return t9.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ey(){let e=process.env.RUNNER_TEMP||"";return t9.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ew(e,t){let r=rv[e];return void 0!==r?r:t;}function ex(e,t,r){switch(process.platform){case"win32":return es("7zip",e);case"darwin":return ei("p7zip",e);case"linux":if(D())return eu("p7zip",e);if(L())return ea([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(k())return V([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,t){return await x(await eS(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await A(t),t;}async function eS(){return void 0===n&&(null===c(rT).sync("7z",{nothrow:!0})&&(await ex("","",process.arch)),n="7z"),n;}function eI(e,t){return eb(e,t);}function eR(e,t){return eb(e,t);}async function eO(e,t,r=["--strip-components=0"]){try{await(0,nw.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rb.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return A(t),t;}function eT(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new s9(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nx.downloadTool)(a),{name:a,max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});s7||((0,rb.info)("Installing extraction dependencies"),"linux"===process.platform&&(D()?await Promise.all([eu("unzip"),eu("tar"),eu("xz")]):L()?await ea([{name:"unzip"},{name:"tar"},{name:"xz"}]):k()&&(await V([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),s7=!0),(0,rb.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${a}: ${r}`);}return(0,rb.info)(`Add ${h} to PATH`),await M(h),rx.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nx.cacheDir)(n,e,t)),{installDir:f,binDir:h};}function eC(e,t,r){var n;let i=null!==(n=c(nL)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=c(nD)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eR,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nD)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=c(nD)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function e$(e,t,r){return eA("cmake",e,eC,t,r);}function e_(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nj.call(e,0):[];}function eP(e,t){return e===t||e!=e&&t!=t;}function eN(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eL(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eL(e.fn,eN(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=eN({isEqual:void 0===r?eP:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nU[r]||(t[r]=e[r]);return t;}(t)),d=new nF(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?e_(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:e_(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function eD(e,t){return new Promise(r=>{try{let n=(0,n6.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function ek(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nB)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eU(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nG(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of ek(e,r)){let e=await n(t,o);if(null!==e){if(await nG(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function ej(e,t=am){try{var r,n;let i=await(0,nA.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",s=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=c(nL)(s))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eF(e,t,r=am){let n=await ej(e,r);return void 0!==n&&""!==t&&-1!==c(nB)(n,t);}function eM(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eG(e,t,r){let n=await eq(e,t,r);c(t9)(void 0!==n.bin);let i=n.bin;if(void 0===(await eW(i)))throw Error("pip was not installed correctly");return await eB(i),await eH(i),n;}async function eB(e){try{if(!(await e5(e)))try{await e8(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===tn("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e8(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eH(e){try{await e8(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e8(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eq(e,t,r){let n;let i=await eX(t);if(void 0!==i){let e=(0,ny.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rx.GITHUB_ACTIONS)try{(0,rb.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await ry("fEioR");await o(e,t,r),i=await eX(t);let s=(0,ny.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rb.warning)(e.toString());}void 0===n&&(n=await eV(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eX(t),n.bin=i),n;}async function eV(e,t){let r;switch(process.platform){case"win32":{e?await es("python3",t,["--params=/InstallDir:"+e]):await es("python3",t);let n=await eX(e),i=(0,ny.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ei("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,ny.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(D())r=await eu("python",t);else if(L())r=await ea([{name:"python3",version:t}]);else if(k())r=await V([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eX(e){for(let t of["python3","python"]){let r=await ez(t,e);if(void 0!==r)return r;}}async function ez(e,t){try{var r;if(void 0!==t){let r=(0,ny.join)(t,(0,ny.addExeExt)(e));if((await(0,nh.pathExists)(r))&&(await eF(r,ag.python)))return r;}for(let t of null!==(r=await c(rT)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[])if(await eF(t,ag.python))return t;}catch{}}async function eW(e){let t=await eK();return void 0===t?((0,rb.info)("pip was not found. Installing pip"),await eQ(e),eK()):t;}async function eK(){for(let e of["pip3","pip"]){let t=await eY(e);if(void 0!==t)return t;}}async function eY(e){try{var t;for(let r of null!==(t=await c(rT)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(null!==r&&(await eF(r,ag.pip)))return r;}catch{}}async function eQ(e){(await eJ(e))||(await tn("pip"),await eJ(e));}async function eJ(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rb.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rb.info)(e.toString());}}return!1;}async function eZ(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nA.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,ny.join)(r,"Scripts"),(0,ny.join)(r,"Scripts","bin"),(0,ny.join)(r,"bin")),[...new Set(t)];}function e0(e,t,r=null){return e1(t)&&"linux"===process.platform&&null!==r&&e in aE?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aE[e]):e1(t)&&e in av?av[e]:"true"===t?"":null!=t?t:"";}function e1(e){return"true"===e||void 0===e;}async function e2(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rt.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e4(){try{if(!k())return null;{try{null===c(rT).sync("lsb_release",{nothrow:!0})&&(await V([{name:"lsb-release"}]));}catch{return e3();}let e=await(0,nq.getUbuntuVersion)();if(0===e.length)return e3();return e;}}catch(e){return(0,rb.warning)(e.toString()),null;}}function e3(){if(!("version"in c(n0)&&"function"==typeof c(n0).version))return null;let e=c(n0).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e6(e,t,r={}){return e8(await aS(),e,t,r);}async function e8(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await e5(e)),c=l?"pipx":"pip";if(await tt(e,t))try{(0,nf.info)(`Installing ${t} ${null!=r?r:""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await ax(),i.PIPX_BIN_DIR=await ab()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nf.info)(`Failed to install ${t} via ${c}: ${e}.`),(await tn(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await tn(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ay(e),p=await tr(u,t);return await M(p),{binDir:p};}async function e5(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function e9(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=C("~/.local/pipx");if(await(0,nh.pathExists)(t))return t;switch(process.platform){case"win32":e=C("~/AppData/Local/pipx");break;case"darwin":e=C("~/Library/Application Support/pipx");break;default:e=C("~/.local/share/pipx");}return await ah(e),await ah((0,ny.join)(e,"trash")),await ah((0,ny.join)(e,"shared")),await ah((0,ny.join)(e,"venv")),e;}async function e7(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=C("~/.local/bin");return await M(e),await ah(e),e;}async function te(){let e=(await eG(e0("python",void 0,await aw()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function tt(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function tr(e,t){let r=(await Promise.all(e.map(e=>(0,nh.pathExists)((0,ny.join)(e,(0,ny.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(rT).sync((0,ny.addExeExt)(t),{nothrow:!0});return null!==n?(0,ny.dirname)(n):e[e.length-1];}function tn(e,t=!0){if("linux"===process.platform){if((0,nf.info)(`Installing ${e} via the system package manager`),D())return eu(t?"python-"+e:e);if(L())return ea([{name:t?"python3-"+e:e}]);if(k())return V([{name:t?"python3-"+e:e}]);}return null;}async function ti(e,t,r){switch(process.platform){case"win32":return await es("cppcheck",e),{binDir:await to()};case"darwin":return ei("cppcheck",e);case"linux":if(D())return eu("cppcheck",e);if(L())return ea([{name:"ccache",version:e}]);if(k())return V([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function to(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function ts(e,t,r){switch(process.platform){case"win32":return await es("graphviz",e),ta();case"darwin":return ei("graphviz",e);case"linux":if(D())return eu("graphviz",e);if(L())return ea([{name:"graphviz",version:e}]);if(k())return V([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ta(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}async function tl(e,t){let{ArchiveHdi:r}=await ry("aWBYj"),n=new r(e);await n.read(async e=>{await e.extract((0,n1.join)(t,e.path));});}function tc(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nx.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eR,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tl,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tu(e,t,r){switch(process.platform){case"win32":{await c(nk)(()=>es("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});let t=await tp();return await ts(e0("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ei("doxygen",void 0);return aR()[0]>11&&(await ts(e0("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||D()||L()){if(D())n=await eu("doxygen",e);else if(L())return ea([{name:"doxygen",version:e}]);else if(k())n=await V([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(k())try{n=await eA("doxygen",e,tc,t,r);try{await V([{name:"libclang-cpp9"}]);}catch(e){(0,rb.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rb.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await V([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await ts(e0("graphviz",void 0,await aw()),"",r),n;}default:throw Error("Unsupported platform");}}async function tp(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nh.pathExists)((0,ny.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function td(){if("darwin"===process.platform)try{let e=await(0,nA.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rb.error)("SDKROOT not set");}catch(e){(0,rb.error)(e);}}function tf(e,t,r){if("win32"===t){let t=aO[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eb,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function th(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await es("gcc-arm-embedded",e));try{i=await eA("g++",e,tf,t,r);}catch(t){(0,rb.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tv(e,r);}break;case"darwin":i=await ei("gcc",e);break;case"linux":"x64"===r?D()?i=await eu("gcc",e):L()?i=await ea([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):k()&&(i=await V([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rb.info)(`Install g++-multilib because gcc for ${r} was requested`),D()?await eu("gcc-multilib",e):k()&&(await V([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tg(e,i.binDir,n),i;}async function tm(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return th(e,t,r);case"linux":D()?n=await eu("mingw-w64-gcc",e):L()?n=await ea([{name:"mingw64-gcc",version:e}]):k()&&(n=await V([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tv(e,t){var r,n;let i;if(await es("mingw",e),"x64"===t&&(await(0,nh.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await M(i)):"ia32"===t&&(await(0,nh.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await M(i)):(await(0,nh.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function tg(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,ny.addExeExt)(`${t}/gcc`)),F("CXX",(0,ny.addExeExt)(`${t}/g++`)));else{var i;let o=c(nV)(null!==(i=c(nL)(e))&&void 0!==i?i:e);o>=5?(n.push(F("CC",`${t}/gcc-${o}`),F("CXX",`${t}/g++-${o}`)),k()&&n.push(ee("cc",`${t}/gcc-${o}`,r),ee("cxx",`${t}/g++-${o}`,r),ee("gcc",`${t}/gcc-${o}`,r),ee("g++",`${t}/g++-${o}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),k()&&n.push(ee("cc",`${t}/gcc-${e}`,r),ee("cxx",`${t}/g++-${e}`,r),ee("gcc",`${t}/gcc-${e}`,r),ee("g++",`${t}/g++-${e}`,r)));}n.push(td()),rx.GITHUB_ACTIONS&&(await tE()),await Promise.all(n);}async function tE(){let e=(0,ny.join)(nX,"gcc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}function ty(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eR,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tw(e,t,r){return eA("ninja",e,ty,t,r);}function tx(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:eO};}function tb(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:tS};}async function tS(e,t){let r=await eO(e,t,["--strip-components=1"]),n=await tI();"linux"===process.platform&&(D()?await Promise.all([eu("libdwarf"),eu("libcurl-openssl")]):L()?await ea([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):k()&&(await V([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(rT).sync("patch",{nothrow:!0})){let e=(0,ny.join)(nz,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rb.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,ny.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tI(){let e=c(rT).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await e$(e0("cmake",void 0,await aw()),(0,ny.join)(C("~"),"cmake"),"");e=(0,ny.join)(t,"cmake");}return null===c(rT).sync("ninja",{nothrow:!0})&&(await tw(e0("ninja",void 0,await aw()),(0,ny.join)(C("~"),"ninja"),"")),e;}async function tR(e,t,r){var n;let i;if("linux"!==process.platform){(0,rb.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await eA("kcov",s,tx,t,r),D()?await eu("binutils"):L()?await ea([{name:"binutils"}]):k()&&(await V([{name:"libbinutils"}]))):i=await eA("kcov",s,tb,t,r),i;}function tO(e){if(Object.values(aD).includes(e));else if(e in aD)return aD[e];return e;}function tT(e){let t;let r=tO(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rt.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nf.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n2.existsSync(n))return nf.info("Found with vswhere: "+n),n;nf.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aD).includes(e));else for(let[t,r]of Object.entries(aD))if(r===e)return t;return e;}(e)]:aL;for(let e of aP)for(let t of i)for(let r of aN)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nf.info("Trying standard location: "+n),n2.existsSync(n))return nf.info("Found standard location: "+n),n;if(nf.info("Not found in standard locations"),n=`${a_}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n2.existsSync(n))return nf.info("Found VS 2015: "+n),n;throw nf.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tA(e,t,r,n,i,o,s){void 0!==t&&(await(0,nh.pathExists)(t))&&((0,rb.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),await nY(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tC(e,t,r,n,i,o,s,a=aU){(0,nf.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(a$(e)),e.addEventListener("abort",()=>{l(a$(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aT();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=null!=o?o:`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(t$(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rb.error)(t),s.push(`${e} failed to install`);}return(0,nf.endGroup)(),l;}async function t$(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await tA(e0(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=aQ[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,ny.join)(o,i?"llvm":e);a=await s(e0(e,t,r),l,n);}return s.push(t1(e,a)),i;}async function t_(e,t=0){let r="/usr/lib/llvm-"+e;await V([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tP("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await V(n),await aM("/tmp/llvm-setup-cpp.sh","755"),await R("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aU}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tP(e,t,r,n){var i,o,s,a,l;let c=await aj(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tN(c),c=W()?l.replace(/apt-get/g,"nala"):l,await aF(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tN(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await et(r))&&((0,rm.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tL(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tD(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tk(e){let t;if(aB.has(e))return null;let r="LLVM-",n=c(nD)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nD)(e,"9.0.1"),o=!1;return i&&(t=tD(e,r,n),(await nG(t))||(o=!0)),(o||!i)&&(t=tL(e,r,n)),t;}function tU(e,t){switch(e){case"darwin":return function(e){if(aH.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nD)(e,"9.0.1")?tD(e,r,n):tL(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aq.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aG.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=ek(aG,e)[0];}else""!==n&&n in aV?t=aV[n]:(t=aV[aX],(0,rb.warning)(`Falling back to LLVM version ${aX} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nD)(n,"9.0.1"))?tD(n,o,r):tL(n,o,r);}(t);case"win32":return tk(t);default:return null;}}async function tj(e,t,r){let[n,i]=await eU(aG,t,e,tU);return(0,rb.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ny.addExeExt)("clang"),extractFunction:"win32"===t?eI:(e,t)=>eO(e,t,["--strip-components=1"])};}async function tF(e,t,r){var n;let i=await az(e,t,r);return await tq(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function tM(e,t,r){let[n,i,o]=await Promise.all([tG(e,t,r),aK(r),tV()]);return n;}async function tG(e,t,r,n=nQ.All){let i=parseInt(function(e){if(null===c(nH)(e))try{let t=c(nL)(e);if(null!==t)return(0,rb.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(k())return await t_(i,n);}catch(e){(0,rb.info)("Failed to install llvm via system package manager "+e);}let o=await eA("llvm",e,tj,t,r);return await aW(i),o;}async function tB(e){k()&&(e<=10?await V([{name:"libtinfo5"}]):await V([{name:"libtinfo-dev"}]));}async function tH(e){"linux"===process.platform&&(await th(e0("gcc",void 0,await aw()),"",e,40));}async function tq(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${n}`),F("DYLD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${i}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,ny.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,ny.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),td()];k()&&o.push(ee("cc",`${e}/bin/clang`,60),ee("cxx",`${e}/bin/clang++`,60),ee("clang",`${e}/bin/clang`),ee("clang++",`${e}/bin/clang++`),ee("lld",`${e}/bin/lld`),ee("ld.lld",`${e}/bin/ld.lld`),ee("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function tV(){if(rx.GITHUB_ACTIONS){let e=(0,ny.join)(nJ,"llvm_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}}async function tX(e,t,r){switch(process.platform){case"win32":return es("make",e);case"darwin":return await ei("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(D())return eu("make",e);if(L())return ea([{name:"make",version:e}]);if(k())return V([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tz(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nW(e);(0,rb.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nK(l);c=!0,(0,rb.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await es("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await es("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await es("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await es("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rb.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rb.error)(e);}await tA(l,a,r,s,n,i,o),rx.GITHUB_ACTIONS&&(await tW());}async function tW(){let e=(0,ny.join)(nZ,"msvc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}async function tK(e,t,r){if(!k())return;if("string"==typeof i)return{binDir:i};let n=c(rT).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,ny.dirname)(n)};let o=await Z("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");I("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await V([{name:"nala"}],!0):await V([{name:"nala-legacy"}],!0);}catch(e){await V([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tY(e,t,r){if("win32"===process.platform)return await es("opencppcoverage",e),{binDir:await tQ()};}async function tQ(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function tJ(e,t,r){switch(process.platform){case"win32":{await es("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return ei("powershell",e,["--cask"]);case"linux":if(D())return eu("powershell-bin",e,"yay");if(L())return ea([{name:"curl"}]),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ea([{name:"powershell",version:e}]);if(k()){await V([{name:"curl"}]);let t=await aw(),r=`${t[0]}.0${t[1]}`;return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),V([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function tZ(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eR:eO,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t0(e,t,r){return aY&&null!==c(rT).sync("vcpkg",{nothrow:!0})?{binDir:(0,ny.dirname)(c(rT).sync("vcpkg"))}:("linux"===process.platform&&(D()?await Promise.all([eu("curl"),eu("zip"),eu("unzip"),eu("tar"),eu("git"),eu("pkg-config")]):L()?await ea([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):k()&&(await V([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nh.pathExists)((0,ny.join)(t,(0,ny.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rb.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ny.dirname)(t),stdio:"inherit"}),b((0,ny.addShExt)((0,ny.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await A(t),await M(t),aY=!0,{binDir:t});}function t1(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t2(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nH)(e)||(0,rb.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nf.startGroup)(`Installing ${a} ${null!=l?l:""}`),a){case"llvm":case"clang":case"clang++":{let e=await tF(e0("llvm",l,t),(0,n1.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(t1("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e0("mingw",l,t):e0("gcc",l,t),s="mingw"===a?await tm(e,(0,n1.join)(r,"gcc"),n):await th(e,(0,n1.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=c(nH)(e),r=null!==t?c(nV)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t1("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tz(e0("msvc",l,t),(0,n1.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(t1("msvc",e));break;}case"appleclang":case"applellvm":(0,nf.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(t1("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rb.error)(t),s.push("Failed to install the "+e);}(0,nf.endGroup)();}async function t4(e){var t,r,n;let i,o,s=Promise.resolve();rx.GITHUB_ACTIONS||(s=P(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let a=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=N(t.string),t.boolean=N(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=N(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...aZ,"timeout"],default:Object.fromEntries(aZ.map(e=>[e,function(e){let t=(0,nf.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});a.help&&((0,rb.info)(` +`));}async function ei(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(r$).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nb.dirname)(i)};let o=c(n3).join((0,n4.tmpdir)(),"setup-cpp","brew");await(0,nS.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n3.join)(o,"install.sh");return"linux"===process.platform&&(0,n6.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=es(),await M(t),{binDir:t};}function es(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ea(e,t,r=[]){(0,nv.info)(`Installing ${e} ${null!=t?t:""} via brew`),sV&&null!==c(r$).sync("brew",{nothrow:!0})||(await eo("","",process.arch),sV=!0);let n=es();return b((0,nb.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function el(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=c(r$).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,nb.dirname)(o)};let s="powershell.exe",a=c(r$).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),b(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(l);let u=c(r$).sync("choco",{nothrow:!0});if(r=null!==u?(0,nb.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,ng.pathExists)(r))return{binDir:r};}async function ec(e,t,r=[]){var n;(0,rR.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sX&&null!==c(r$).sync("choco",{nothrow:!0})||(await el("","",process.arch),sX=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rR.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await M(s),{binDir:s};}async function eu(e){for(let{name:t,version:r}of e)(0,rR.info)(`Installing ${t} ${null!=r?r:""} via dnf`);return I("dnf",["-y","install",...(await Promise.all(e.map(e=>ep(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function ep(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rR.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ed(e,t,r){switch(process.platform){case"win32":return ec("bazelisk",e);case"darwin":return ea("bazelisk",e);case"linux":if(D())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await eu([{name:"dnf-plugins-core"}]),I("dnf",["copr","enable","vbatts/bazel"]),eu([{name:"bazel4"}]);if(k()){let t=await er("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return I("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),W([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ef(e,t,r){(0,rR.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===c(r$).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sz||"yay"===r||(I(n,["-Sy","--noconfirm"]),sz=!0),sW||"yay"===r||(I(n,["-S","--noconfirm","base-devel"]),sW=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):I(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eh(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rR.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eh(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sK))r.push(e[1]);}catch(e){(0,rR.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function em(e,t){let r=[];t=t||s0.arch();let n=s1.join(ex(),e);if(sJ.existsSync(n)){for(let e of sJ.readdirSync(n))if(ey(e)){let i=s1.join(n,e,t||"");sJ.existsSync(i)&&sJ.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ev(e){return nC(this,void 0,void 0,function*(){return e||(e=s1.join(eb(),s8.default())),yield sQ.mkdirP(e),e;});}function eg(e,t,r){return nC(this,void 0,void 0,function*(){let n=s1.join(ex(),e,s4.clean(t)||t,r||"");sY.debug("destination "+n);let i=`${n}.complete`;return yield sQ.rmRF(n),yield sQ.rmRF(i),yield sQ.mkdirP(n),n;});}function eE(e,t,r){let n=s1.join(ex(),e,s4.clean(t)||t,r||""),i=`${n}.complete`;sJ.writeFileSync(i,""),sY.debug("finished caching tool");}function ey(e){let t=s4.clean(e)||"";sY.debug("isExplicit: "+t);let r=null!=s4.valid(t);return sY.debug("explicit? "+r),r;}function ew(e,t){let r="";sY.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s4.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s4.satisfies(i,t)){r=i;break;}}return r?sY.debug("matched: "+r):sY.debug("match not found"),r;}function ex(){let e=process.env.RUNNER_TOOL_CACHE||"";return rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return rt.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eS(e,t){let r=ry[e];return void 0!==r?r:t;}function eI(e,t,r){switch(process.platform){case"win32":return ec("7zip",e);case"darwin":return ea("p7zip",e);case"linux":if(D())return ef("p7zip",e);if(L())return eu([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(k())return W([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eR(e,t){return await x(await eO(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await A(t),t;}async function eO(){return void 0===n&&(null===c(r$).sync("7z",{nothrow:!0})&&(await eI("","",process.arch)),n="7z"),n;}function eT(e,t){return eR(e,t);}function eA(e,t){return eR(e,t);}async function eC(e,t,r=["--strip-components=0"]){try{await(0,nS.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rR.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return A(t),t;}function e$(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new at(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nI.downloadTool)(a),{name:a,max:4,backoffBase:2e3,report:e=>(0,rR.info)(e)});ar||((0,rR.info)("Installing extraction dependencies"),"linux"===process.platform&&(D()?await Promise.all([ef("unzip"),ef("tar"),ef("xz")]):L()?await eu([{name:"unzip"},{name:"tar"},{name:"xz"}]):k()&&(await W([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),ar=!0),(0,rR.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${a}: ${r}`);}return(0,rR.info)(`Add ${h} to PATH`),await M(h),rI.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nI.cacheDir)(n,e,t)),{installDir:f,binDir:h};}function eP(e,t,r){var n;let i=null!==(n=c(nU)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=c(nj)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eA,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nj)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=c(nj)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eN(e,t,r){return e_("cmake",e,eP,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nG.call(e,0):[];}function eD(e,t){return e===t||e!=e&&t!=t;}function ek(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eU(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eU(e.fn,ek(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=ek({isEqual:void 0===r?eD:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nM[r]||(t[r]=e[r]);return t;}(t)),d=new nB(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?eL(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function ej(e,t){return new Promise(r=>{try{let n=(0,n9.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eF(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nV)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nq(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eF(e,r)){let e=await n(t,o);if(null!==e){if(await nq(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function eG(e,t=aE){try{var r,n;let i=await(0,n_.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",s=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=c(nU)(s))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eB(e,t,r=aE){let n=await eG(e,r);return void 0!==n&&""!==t&&-1!==c(nV)(n,t);}function eH(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eq(e,t,r){let n=await ez(e,t,r);c(rt)(void 0!==n.bin);let i=n.bin;if(void 0===(await eQ(i)))throw Error("pip was not installed correctly");return await eV(i),await eX(i),n;}async function eV(e){try{if(!(await te(e)))try{await e7(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===ts("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e7(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rR.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eX(e){try{await e7(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e7(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rR.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function ez(e,t,r){let n;let i=await eK(t);if(void 0!==i){let e=(0,nb.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rI.GITHUB_ACTIONS)try{(0,rR.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rb("fEioR");await o(e,t,r),i=await eK(t);let s=(0,nb.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rR.warning)(e.toString());}void 0===n&&(n=await eW(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eK(t),n.bin=i),n;}async function eW(e,t){let r;switch(process.platform){case"win32":{e?await ec("python3",t,["--params=/InstallDir:"+e]):await ec("python3",t);let n=await eK(e),i=(0,nb.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ea("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nb.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(D())r=await ef("python",t);else if(L())r=await eu([{name:"python3",version:t}]);else if(k())r=await W([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eK(e){for(let t of["python3","python"]){let r=await eY(t,e);if(void 0!==r)return r;}}async function eY(e,t){try{var r;if(void 0!==t){let r=(0,nb.join)(t,(0,nb.addExeExt)(e));if((await(0,ng.pathExists)(r))&&(await eB(r,aw.python)))return r;}for(let t of null!==(r=await c(r$)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[])if(await eB(t,aw.python))return t;}catch{}}async function eQ(e){let t=await eJ();return void 0===t?((0,rR.info)("pip was not found. Installing pip"),await e0(e),eJ()):t;}async function eJ(){for(let e of["pip3","pip"]){let t=await eZ(e);if(void 0!==t)return t;}}async function eZ(e){try{var t;for(let r of null!==(t=await c(r$)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(null!==r&&(await eB(r,aw.pip)))return r;}catch{}}async function e0(e){(await e1(e))||(await ts("pip"),await e1(e));}async function e1(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rR.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rR.info)(e.toString());}}return!1;}async function e2(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,n_.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nb.join)(r,"Scripts"),(0,nb.join)(r,"Scripts","bin"),(0,nb.join)(r,"bin")),[...new Set(t)];}function e4(e,t,r=null){return e3(t)&&"linux"===process.platform&&null!==r&&e in ax?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,ax[e]):e3(t)&&e in ay?ay[e]:"true"===t?"":null!=t?t:"";}function e3(e){return"true"===e||void 0===e;}async function e6(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{ri.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e8(){try{if(!k())return null;{try{null===c(r$).sync("lsb_release",{nothrow:!0})&&(await W([{name:"lsb-release"}]));}catch{return e5();}let e=await(0,nz.getUbuntuVersion)();if(0===e.length)return e5();return e;}}catch(e){return(0,rR.warning)(e.toString()),null;}}function e5(){if(!("version"in c(n4)&&"function"==typeof c(n4).version))return null;let e=c(n4).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e9(e,t,r={}){return e7(await aO(),e,t,r);}async function e7(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await te(e)),c=l?"pipx":"pip";if(await ti(e,t))try{(0,nv.info)(`Installing ${t} ${null!=r?r:""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aI(),i.PIPX_BIN_DIR=await aR()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nv.info)(`Failed to install ${t} via ${c}: ${e}.`),(await ts(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await ts(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ab(e),p=await to(u,t);return await M(p),{binDir:p};}async function te(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tt(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=C("~/.local/pipx");if(await(0,ng.pathExists)(t))return t;switch(process.platform){case"win32":e=C("~/AppData/Local/pipx");break;case"darwin":e=C("~/Library/Application Support/pipx");break;default:e=C("~/.local/share/pipx");}return await ag(e),await ag((0,nb.join)(e,"trash")),await ag((0,nb.join)(e,"shared")),await ag((0,nb.join)(e,"venv")),e;}async function tr(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=C("~/.local/bin");return await M(e),await ag(e),e;}async function tn(){let e=(await eq(e4("python",void 0,await aS()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function ti(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function to(e,t){let r=(await Promise.all(e.map(e=>(0,ng.pathExists)((0,nb.join)(e,(0,nb.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(r$).sync((0,nb.addExeExt)(t),{nothrow:!0});return null!==n?(0,nb.dirname)(n):e[e.length-1];}function ts(e,t=!0){if("linux"===process.platform){if((0,nv.info)(`Installing ${e} via the system package manager`),D())return ef(t?"python-"+e:e);if(L())return eu([{name:t?"python3-"+e:e}]);if(k())return W([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await ec("cppcheck",e),{binDir:await tl()};case"darwin":return ea("cppcheck",e);case"linux":if(D())return ef("cppcheck",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return W([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tl(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function tc(e,t,r){switch(process.platform){case"win32":return await ec("graphviz",e),tu();case"darwin":return ea("graphviz",e);case"linux":if(D())return ef("graphviz",e);if(L())return eu([{name:"graphviz",version:e}]);if(k())return W([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}async function tp(e,t){let{ArchiveHdi:r}=await rb("aWBYj"),n=new r(e);await n.read(async e=>{await e.extract((0,n3.join)(t,e.path));});}function td(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nI.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eA,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tp,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tf(e,t,r){switch(process.platform){case"win32":{await c(nF)(()=>ec("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rR.info)(e)});let t=await th();return await tc(e4("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ea("doxygen",void 0);return aA()[0]>11&&(await tc(e4("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||D()||L()){if(D())n=await ef("doxygen",e);else if(L())return eu([{name:"doxygen",version:e}]);else if(k())n=await W([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(k())try{n=await e_("doxygen",e,td,t,r);try{await W([{name:"libclang-cpp9"}]);}catch(e){(0,rR.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rR.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await W([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tc(e4("graphviz",void 0,await aS()),"",r),n;}default:throw Error("Unsupported platform");}}async function th(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,ng.pathExists)((0,nb.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tm(){if("darwin"===process.platform)try{let e=await(0,n_.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rR.error)("SDKROOT not set");}catch(e){(0,rR.error)(e);}}function tv(e,t,r){if("win32"===t){let t=aC[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eR,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tg(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await ec("gcc-arm-embedded",e));try{i=await e_("g++",e,tv,t,r);}catch(t){(0,rR.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await ty(e,r);}break;case"darwin":i=await ea("gcc",e);break;case"linux":"x64"===r?D()?i=await ef("gcc",e):L()?i=await eu([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):k()&&(i=await W([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rR.info)(`Install g++-multilib because gcc for ${r} was requested`),D()?await ef("gcc-multilib",e):k()&&(await W([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tw(e,i.binDir,n),i;}async function tE(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tg(e,t,r);case"linux":D()?n=await ef("mingw-w64-gcc",e):L()?n=await eu([{name:"mingw64-gcc",version:e}]):k()&&(n=await W([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function ty(e,t){var r,n;let i;if(await ec("mingw",e),"x64"===t&&(await(0,ng.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await M(i)):"ia32"===t&&(await(0,ng.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await M(i)):(await(0,ng.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function tw(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,nb.addExeExt)(`${t}/gcc`)),F("CXX",(0,nb.addExeExt)(`${t}/g++`)));else{var i;let o=c(nW)(null!==(i=c(nU)(e))&&void 0!==i?i:e);o>=5?(n.push(F("CC",`${t}/gcc-${o}`),F("CXX",`${t}/g++-${o}`)),k()&&n.push(en("cc",`${t}/gcc-${o}`,r),en("cxx",`${t}/g++-${o}`,r),en("gcc",`${t}/gcc-${o}`,r),en("g++",`${t}/g++-${o}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),k()&&n.push(en("cc",`${t}/gcc-${e}`,r),en("cxx",`${t}/g++-${e}`,r),en("gcc",`${t}/gcc-${e}`,r),en("g++",`${t}/g++-${e}`,r)));}n.push(tm()),rI.GITHUB_ACTIONS&&(await tx()),await Promise.all(n);}async function tx(){let e=(0,nb.join)(nK,"gcc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}function tb(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eA,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tS(e,t,r){return e_("ninja",e,tb,t,r);}function tI(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:eC};}function tR(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:tO};}async function tO(e,t){let r=await eC(e,t,["--strip-components=1"]),n=await tT();"linux"===process.platform&&(D()?await Promise.all([ef("libdwarf"),ef("libcurl-openssl")]):L()?await eu([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):k()&&(await W([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(r$).sync("patch",{nothrow:!0})){let e=(0,nb.join)(nY,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rR.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nb.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tT(){let e=c(r$).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eN(e4("cmake",void 0,await aS()),(0,nb.join)(C("~"),"cmake"),"");e=(0,nb.join)(t,"cmake");}return null===c(r$).sync("ninja",{nothrow:!0})&&(await tS(e4("ninja",void 0,await aS()),(0,nb.join)(C("~"),"ninja"),"")),e;}async function tA(e,t,r){var n;let i;if("linux"!==process.platform){(0,rR.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await e_("kcov",s,tI,t,r),D()?await ef("binutils"):L()?await eu([{name:"binutils"}]):k()&&(await W([{name:"libbinutils"}]))):i=await e_("kcov",s,tR,t,r),i;}function tC(e){if(Object.values(aj).includes(e));else if(e in aj)return aj[e];return e;}function t$(e){let t;let r=tC(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return ri.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nv.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n6.existsSync(n))return nv.info("Found with vswhere: "+n),n;nv.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aj).includes(e));else for(let[t,r]of Object.entries(aj))if(r===e)return t;return e;}(e)]:aU;for(let e of aD)for(let t of i)for(let r of ak)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nv.info("Trying standard location: "+n),n6.existsSync(n))return nv.info("Found standard location: "+n),n;if(nv.info("Not found in standard locations"),n=`${aL}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n6.existsSync(n))return nv.info("Found VS 2015: "+n),n;throw nv.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function t_(e,t,r,n,i,o,s){void 0!==t&&(await(0,ng.pathExists)(t))&&((0,rR.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),await nZ(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tP(e,t,r,n,i,o,s,a=aM){(0,nv.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aN(e)),e.addEventListener("abort",()=>{l(aN(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new a$();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=null!=o?o:`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tN(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rR.error)(t),s.push(`${e} failed to install`);}return(0,nv.endGroup)(),l;}async function tN(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await t_(e4(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=a0[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nb.join)(o,i?"llvm":e);a=await s(e4(e,t,r),l,n);}return s.push(t3(e,a)),i;}async function tL(e,t=0){let r="/usr/lib/llvm-"+e;await W([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tD("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await W(n),await aH("/tmp/llvm-setup-cpp.sh","755"),await R("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aM}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tD(e,t,r,n){var i,o,s,a,l;let c=await aG(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tk(c),c=Q()?l.replace(/apt-get/g,"nala"):l,await aB(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tk(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await ei(r))&&((0,rE.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tU(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tj(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tF(e){let t;if(aV.has(e))return null;let r="LLVM-",n=c(nj)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nj)(e,"9.0.1"),o=!1;return i&&(t=tj(e,r,n),(await nq(t))||(o=!0)),(o||!i)&&(t=tU(e,r,n)),t;}function tM(e,t){switch(e){case"darwin":return function(e){if(aX.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nj)(e,"9.0.1")?tj(e,r,n):tU(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=az.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aq.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eF(aq,e)[0];}else""!==n&&n in aW?t=aW[n]:(t=aW[aK],(0,rR.warning)(`Falling back to LLVM version ${aK} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nj)(n,"9.0.1"))?tj(n,o,r):tU(n,o,r);}(t);case"win32":return tF(t);default:return null;}}async function tG(e,t,r){let[n,i]=await eM(aq,t,e,tM);return(0,rR.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nb.addExeExt)("clang"),extractFunction:"win32"===t?eT:(e,t)=>eC(e,t,["--strip-components=1"])};}async function tB(e,t,r){var n;let i=await aY(e,t,r);return await tz(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function tH(e,t,r){let[n,i,o]=await Promise.all([tq(e,t,r),aJ(r),tW()]);return n;}async function tq(e,t,r,n=n0.All){let i=parseInt(function(e){if(null===c(nX)(e))try{let t=c(nU)(e);if(null!==t)return(0,rR.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(k())return await tL(i,n);}catch(e){(0,rR.info)("Failed to install llvm via system package manager "+e);}let o=await e_("llvm",e,tG,t,r);return await aQ(i),o;}async function tV(e){k()&&(e<=10?await W([{name:"libtinfo5"}]):await W([{name:"libtinfo-dev"}]));}async function tX(e){"linux"===process.platform&&(await tg(e4("gcc",void 0,await aS()),"",e,40));}async function tz(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${n}`),F("DYLD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${i}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,nb.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,nb.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),tm()];k()&&o.push(en("cc",`${e}/bin/clang`,60),en("cxx",`${e}/bin/clang++`,60),en("clang",`${e}/bin/clang`),en("clang++",`${e}/bin/clang++`),en("lld",`${e}/bin/lld`),en("ld.lld",`${e}/bin/ld.lld`),en("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function tW(){if(rI.GITHUB_ACTIONS){let e=(0,nb.join)(n1,"llvm_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}}async function tK(e,t,r){switch(process.platform){case"win32":return ec("make",e);case"darwin":return await ea("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(D())return ef("make",e);if(L())return eu([{name:"make",version:e}]);if(k())return W([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tY(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nQ(e);(0,rR.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nJ(l);c=!0,(0,rR.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await ec("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await ec("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await ec("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await ec("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rR.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rR.error)(e);}await t_(l,a,r,s,n,i,o),rI.GITHUB_ACTIONS&&(await tQ());}async function tQ(){let e=(0,nb.join)(n2,"msvc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rR.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rR.info)("::add-matcher::"+e);}async function tJ(e,t,r){if(!k())return;if("string"==typeof i)return{binDir:i};let n=c(r$).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nb.dirname)(n)};let o=await er("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");I("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await W([{name:"nala"}],!0):await W([{name:"nala-legacy"}],!0);}catch(e){await W([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tZ(e,t,r){if("win32"===process.platform)return await ec("opencppcoverage",e),{binDir:await t0()};}async function t0(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function t1(e,t,r){switch(process.platform){case"win32":{await ec("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return ea("powershell",e,["--cask"]);case"linux":if(D())return ef("powershell-bin",e,"yay");if(L())return eu([{name:"curl"}]),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),eu([{name:"powershell",version:e}]);if(k()){await W([{name:"curl"}]);let t=await aS(),r=`${t[0]}.0${t[1]}`;return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),W([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function t2(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eA:eC,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t4(e,t,r){return aZ&&null!==c(r$).sync("vcpkg",{nothrow:!0})?{binDir:(0,nb.dirname)(c(r$).sync("vcpkg"))}:("linux"===process.platform&&(D()?await Promise.all([ef("curl"),ef("zip"),ef("unzip"),ef("tar"),ef("git"),ef("pkg-config")]):L()?await eu([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):k()&&(await W([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,ng.pathExists)((0,nb.join)(t,(0,nb.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rR.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nb.dirname)(t),stdio:"inherit"}),b((0,nb.addShExt)((0,nb.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await A(t),await M(t),aZ=!0,{binDir:t});}function t3(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t6(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nX)(e)||(0,rR.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nv.startGroup)(`Installing ${a} ${null!=l?l:""}`),a){case"llvm":case"clang":case"clang++":{let e=await tB(e4("llvm",l,t),(0,n3.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(t3("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e4("mingw",l,t):e4("gcc",l,t),s="mingw"===a?await tE(e,(0,n3.join)(r,"gcc"),n):await tg(e,(0,n3.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=c(nX)(e),r=null!==t?c(nW)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t3("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tY(e4("msvc",l,t),(0,n3.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(t3("msvc",e));break;}case"appleclang":case"applellvm":(0,nv.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(t3("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rR.error)(t),s.push("Failed to install the "+e);}(0,nv.endGroup)();}async function t8(e){var t,r,n;let i,o,s=Promise.resolve();rI.GITHUB_ACTIONS||(s=P(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let a=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=N(t.string),t.boolean=N(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=N(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...a2,"timeout"],default:Object.fromEntries(a2.map(e=>[e,function(e){let t=(0,nv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});a.help&&((0,rR.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true @@ -25,15 +25,15 @@ Install all the tools required for building and testing C++/C projects. --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: -`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=a.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:C("~"),p=[],d=[],f=rR.create({autoloadLocales:!0});rR.addLocale(c(rO)),rS.addLocale(c(rI));let h=await aw();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e1(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(a,["llvm","clangtidy","clangformat"]))return(0,rb.error)("The same version must be used for llvm, clangformat and clangtidy"),1;D()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,rb.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let m=!1,v=!1;for(let e of aJ){if(rx.isCI&&0!==d.length){v=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await tC(e,t,h,l,u,p,d,6e4*parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rb.info)("took "+(f.format(i,o)||"0 seconds")));}if(!v){let e=a.compiler;if(void 0!==e){let t=Date.now();await t2(e,h,u,l,p,m,d);let r=Date.now();(0,rb.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await q(),0===p.length&&0===d.length)return(0,rb.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(p.forEach(e=>(0,rb.success)(e)),d.forEach(e=>(0,rb.error)(e)),(0,rb.info)("setup-cpp finished"),!rx.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rb.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rb.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await s,0===d.length?0:1;}var t3,t6,t8,t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rS,rI,rR,rO,rT,rA,rC,r$,r_,rP,rN,rL,rD,rk,rU,rj,rF,rM,rG,rB,rH,rq,rV,rX,rz,rW,rK,rY,rQ,rJ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nS,nI,nR,nO,nT,nA,nC,n$,n_,nP,nN,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nq,nV,nX,nz,nW,nK,nY,nQ,nJ,nZ,n0=require("os"),n1=require("path"),n2=require("fs"),n4=require("crypto"),n3=require("http"),n6=require("https");require("net"),t8=require("tls"),t5=require("events"),t9=require("assert"),t7=require("util"),re=require("fs"),rt=require("child_process"),rr=require("string_decoder"),rn=require("timers"),ri=require("buffer"),ro=require("path"),rs=require("child_process"),ra=require("process"),rl=require("url"),rc=require("os"),ru=require("buffer"),rp=require("stream"),rd=require("util"),rf=require("process"),rh=require("url"),rm=require("console"),rg={},rE={},null==(ry=(rv=globalThis).parcelRequire810d)&&((ry=function(e){if(e in rg)return rg[e].exports;if(e in rE){var t=rE[e];delete rE[e];var r={id:e,exports:{}};return rg[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rE[e]=t;},rv.parcelRequire810d=ry),(rw=ry.register)("dAuy6",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=ry("5vZJI");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rw("5vZJI",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rw("hHq4F",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=ry("1o3Gj"),n=ry("dAuy6");}),rw("1o3Gj",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=ry("1g3mY"),a=ry("8prV6"),l=ry("5nnws");let E=i(n0),y=i(n1);c=ry("dU1e3"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=ry("dV9Cu"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=ry("dV9Cu"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=ry("9i0tI"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rw("1g3mY",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n0);o=ry("5nnws"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rw("5nnws",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rw("8prV6",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n2),l=i(n0);o=ry("1Un9O"),s=ry("5nnws"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rw("1Un9O",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=ry("jyKkd"),n=ry("4DdbA"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rw("jyKkd",function(e,t){function r(){return i>n.length-16&&(c(n4).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rw("4DdbA",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("4XBHo");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rw("4XBHo",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("dcWu5"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rw("dcWu5",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rw("dU1e3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=ry("eamjo"),i=ry("h6tQO"),o=ry("1o3Gj");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. +`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=a.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:C("~"),p=[],d=[],f=rA.create({autoloadLocales:!0});rA.addLocale(c(rC)),rO.addLocale(c(rT));let h=await aS();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e3(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(a,["llvm","clangtidy","clangformat"]))return(0,rR.error)("The same version must be used for llvm, clangformat and clangtidy"),1;D()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,rR.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ef("python-pygments"));let m=!1,v=!1;for(let e of a1){if(rI.isCI&&0!==d.length){v=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await tP(e,t,h,l,u,p,d,6e4*parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rR.info)("took "+(f.format(i,o)||"0 seconds")));}if(!v){let e=a.compiler;if(void 0!==e){let t=Date.now();await t6(e,h,u,l,p,m,d);let r=Date.now();(0,rR.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await z(),0===p.length&&0===d.length)return(0,rR.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(p.forEach(e=>(0,rR.success)(e)),d.forEach(e=>(0,rR.error)(e)),(0,rR.info)("setup-cpp finished"),!rI.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rR.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rR.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await s,0===d.length?0:1;}var t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rS,rI,rR,rO,rT,rA,rC,r$,r_,rP,rN,rL,rD,rk,rU,rj,rF,rM,rG,rB,rH,rq,rV,rX,rz,rW,rK,rY,rQ,rJ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nS,nI,nR,nO,nT,nA,nC,n$,n_,nP,nN,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nq,nV,nX,nz,nW,nK,nY,nQ,nJ,nZ,n0,n1,n2,n4=require("os"),n3=require("path"),n6=require("fs"),n8=require("crypto"),n5=require("http"),n9=require("https");require("net"),t7=require("tls"),re=require("events"),rt=require("assert"),rr=require("util"),rn=require("fs"),ri=require("child_process"),ro=require("string_decoder"),rs=require("timers"),ra=require("buffer"),rl=require("path"),rc=require("child_process"),ru=require("process"),rp=require("url"),rd=require("os"),rf=require("buffer"),rh=require("stream"),rm=require("util"),rv=require("process"),rg=require("url"),rE=require("console"),rw={},rx={},null==(rb=(ry=globalThis).parcelRequire810d)&&((rb=function(e){if(e in rw)return rw[e].exports;if(e in rx){var t=rx[e];delete rx[e];var r={id:e,exports:{}};return rw[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rx[e]=t;},ry.parcelRequire810d=rb),(rS=rb.register)("dAuy6",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rb("5vZJI");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rS("5vZJI",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rS("hHq4F",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rb("1o3Gj"),n=rb("dAuy6");}),rS("1o3Gj",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=rb("1g3mY"),a=rb("8prV6"),l=rb("5nnws");let E=i(n4),y=i(n3);c=rb("dU1e3"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=rb("dV9Cu"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rb("dV9Cu"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rb("9i0tI"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rS("1g3mY",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n4);o=rb("5nnws"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rS("5nnws",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rS("8prV6",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n6),l=i(n4);o=rb("1Un9O"),s=rb("5nnws"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rS("1Un9O",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rb("jyKkd"),n=rb("4DdbA"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rS("jyKkd",function(e,t){function r(){return i>n.length-16&&(c(n8).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rS("4DdbA",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("4XBHo");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rS("4XBHo",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("dcWu5"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rS("dcWu5",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rS("dU1e3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rb("eamjo"),i=rb("h6tQO"),o=rb("1o3Gj");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} - Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rw("eamjo",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n3),d=i(n6),f=i(ry("jnrYh")),h=i(ry("3RDK7"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rw("jnrYh",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rw("3RDK7",function(e,t){e.exports=ry("jZQ4B");}),rw("jZQ4B",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n3.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t8.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n3.request,t;},n=function(e){var t=new c(e);return t.request=n3.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n6.request,t;},o=function(e){var t=new c(e);return t.request=n6.request,t.createSocket=u,t.defaultPort=443,t;},t7.inherits(c,t5.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rw("h6tQO",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rw("dV9Cu",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n2.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n2.constants.R_OK|n2.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n0.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rw("9i0tI",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n1);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rw("kswPT",function(e,t){var r=n1.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rw("foOBZ",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=ry("6OFKY"),i=ry("5GOZM");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rw("6OFKY",function(e,t){e.exports=ry("kswPT");}),rw("5GOZM",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rw("2Bbmx",function(e,t){l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>R),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n2.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:S,unlink:I,utimes:R,writeFile:O}=n2.promises,T="rm"in n2.promises?n2.promises.rm:(0,t7.promisify)(n2.unlink);}),rw("8nJMC",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rw("iXsaM",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rw("jl9Uf",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rw("8cXe9",function(e,t){var r=ry("jl9Uf"),n=ry("iXsaM"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=ry("hhSwF"),a=s.safeRe,l=s.t,c=ry("5v8m5"),u=ry("dAM2Q").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rw("5v8m5",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rw("dAM2Q",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rw("cHnHr",function(e,t){var r=ry("8cXe9");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rw("2kZmC",function(e,t){var r=ry("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rw("3Ixw1",function(e,t){var r=ry("cHnHr");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rw("5r5vN",function(e,t){var r=ry("8cXe9");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rw("bDrwm",function(e,t){var r=ry("cHnHr");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rw("lORAA",function(e,t){var r=ry("8cXe9");e.exports=(e,t)=>new r(e,t).major;}),rw("2Lh6z",function(e,t){var r=ry("8cXe9");e.exports=(e,t)=>new r(e,t).minor;}),rw("73KaH",function(e,t){var r=ry("8cXe9");e.exports=(e,t)=>new r(e,t).patch;}),rw("j5Xr5",function(e,t){var r=ry("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rw("jDqfd",function(e,t){var r=ry("8cXe9");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rw("2QKGl",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>r(t,e,n);}),rw("3puHo",function(e,t){var r=ry("jDqfd");e.exports=(e,t)=>r(e,t,!0);}),rw("7qrQi",function(e,t){var r=ry("8cXe9");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rw("hZ1Xd",function(e,t){var r=ry("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rw("3YOIj",function(e,t){var r=ry("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rw("cOpcP",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>0;}),rw("58P10",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>0>r(e,t,n);}),rw("lTmeS",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>0===r(e,t,n);}),rw("jzqBf",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>0!==r(e,t,n);}),rw("3XWvL",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rw("hlfY9",function(e,t){var r=ry("jDqfd");e.exports=(e,t,n)=>0>=r(e,t,n);}),rw("84iFB",function(e,t){var r=ry("lTmeS"),n=ry("jzqBf"),i=ry("cOpcP"),o=ry("3XWvL"),s=ry("58P10"),a=ry("hlfY9");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rw("6v1Be",function(e,t){var r=ry("8cXe9"),n=ry("cHnHr"),i=ry("hhSwF"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rw("1bxhC",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=ry("5v8m5"),o=ry("hhSwF"),s=o.safeRe,a=o.t,l=ry("84iFB"),c=ry("jl9Uf"),u=ry("8cXe9"),p=ry("bswWF");}),rw("bswWF",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,$(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>C(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=I(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=A(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},I=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},A=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),C=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rw("31A6g",function(e,t){var r=ry("i08Cw");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rw("i08Cw",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rw("4zfp3",function(e,t){var r=ry("bswWF");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rw("ga5uZ",function(e,t){var r=ry("8cXe9"),n=ry("bswWF");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("lPGVL",function(e,t){var r=ry("8cXe9"),n=ry("bswWF");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("1I8AA",function(e,t){var r=ry("8cXe9"),n=ry("bswWF"),i=ry("cOpcP");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rw("dBtft",function(e,t){var r=ry("bswWF");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rw("83Sp2",function(e,t){var r=ry("8cXe9"),n=ry("1bxhC");let{ANY:i}=n;var o=ry("bswWF"),s=ry("42oIR"),a=ry("cOpcP"),l=ry("58P10"),c=ry("hlfY9"),u=ry("3XWvL");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rw("eK4my",function(e,t){var r=ry("83Sp2");e.exports=(e,t,n)=>r(e,t,">",n);}),rw("eNXBI",function(e,t){var r=ry("83Sp2");e.exports=(e,t,n)=>r(e,t,"<",n);}),rw("kHzUo",function(e,t){var r=ry("bswWF");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rw("1x2XZ",function(e,t){var r=ry("42oIR"),n=ry("jDqfd");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rw("6t4SD",function(e,t){async function r(e){try{return await(0,re.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rw("8CJZb",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rw("eAXk4",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n1.basename)(e):(0,n1.basename)(e,(0,n1.extname)(e));}function w(e){return(0,n1.normalize)(e).replace(RegExp((0,r.default)(n1.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n1.extname)(e),n=`${t}${(0,n1.basename)(e,r)}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function S(e,t){let r=(0,n1.extname)(e),n=`${(0,n1.basename)(e,r)}${t}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function R(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n1.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function A(e,t){let r=(0,n1.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n1.sep)||r===(0,n1.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>R),l(e.exports,"dirname",()=>n1.dirname),l(e.exports,"join",()=>n1.join),r=ry("f44Uw"),n=ry("fBJE3"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>S),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>R),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>A),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rw("f44Uw",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rw("fBJE3",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n1.basename(e,n1.extname(e))+t,i=n1.join(n1.dirname(e),n);return(r=e.slice(0,2))==="."+n1.sep||"./"===r?"."+n1.sep+i:i;};}),rw("zdagz",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){t9.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n1),p=i(ry("fwMQK"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rw("fwMQK",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n2),c=i(n1);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rw("gn8Si",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(ry("0306Y"));s=ry("1o3Gj"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n0.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n0.platform(),r="";if("darwin"===t)r=rt.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n2.existsSync(e)?r=n2.readFileSync(e).toString():n2.existsSync(t)&&(r=n2.readFileSync(t).toString()),r;};}),rw("0306Y",function(e,t){function r(e){C[e]=$++;}function n(e){for(var t=0;tS||!(t.loose?T[C.LOOSE]:T[C.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>S)throw TypeError("version is longer than "+S+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[C.LOOSE]:T[C.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",S=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,R=S-6,O=t.re=[],T=t.safeRe=[],A=t.src=[],C=t.tokens={},$=0,P=[["\\s",1],["\\d",S],[_="[a-zA-Z0-9-]",R]],r("NUMERICIDENTIFIER"),A[C.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),A[C.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),A[C.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),A[C.MAINVERSION]="("+A[C.NUMERICIDENTIFIER]+")\\.("+A[C.NUMERICIDENTIFIER]+")\\.("+A[C.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),A[C.MAINVERSIONLOOSE]="("+A[C.NUMERICIDENTIFIERLOOSE]+")\\.("+A[C.NUMERICIDENTIFIERLOOSE]+")\\.("+A[C.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),A[C.PRERELEASEIDENTIFIER]="(?:"+A[C.NUMERICIDENTIFIER]+"|"+A[C.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),A[C.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[C.NUMERICIDENTIFIERLOOSE]+"|"+A[C.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),A[C.PRERELEASE]="(?:-("+A[C.PRERELEASEIDENTIFIER]+"(?:\\."+A[C.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),A[C.PRERELEASELOOSE]="(?:-?("+A[C.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[C.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),A[C.BUILDIDENTIFIER]=_+"+",r("BUILD"),A[C.BUILD]="(?:\\+("+A[C.BUILDIDENTIFIER]+"(?:\\."+A[C.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),A[C.FULLPLAIN]="v?"+A[C.MAINVERSION]+A[C.PRERELEASE]+"?"+A[C.BUILD]+"?",A[C.FULL]="^"+A[C.FULLPLAIN]+"$",r("LOOSEPLAIN"),A[C.LOOSEPLAIN]="[v=\\s]*"+A[C.MAINVERSIONLOOSE]+A[C.PRERELEASELOOSE]+"?"+A[C.BUILD]+"?",r("LOOSE"),A[C.LOOSE]="^"+A[C.LOOSEPLAIN]+"$",r("GTLT"),A[C.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),A[C.XRANGEIDENTIFIERLOOSE]=A[C.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),A[C.XRANGEIDENTIFIER]=A[C.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),A[C.XRANGEPLAIN]="[v=\\s]*("+A[C.XRANGEIDENTIFIER]+")(?:\\.("+A[C.XRANGEIDENTIFIER]+")(?:\\.("+A[C.XRANGEIDENTIFIER]+")(?:"+A[C.PRERELEASE]+")?"+A[C.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),A[C.XRANGEPLAINLOOSE]="[v=\\s]*("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:"+A[C.PRERELEASELOOSE]+")?"+A[C.BUILD]+"?)?)?",r("XRANGE"),A[C.XRANGE]="^"+A[C.GTLT]+"\\s*"+A[C.XRANGEPLAIN]+"$",r("XRANGELOOSE"),A[C.XRANGELOOSE]="^"+A[C.GTLT]+"\\s*"+A[C.XRANGEPLAINLOOSE]+"$",r("COERCE"),A[C.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[C.COERCERTL]=RegExp(A[C.COERCE],"g"),T[C.COERCERTL]=RegExp(n(A[C.COERCE]),"g"),r("LONETILDE"),A[C.LONETILDE]="(?:~>?)",r("TILDETRIM"),A[C.TILDETRIM]="(\\s*)"+A[C.LONETILDE]+"\\s+",O[C.TILDETRIM]=RegExp(A[C.TILDETRIM],"g"),T[C.TILDETRIM]=RegExp(n(A[C.TILDETRIM]),"g"),r("TILDE"),A[C.TILDE]="^"+A[C.LONETILDE]+A[C.XRANGEPLAIN]+"$",r("TILDELOOSE"),A[C.TILDELOOSE]="^"+A[C.LONETILDE]+A[C.XRANGEPLAINLOOSE]+"$",r("LONECARET"),A[C.LONECARET]="(?:\\^)",r("CARETTRIM"),A[C.CARETTRIM]="(\\s*)"+A[C.LONECARET]+"\\s+",O[C.CARETTRIM]=RegExp(A[C.CARETTRIM],"g"),T[C.CARETTRIM]=RegExp(n(A[C.CARETTRIM]),"g"),r("CARET"),A[C.CARET]="^"+A[C.LONECARET]+A[C.XRANGEPLAIN]+"$",r("CARETLOOSE"),A[C.CARETLOOSE]="^"+A[C.LONECARET]+A[C.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),A[C.COMPARATORLOOSE]="^"+A[C.GTLT]+"\\s*("+A[C.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),A[C.COMPARATOR]="^"+A[C.GTLT]+"\\s*("+A[C.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),A[C.COMPARATORTRIM]="(\\s*)"+A[C.GTLT]+"\\s*("+A[C.LOOSEPLAIN]+"|"+A[C.XRANGEPLAIN]+")",O[C.COMPARATORTRIM]=RegExp(A[C.COMPARATORTRIM],"g"),T[C.COMPARATORTRIM]=RegExp(n(A[C.COMPARATORTRIM]),"g"),N="$1$2$3",r("HYPHENRANGE"),A[C.HYPHENRANGE]="^\\s*("+A[C.XRANGEPLAIN]+")\\s+-\\s+("+A[C.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),A[C.HYPHENRANGELOOSE]="^\\s*("+A[C.XRANGEPLAINLOOSE]+")\\s+-\\s+("+A[C.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),A[C.STAR]="(<|>)?=?\\s*\\*";for(var b,S,I,R,O,T,A,C,$,_,P,N,L,D,k=0;k<$;k++)b(k,A[k]),O[k]||(O[k]=new RegExp(A[k]),T[k]=new RegExp(n(A[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,D={},m.prototype.parse=function(e){var t=this.options.loose?T[C.COMPARATORLOOSE]:T[C.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=D;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[C.HYPHENRANGELOOSE]:T[C.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[C.COMPARATORTRIM],N),b("comparator trim",e,T[C.COMPARATORTRIM]),e=(e=(e=e.replace(T[C.TILDETRIM],"$1~")).replace(T[C.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[C.COMPARATORLOOSE]:T[C.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[C.CARETLOOSE]:T[C.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[C.TILDELOOSE]:T[C.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[C.XRANGELOOSE]:T[C.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[C.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[C.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[C.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[C.COERCERTL].lastIndex=-1;}else n=e.match(T[C.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rw("GX8zo",function(e,t){var r=ry("7qQbq"),n=ry("c22IK");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rw("7qQbq",function(e,t){e.exports=function(){return n4.randomBytes(16);};}),rw("c22IK",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rw("bHzmH",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(ry("iYbsa"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new rr.StringDecoder("utf8"),c=new rr.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rw("iYbsa",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n0),a=i(t5),l=i(rt),c=i(n1),u=i(ry("zdagz")),p=i(ry("fwMQK")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rn.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rw("fEioR",function(e,t){e.exports=Promise.resolve(require("./actions_python.1abb15a9.js")).then(()=>ry("8L9T2"));}),rw("aWBYj",function(e,t){e.exports=Promise.resolve(require("./hdi.09e25805.js")).then(()=>ry("1PWvB"));}),rx=ry("dAuy6"),rb=ry("hHq4F"),rS=ry("6OFKY"),function(){ry("kswPT").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rI={}),rR={},rR=ry("foOBZ"),rO={},rO={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rT={},l(rA={},"isexe",()=>n8),l(rA,"sync",()=>n5),rC=ry("2Bbmx");const n8=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n9(await(0,rC.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n5=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n9((0,n2.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n9=(e,t)=>e.isFile()&&n7(e,t),n7=(e,t)=>{var r,n,i,o,s,a,l,c,u,p,d;let f=null!==(l=t.uid)&&void 0!==l?l:null===(r=(n=process).getuid)||void 0===r?void 0:r.call(n),h=null!==(u=null!==(c=t.groups)&&void 0!==c?c:null===(i=(o=process).getgroups)||void 0===i?void 0:i.call(o))&&void 0!==u?u:[],m=null!==(d=null!==(p=t.gid)&&void 0!==p?p:null===(s=(a=process).getgid)||void 0===s?void 0:s.call(a))&&void 0!==d?d:h[0];if(void 0===f||void 0===m)throw Error("cannot get uid or gid");let v=new Set([m,...h]),g=e.mode,E=e.uid,y=e.gid,w=parseInt("100",8),x=parseInt("010",8);return!!(g&parseInt("001",8)||g&x&&v.has(y)||g&w&&E===f||g&(w|x)&&0===f);};l(r$={},"isexe",()=>ie),l(r$,"sync",()=>it),rC=ry("2Bbmx");const ie=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii(await(0,rC.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii((0,n2.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ir=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&ir(t,r),io="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?r$:rA,is=io.isexe,ia=io.sync;r_=n1.join,rP=n1.delimiter,rN=n1.sep,rL=n1.posix;const il="win32"===process.platform,ic=new RegExp(`[${rL.sep}${rN===rL.sep?"":rN}]`.replace(/(\\)/g,"\\$1")),iu=RegExp("^\\."+ic.source),ip=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),id=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rP})=>{let i=e.match(ic)?[""]:[...(il?[process.cwd()]:[]),...(t||"").split(n)];if(il){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ih=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&iu.test(t)?t.slice(0,2):"")+r_(r,t);},im=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(await is(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);};rT=im,im.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(ia(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);},rD={},rk={},rU={},rj={};const iv="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ig=iv?";":":";rF={},"win32"===process.platform||rv.TESTING_WINDOWS?rM=ry("8nJMC"):rM=ry("lo7XV"),rF=u,u.sync=function(e,t){try{return rM.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iE=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iy=(e,t)=>{let r=t.colon||ig,n=e.match(/\//)||iv&&e.match(/\\/)?[""]:[...(iv?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iv?i.split(r):[""];return iv&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iw=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=iy(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iE(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n1.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rF(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rj=iw,iw.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iy(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rG=ix).default=ix,rU=function(e){return p(e)||p(e,!0);};rB=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rH=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rq={},rV={},rX={},rX=/^#!(.*)/,rV=(e="")=>{let t=e.match(rX);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rq=function(e){let t;let r=Buffer.alloc(150);try{t=n2.openSync(e,"r"),n2.readSync(t,r,0,150,0),n2.closeSync(t);}catch(e){}return rV(r.toString());};const ib="win32"===process.platform;rk=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!ib)return e;let t=function(e){e.file=rU(e);let t=e.file&&rq(e.file);return t?(e.args.unshift(e.file),e.command=t,rU(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n1.normalize(e.command),e.command=rB(e.command),e.args=e.args.map(e=>rH(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rz={};const iS="win32"===process.platform;rz={hookChildProcess:function(e,t){if(!iS)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iS&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rD=h).spawn=h,rD.sync=function(e,t,r){let n=rk(e,t,r),i=rt.spawnSync(n.command,n.args,n.options);return i.error=i.error||rz.verifyENOENTSync(i.status,n),i;},rD._parse=rk,rD._enoent=rz;const iI=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iR(i,o)||!n)&&Object.defineProperty(e,r,o);},iR=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iO=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iT=(e,t)=>`/* Wrapped ${e}*/ -${t}`,iA=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iC=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),i$=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iT.bind(null,n,t.toString());Object.defineProperty(i,"name",iC),Object.defineProperty(e,"toString",{...iA,value:i});},i_=new WeakMap(),iP=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(i_.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iI(e,t,n,r);iO(e,t),i$(e,t,n);}(o,e),i_.set(o,n),o;};iP.callCount=e=>{if(!i_.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i_.get(e);},rW=iP;const iN=()=>Array.from({length:ik-iD+1},iL),iL=(e,t)=>({name:"SIGRT"+(t+1),number:iD+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iD=34,ik=64,iU=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],ij=()=>[...iU,...iN()].map(iF),iF=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rc.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iM=Object.fromEntries(ij().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iG=(e,t)=>{let r=iB(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iB=(e,t)=>{let r=t.find(({name:t})=>rc.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=ij();return Object.assign({},...Array.from({length:ik+1},(t,r)=>iG(r,e)));})();const iH=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iq=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ra).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iM[i].description,m=iH({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} -${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iV=["stdin","stdout","stderr"],iX=e=>iV.some(t=>void 0!==e[t]),iz=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iV.map(t=>e[t]);if(iX(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iV.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iV.length)},(e,r)=>t[r]);};rK={};const iW=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iW(rY=rv.process)){var iK,iY=t9,iQ=ry("dVIKq"),iJ=/^win/i.test(rY.platform),iZ=t5;"function"!=typeof iZ&&(iZ=iZ.EventEmitter),rY.__signal_exit_emitter__?iK=rY.__signal_exit_emitter__:((iK=rY.__signal_exit_emitter__=new iZ()).count=0,iK.emitted={}),iK.infinite||(iK.setMaxListeners(1/0),iK.infinite=!0);var i0=function(){i4&&iW(rv.process)&&(i4=!1,iQ.forEach(function(e){try{rY.removeListener(e,i2[e]);}catch(e){}}),rY.emit=i5,rY.reallyExit=i6,iK.count-=1);};(rK=function(e,t){if(!iW(rv.process))return function(){};iY.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i4&&i3();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iK.on(r,e),function(){iK.removeListener(r,e),0===iK.listeners("exit").length&&0===iK.listeners("afterexit").length&&i0();};}).unload=i0;var i1=function(e,t,r){iK.emitted[e]||(iK.emitted[e]=!0,iK.emit(e,t,r));},i2={};iQ.forEach(function(e){i2[e]=function(){iW(rv.process)&&rY.listeners(e).length===iK.count&&(i0(),i1("exit",null,e),i1("afterexit",null,e),iJ&&"SIGHUP"===e&&(e="SIGINT"),rY.kill(rY.pid,e));};}),rK.signals=function(){return iQ;};var i4=!1,i3=function(){!i4&&iW(rv.process)&&(i4=!0,iK.count+=1,iQ=iQ.filter(function(e){try{return rY.on(e,i2[e]),!0;}catch(e){return!1;}}),rY.emit=i9,rY.reallyExit=i8);};rK.load=i3;var i6=rY.reallyExit,i8=function(e){iW(rv.process)&&(rY.exitCode=e||0,i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),i6.call(rY,rY.exitCode));},i5=rY.emit,i9=function(e,t){if(!("exit"===e&&iW(rv.process)))return i5.apply(this,arguments);void 0!==t&&(rY.exitCode=t);var r=i5.apply(this,arguments);return i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),r;};}else rK=function(){return function(){};};const i7=(e,t="SIGTERM",r={})=>{let n=e(t);return oe(e,t,r,n),n;},oe=(e,t,r,n)=>{if(!ot(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},on(r));i.unref&&i.unref();},ot=(e,{forceKillAfterTimeout:t},r)=>or(e)&&!1!==t&&r,or=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),on=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oi=(e,t)=>{e.kill()&&(t.isCanceled=!0);},oo=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},os=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{oo(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oa=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},ol=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rK)(()=>{e.kill();});return n.finally(()=>{i();});},oc=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,ou=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!oc(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},op=e=>{null!==e.stdout&&(e.pipeStdout=ou.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ou.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ou.bind(void 0,e,"all"));};rQ={},rJ=ru.constants,rZ=t7.promisify,r0={},r1=rp.PassThrough,r0=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r1({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const od=rZ(rp.pipeline);class of extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(rQ=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),rQ.array=(e,t)=>w(e,{...t,array:!0}),rQ.MaxBufferError=of,r2={},r4=rp.PassThrough,r2=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r4({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const oh=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},om=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.readFileSync)(t)),ov=e=>{let t=om(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},og=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.createReadStream)(t)),oE=(e,t)=>{let r=og(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},oy=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ow=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ox=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rQ)(e,{encoding:t,maxBuffer:n}):c(rQ).buffer(e,{maxBuffer:n});},ob=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ox(e,{encoding:n,buffer:i,maxBuffer:o}),l=ox(t,{encoding:n,buffer:i,maxBuffer:o}),c=ox(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ow(e,a),ow(t,l),ow(r,c)]);}},oS=(async()=>{})().constructor.prototype,oI=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oS,e)]),oR=(e,t)=>{for(let[r,n]of oI){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oO=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),oT=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oA=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oC=(e,t)=>oT(e,t).join(" "),o$=(e,t)=>oT(e,t).map(e=>oA(e)).join(" "),o_=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},oP=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oN=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oL=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=oN(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return oN(s,Array.isArray(a)?a.map(e=>oP(e)):[oP(a)],o.endsWith(" "));},oD=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oL({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},ok=(0,rd.debuglog)("execa").enabled,oU=(e,t)=>(e+"").padStart(t,"0"),oj=()=>{let e=new Date();return`${oU(e.getHours(),2)}:${oU(e.getMinutes(),2)}:${oU(e.getSeconds(),2)}.${oU(e.getMilliseconds(),3)}`;},oF=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${oj()}] ${e} -`);},oM=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oG=(e,t,r={})=>{let n=c(rD)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:ok,...r}).env=oM(r),r.stdio=iz(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oB=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oH=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oq=(e={})=>({preferLocal:!0,...oH(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oD(n,i);return x(o,s,oq(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oD(e,r);return b(n,i,oq(t));},r;}();const oV={stdio:"inherit",shell:!0},oX=/^~(?=$|\/|\\)/;rb=ry("hHq4F"),r3={},r6=ry("coVwk"),r8=rf.env.npm_package_json,r9=!!((r5=rf.env.npm_config_user_agent)&&r5.startsWith("npm")),r7=!!(r8&&r8.endsWith("package.json")),ne=r9||r7,nt=!!(r5&&r5.startsWith("yarn")),nr=ne||nt,nn=n0.homedir(),ni=process.env.XDG_CONFIG_HOME||n1.join(nn,".config","simple-update-notifier"),no=function(e){return n1.join(ni,"".concat(e.replace("@","").replace("/","__"),".json"));},ns=function(){n2.existsSync(ni)||n2.mkdirSync(ni,{recursive:!0});},na=function(e){var t=no(e);try{if(!n2.existsSync(t))return;return JSON.parse(n2.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nl=function(e){var t=no(e);n2.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nc=function(e,t){return $(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n6.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nu=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return $(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(ns(),e=na(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nm=function(e){return oz?e.replace(/(\s+)/g,"\\$1"):oK(.../(\d+\.\d+)\.(\d+)/.exec(oW).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=ry("8CJZb"),t=function(e){return e.split("").reverse().join("");},nv=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nv={});const oY=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oQ=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iM[i].description,f=oY({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} -${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},oJ=["stdin","stdout","stderr"],oZ=e=>oJ.some(t=>void 0!==e[t]),o0=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oJ.map(t=>e[t]);if(oZ(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oJ.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oJ.length)},(e,r)=>t[r]);},o1=(e,t="SIGTERM",r={})=>{let n=e(t);return o2(e,t,r,n),n;},o2=(e,t,r,n)=>{if(!o4(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o6(r));i.unref&&i.unref();},o4=(e,{forceKillAfterTimeout:t},r)=>o3(e)&&!1!==t&&r,o3=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o6=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o8=(e,t)=>{e.kill()&&(t.isCanceled=!0);},o5=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o9=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{o5(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},o7=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},se=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rK)(()=>{e.kill();});return n.finally(()=>{i();});},st=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,sr=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!st(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},sn=e=>{null!==e.stdout&&(e.pipeStdout=sr.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=sr.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=sr.bind(void 0,e,"all"));},si=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},so=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.readFileSync)(t)),ss=e=>{let t=so(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},sa=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.createReadStream)(t)),sl=(e,t)=>{let r=sa(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sc=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},su=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sp=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rQ)(e,{encoding:t,maxBuffer:n}):c(rQ).buffer(e,{maxBuffer:n});},sd=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sp(e,{encoding:n,buffer:i,maxBuffer:o}),l=sp(t,{encoding:n,buffer:i,maxBuffer:o}),c=sp(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},su(e,a),su(t,l),su(r,c)]);}},sf=(async()=>{})().constructor.prototype,sh=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sf,e)]),sm=(e,t)=>{for(let[r,n]of sh){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sv=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sg=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sE=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sy=(e,t)=>sg(e,t).join(" "),sw=(e,t)=>sg(e,t).map(e=>sE(e)).join(" "),sx=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sb=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sS=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=sb(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sb(s,Array.isArray(a)?a.map(e=>sx(e)):[sx(a)],o.endsWith(" "));},sI=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sS({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sR=(0,rd.debuglog)("execa").enabled,sO=(e,t)=>(e+"").padStart(t,"0"),sT=()=>{let e=new Date();return`${sO(e.getHours(),2)}:${sO(e.getMinutes(),2)}:${sO(e.getSeconds(),2)}.${sO(e.getMilliseconds(),3)}`;},sA=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${sT()}] ${e} -`);},sC=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},s$=(e,t,r={})=>{let n=c(rD)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sR,...r}).env=sC(r),r.stdio=o0(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},s_=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sP=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sN=(e={})=>({preferLocal:!0,...sP(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sI(n,i);return U(o,s,sN(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sI(e,r);return function(e,t,r){let n;let i=s$(e,t,r),o=sy(e,t),s=sw(e,t);sA(s,i.options);let a=ss(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oQ({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=s_(i.options,n.stdout,n.error),u=s_(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oQ({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sN(t));},r;}(),nh=ry("6t4SD");const sL={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sD=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sk=C("~/.cpprc");let sU=!1;rb=ry("hHq4F"),ng=ry("f44Uw");const{appendFile:sj}=n2.promises;let sF=!1,sM=!1;const sG=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t3=nE||(nE={}))[t3.NameDashVersion=0]="NameDashVersion",t3[t3.NameEqualsVersion=1]="NameEqualsVersion",t3[t3.Name=2]="Name",t3[t3.None=3]="None",nf=ry("1o3Gj"),ny=ry("eAXk4"),nw=ry("zdagz"),ny=ry("eAXk4");let sB=!1;rb=ry("hHq4F"),nh=ry("6t4SD"),ny=ry("eAXk4");let sH=!1;rb=ry("hHq4F"),rb=ry("hHq4F");let sq=!1,sV=!1;const sX=/Version\s*:\s*(.*)/g;nx={},nb=n1.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nS=nx&&nx.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nI=nx&&nx.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nR=nx&&nx.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nS(t,e,r);return nI(t,e),t;},nO=nx&&nx.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},nT=nx&&nx.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nx,"__esModule",{value:!0}),nx.evaluateVersions=nx.isExplicitVersion=nx.findFromManifest=nx.getManifestFromRepo=nx.findAllVersions=nx.find=nx.cacheFile=nx.cacheDir=nx.extractZip=nx.extractXar=nx.extractTar=nx.extract7z=nx.downloadTool=nx.HTTPError=void 0;const sz=nR(ry("1o3Gj")),sW=nR(ry("zdagz")),sK=nR(n2),sY=nR(ry("gn8Si")),sQ=nR(n0),sJ=nR(n1),sZ=nR(ry("eamjo")),s0=nR(ry("0306Y")),s1=nR(rp),s2=nR(t7),s4=nT(ry("GX8zo"));nA=ry("bHzmH"),n$=(nC={},nC.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),n_=nC&&nC.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nP=nC&&nC.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n$(t,e,r);return n_(t,e),t;},nN=nC&&nC.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nC,"__esModule",{value:!0}),nC.RetryHelper=void 0;const s3=nP(ry("1o3Gj"));nC.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nN(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s6 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nx.HTTPError=s6;const s8="win32"===process.platform,s5="darwin"===process.platform;nx.downloadTool=function(e,t,r,n){return nO(this,void 0,void 0,function*(){t=t||sJ.join(ey(),s4.default()),yield sW.mkdirP(sJ.dirname(t)),sz.debug("Downloading "+e),sz.debug("Destination "+t);let i=ew("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=ew("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nC.RetryHelper(3,i,o);return yield s.execute(()=>nO(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(sK.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sZ.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sz.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s6(o.message.statusCode);throw sz.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s2.promisify(s1.pipeline),a=ew("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sK.createWriteStream(t)),sz.debug("download complete"),l=!0,t;}finally{if(!l){sz.debug("download failed");try{yield sW.rmRF(t);}catch(e){sz.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s6)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nx.extract7z=function(e,t,r){return nO(this,void 0,void 0,function*(){t9.ok(s8,"extract7z() not supported on current OS"),t9.ok(e,'parameter "file" is required'),t=yield ef(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sz.isDebug()?"-bb1":"-bb0";yield nA.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=sJ.join(nb,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sW.which("powershell",!0);yield nA.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nx.extractTar=function(e,t,r="xz"){return nO(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ef(t),sz.debug("Checking tar --version");let i="";yield nA.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sz.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sz.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s8&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield nA.exec("tar",n),t;});},nx.extractXar=function(e,t,r=[]){return nO(this,void 0,void 0,function*(){let n;t9.ok(s5,"extractXar() not supported on current OS"),t9.ok(e,'parameter "file" is required'),t=yield ef(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sz.isDebug()&&n.push("-v");let i=yield sW.which("xar",!0);return yield nA.exec(`"${i}"`,Array.from(new Set(n))),t;});},nx.extractZip=function(e,t){return nO(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ef(t),s8?yield function(e,t){return nO(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sW.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sz.debug("Using pwsh at path: "+i),yield nA.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sW.which("powershell",!0);sz.debug("Using powershell at path: "+t),yield nA.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nO(this,void 0,void 0,function*(){let r=yield sW.which("unzip",!0),n=[e];sz.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nA.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nx.cacheDir=function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(r=s0.clean(r)||r,n=n||sQ.arch(),sz.debug(`Caching tool ${t} ${r} ${n}`),sz.debug("source dir: "+e),!sK.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eh(t,r,n);for(let t of sK.readdirSync(e)){let r=sJ.join(e,t);yield sW.cp(r,i,{recursive:!0});}return em(t,r,n),i;});},nx.cacheFile=function(e,t,r,n,i){return nO(this,void 0,void 0,function*(){if(n=s0.clean(n)||n,i=i||sQ.arch(),sz.debug(`Caching tool ${r} ${n} ${i}`),sz.debug("source file: "+e),!sK.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eh(r,n,i),s=sJ.join(o,t);return sz.debug("destination file "+s),yield sW.cp(e,s),em(r,n,i),o;});},nx.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sQ.arch(),ev(t)||(t=eg(ed(e,r),t));let n="";if(t){t=s0.clean(t)||"";let i=sJ.join(eE(),e,t,r);sz.debug("checking cache: "+i),sK.existsSync(i)&&sK.existsSync(`${i}.complete`)?(sz.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sz.debug("not found");}return n;},nx.findAllVersions=ed,nx.getManifestFromRepo=function(e,t,r,n="master"){return nO(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new sZ.HttpClient("tool-cache"),a={};r&&(sz.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sz.debug("Invalid json");}}return i;});},nx.findFromManifest=function(e,t,r,n=sQ.arch()){return nO(this,void 0,void 0,function*(){return yield sY._findMatch(e,t,r,n);});},nx.isExplicitVersion=ev,nx.evaluateVersions=eg,ny=ry("eAXk4"),nL=ry("6v1Be"),nD=ry("hlfY9"),nw=ry("zdagz"),rb=ry("hHq4F"),rb=ry("hHq4F"),ny=ry("eAXk4"),rx=ry("dAuy6"),nh=ry("6t4SD"),Object.defineProperty(nk={},"__esModule",{value:!0}),nk.retryAsPromised=nk.TimeoutError=void 0;class s9 extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nk.TimeoutError=s9,nk.retryAsPromised=eT,nk.default=eT;let s7=!1;nf=ry("1o3Gj"),nU={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nj=Array.prototype.slice,nF=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:e_(this.keys),size:this.size,values:e_(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const ae=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n2.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n2.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n2.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n2.mkdirSync,t;},at=(e,t,r)=>{let n=(0,n1.dirname)(e),i={...ae(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return at(e,i,at(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ar=Object.assign(async(e,t,r)=>{let n=ae(t);n.recursive=!1;let i=(0,n1.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ar(i,n).then(t=>ar(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:at}),an=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?an(e,(0,n1.dirname)(t),t):void 0);},ai=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?ai(e,(0,n1.dirname)(t),t):void 0;}},ao=(e,t)=>{let r=ae(t);if(r.recursive=!0,(0,n1.dirname)(e)===e)return r.mkdirSync(e,r);let n=ai(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return at(e,r);throw t;}},as=Object.assign(async(e,t)=>{let r={...ae(t),recursive:!0};return(0,n1.dirname)(e)===e?await r.mkdirAsync(e,r):an(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ar(e,r);throw t;}));},{sync:ao}),aa=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,al=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n1.resolve)(e),"win32"===aa){let{root:t}=(0,n1.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ac=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),au=+ac[0]>10||10==+ac[0]&&+ac[1]>=12,ap=au?e=>ae(e).mkdirSync===n2.mkdirSync:()=>!1,ad=Object.assign(au?e=>ae(e).mkdir===n2.mkdir:()=>!1,{sync:ap}),af=(e,t)=>{e=al(e);let r=ae(t);return ap(r)?ao(e,r):at(e,r);},ah=Object.assign(async(e,t)=>{e=al(e);let r=ae(t);return ad(r)?as(e,r):ar(e,r);},{mkdirpSync:af,mkdirpNative:as,mkdirpNativeSync:ao,mkdirpManual:ar,mkdirpManualSync:at,sync:af,native:as,nativeSync:ao,manual:ar,manualSync:at,useNative:ad,useNativeSync:ap});nh=ry("6t4SD"),ny=ry("eAXk4"),nA=ry("bHzmH"),rx=ry("dAuy6"),rb=ry("hHq4F"),nh=ry("6t4SD"),ny=ry("eAXk4"),nA=ry("bHzmH"),rb=ry("hHq4F"),nM=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rh.URL(t),!0;}catch{return!1;}},nG=async e=>{if(!nM(e))return!1;let t=await eD(e,"HEAD");return!!t||!!(t=await eD(e,"GET"));},nL=ry("6v1Be"),nB=ry("jDqfd"),nH=ry("2kZmC");const am=/v?(\d\S*)/,av={llvm:eM(),clangtidy:eM(),clangformat:eM(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:D()?"1.10.0-1":"1.10.0",gcc:D()?"13.2.1-3":"13"},ag={pip:"22.2.0",python:"3.7.9"},aE={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ay=eL(eZ,{isPromise:!0});rb=ry("hHq4F"),Object.defineProperty(nq={},"__esModule",{value:!0}),nq.getUbuntuVersion=void 0,nq.getUbuntuVersion=e2;const aw=eL(e4,{isPromise:!0}),ax=eL(e9,{isPromise:!0}),ab=eL(e7,{isPromise:!0}),aS=eL(te,{isPromise:!0});rb=ry("hHq4F"),ny=ry("eAXk4"),nh=ry("6t4SD");const aI=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aR=eL(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rc).release()).split(".")[0];let[t,r]=aI.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rx=ry("dAuy6"),rb=ry("hHq4F"),nh=ry("6t4SD"),ny=ry("eAXk4"),nL=ry("6v1Be"),nV=ry("lORAA"),nA=ry("bHzmH"),rb=ry("hHq4F"),nX=n1.resolve(__dirname,"../../src/gcc");const aO={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nV=ry("lORAA"),nH=ry("2kZmC"),rb=ry("hHq4F"),ny=ry("eAXk4"),ny=ry("eAXk4"),nz=n1.resolve(__dirname,"../../src/kcov"),rx=ry("dAuy6"),rb=ry("hHq4F"),nh=ry("6t4SD"),ny=ry("eAXk4"),nf=ry("1o3Gj"),rb=ry("hHq4F");class aT extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aA extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aC=e=>void 0===globalThis.DOMException?new aA(e):new DOMException(e),a$=e=>{let t=void 0===e.reason?aC("This operation was aborted."):e.reason;return t instanceof Error?t:aC(t);};ny=ry("eAXk4"),rb=ry("hHq4F"),nf=ry("1o3Gj");const a_=rf.env["ProgramFiles(x86)"],aP=[rf.env["ProgramFiles(x86)"],rf.env.ProgramFiles],aN=["Enterprise","Professional","Community","BuildTools"],aL=["2022","2019","2017"],aD={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nW=tO;const ak=`${a_}\\Microsoft Visual Studio\\Installer`;nK=tT,nY=function(e,t,r,n,i,o){if("win32"!=rf.platform){nf.info("This is not a Windows virtual environment, bye!");return;}rf.env.PATH+=n1.delimiter+ak;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tT(o)}" ${a.join(" ")}`;nf.debug("vcvars command-line: "+l);let c=rt.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nf.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nf.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nf.exportVariable(t,r));}nf.endGroup(),nf.info("Configured Developer Command Prompt");},nh=ry("6t4SD");const aU=12e5,{readFile:aj,writeFile:aF,chmod:aM}=n2.promises;(t6=nQ||(nQ={}))[t6.All=0]="All",t6[t6.ClangFormat=1]="ClangFormat",t6[t6.Core=2]="Core",rb=ry("hHq4F"),ny=ry("eAXk4"),nD=ry("hlfY9");const aG=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aB=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aH=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aq=new Map(),aV={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},aX="17.0.6";nJ=n1.resolve(__dirname,"../../src/llvm");const az=eL(tM,{isPromise:!0}),aW=eL(tB,{isPromise:!0}),aK=eL(tH,{isPromise:!0});rx=ry("dAuy6"),ny=ry("eAXk4"),rb=ry("hHq4F"),nh=ry("6t4SD"),nZ=n1.resolve(__dirname,"../../src/msvc"),ny=ry("eAXk4"),ny=ry("eAXk4"),rb=ry("hHq4F"),nh=ry("6t4SD"),ny=ry("eAXk4");let aY=!1;const aQ={nala:tK,cmake:e$,ninja:tw,python:eG,vcpkg:t0,bazel:ec,conan:function(e,t,r){return e6("conan",e);},meson:function(e,t,r){return e6("meson",e);},gcovr:function(e,t,r){return e6("gcovr",e);},opencppcoverage:tY,llvm:tF,gcc:th,choco:eo,brew:er,powershell:tJ,ccache:function(e,t,r){switch(process.platform){case"win32":return es("ccache",e);case"darwin":return ei("ccache",e);case"linux":if(D())return eu("ccache",e);if(L())return ea([{name:"ccache",version:e}]);if(k())return V([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return es("sccache",e);case"linux":case"darwin":return ei("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tu,graphviz:ts,cppcheck:ti,clangtidy:function(e,t,r){return tG(e,t,r);},clangformat:function(e,t,r){return tG(e,t,r,nQ.ClangFormat);},msvc:tz,vcvarsall:tA,kcov:tR,make:tX,task:function(e,t,r){return eA("task",e,tZ,t,r);},sevenzip:ex},aJ=Object.keys(aQ),aZ=["compiler","architecture","timeout",...aJ];nf=ry("1o3Gj"),rb=ry("hHq4F"),nH=ry("2kZmC"),t4(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rb.error)("main() panicked!"),(0,rb.error)(e),process.exitCode=1;}); + Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rS("eamjo",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n5),d=i(n9),f=i(rb("jnrYh")),h=i(rb("3RDK7"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rS("jnrYh",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rS("3RDK7",function(e,t){e.exports=rb("jZQ4B");}),rS("jZQ4B",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n5.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t7.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n5.request,t;},n=function(e){var t=new c(e);return t.request=n5.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n9.request,t;},o=function(e){var t=new c(e);return t.request=n9.request,t.createSocket=u,t.defaultPort=443,t;},rr.inherits(c,re.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rS("h6tQO",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rS("dV9Cu",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n6.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n6.constants.R_OK|n6.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n4.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rS("9i0tI",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n3);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rS("kswPT",function(e,t){var r=n3.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rS("foOBZ",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=rb("6OFKY"),i=rb("5GOZM");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rS("6OFKY",function(e,t){e.exports=rb("kswPT");}),rS("5GOZM",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rS("2Bbmx",function(e,t){l(e.exports,"appendFile",()=>n),l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>R),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n6.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:S,unlink:I,utimes:R,writeFile:O}=n6.promises,T="rm"in n6.promises?n6.promises.rm:(0,rr.promisify)(n6.unlink);}),rS("8nJMC",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rS("iXsaM",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rS("jl9Uf",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rS("8cXe9",function(e,t){var r=rb("jl9Uf"),n=rb("iXsaM"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rb("hhSwF"),a=s.safeRe,l=s.t,c=rb("5v8m5"),u=rb("dAM2Q").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rS("5v8m5",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rS("dAM2Q",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rS("cHnHr",function(e,t){var r=rb("8cXe9");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rS("2kZmC",function(e,t){var r=rb("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rS("3Ixw1",function(e,t){var r=rb("cHnHr");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rS("5r5vN",function(e,t){var r=rb("8cXe9");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rS("bDrwm",function(e,t){var r=rb("cHnHr");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rS("lORAA",function(e,t){var r=rb("8cXe9");e.exports=(e,t)=>new r(e,t).major;}),rS("2Lh6z",function(e,t){var r=rb("8cXe9");e.exports=(e,t)=>new r(e,t).minor;}),rS("73KaH",function(e,t){var r=rb("8cXe9");e.exports=(e,t)=>new r(e,t).patch;}),rS("j5Xr5",function(e,t){var r=rb("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rS("jDqfd",function(e,t){var r=rb("8cXe9");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rS("2QKGl",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>r(t,e,n);}),rS("3puHo",function(e,t){var r=rb("jDqfd");e.exports=(e,t)=>r(e,t,!0);}),rS("7qrQi",function(e,t){var r=rb("8cXe9");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rS("hZ1Xd",function(e,t){var r=rb("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rS("3YOIj",function(e,t){var r=rb("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rS("cOpcP",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>0;}),rS("58P10",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>0>r(e,t,n);}),rS("lTmeS",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>0===r(e,t,n);}),rS("jzqBf",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>0!==r(e,t,n);}),rS("3XWvL",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rS("hlfY9",function(e,t){var r=rb("jDqfd");e.exports=(e,t,n)=>0>=r(e,t,n);}),rS("84iFB",function(e,t){var r=rb("lTmeS"),n=rb("jzqBf"),i=rb("cOpcP"),o=rb("3XWvL"),s=rb("58P10"),a=rb("hlfY9");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rS("6v1Be",function(e,t){var r=rb("8cXe9"),n=rb("cHnHr"),i=rb("hhSwF"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rS("1bxhC",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rb("5v8m5"),o=rb("hhSwF"),s=o.safeRe,a=o.t,l=rb("84iFB"),c=rb("jl9Uf"),u=rb("8cXe9"),p=rb("bswWF");}),rS("bswWF",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,$(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>C(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=I(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=A(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},I=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},A=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),C=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rS("31A6g",function(e,t){var r=rb("i08Cw");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rS("i08Cw",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rS("4zfp3",function(e,t){var r=rb("bswWF");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rS("ga5uZ",function(e,t){var r=rb("8cXe9"),n=rb("bswWF");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rS("lPGVL",function(e,t){var r=rb("8cXe9"),n=rb("bswWF");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rS("1I8AA",function(e,t){var r=rb("8cXe9"),n=rb("bswWF"),i=rb("cOpcP");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rS("dBtft",function(e,t){var r=rb("bswWF");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rS("83Sp2",function(e,t){var r=rb("8cXe9"),n=rb("1bxhC");let{ANY:i}=n;var o=rb("bswWF"),s=rb("42oIR"),a=rb("cOpcP"),l=rb("58P10"),c=rb("hlfY9"),u=rb("3XWvL");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rS("eK4my",function(e,t){var r=rb("83Sp2");e.exports=(e,t,n)=>r(e,t,">",n);}),rS("eNXBI",function(e,t){var r=rb("83Sp2");e.exports=(e,t,n)=>r(e,t,"<",n);}),rS("kHzUo",function(e,t){var r=rb("bswWF");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rS("1x2XZ",function(e,t){var r=rb("42oIR"),n=rb("jDqfd");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rS("6t4SD",function(e,t){async function r(e){try{return await(0,rn.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rS("8CJZb",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rS("eAXk4",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n3.basename)(e):(0,n3.basename)(e,(0,n3.extname)(e));}function w(e){return(0,n3.normalize)(e).replace(RegExp((0,r.default)(n3.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n3.extname)(e),n=`${t}${(0,n3.basename)(e,r)}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function S(e,t){let r=(0,n3.extname)(e),n=`${(0,n3.basename)(e,r)}${t}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function R(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n3.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function A(e,t){let r=(0,n3.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n3.sep)||r===(0,n3.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>R),l(e.exports,"dirname",()=>n3.dirname),l(e.exports,"join",()=>n3.join),r=rb("f44Uw"),n=rb("fBJE3"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>S),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>R),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>A),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rS("f44Uw",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rS("fBJE3",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n3.basename(e,n3.extname(e))+t,i=n3.join(n3.dirname(e),n);return(r=e.slice(0,2))==="."+n3.sep||"./"===r?"."+n3.sep+i:i;};}),rS("zdagz",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){rt.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n3),p=i(rb("fwMQK"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rS("fwMQK",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n6),c=i(n3);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rS("gn8Si",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rb("0306Y"));s=rb("1o3Gj"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n4.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n4.platform(),r="";if("darwin"===t)r=ri.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n6.existsSync(e)?r=n6.readFileSync(e).toString():n6.existsSync(t)&&(r=n6.readFileSync(t).toString()),r;};}),rS("0306Y",function(e,t){function r(e){C[e]=$++;}function n(e){for(var t=0;tS||!(t.loose?T[C.LOOSE]:T[C.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>S)throw TypeError("version is longer than "+S+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[C.LOOSE]:T[C.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",S=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,R=S-6,O=t.re=[],T=t.safeRe=[],A=t.src=[],C=t.tokens={},$=0,P=[["\\s",1],["\\d",S],[_="[a-zA-Z0-9-]",R]],r("NUMERICIDENTIFIER"),A[C.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),A[C.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),A[C.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),A[C.MAINVERSION]="("+A[C.NUMERICIDENTIFIER]+")\\.("+A[C.NUMERICIDENTIFIER]+")\\.("+A[C.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),A[C.MAINVERSIONLOOSE]="("+A[C.NUMERICIDENTIFIERLOOSE]+")\\.("+A[C.NUMERICIDENTIFIERLOOSE]+")\\.("+A[C.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),A[C.PRERELEASEIDENTIFIER]="(?:"+A[C.NUMERICIDENTIFIER]+"|"+A[C.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),A[C.PRERELEASEIDENTIFIERLOOSE]="(?:"+A[C.NUMERICIDENTIFIERLOOSE]+"|"+A[C.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),A[C.PRERELEASE]="(?:-("+A[C.PRERELEASEIDENTIFIER]+"(?:\\."+A[C.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),A[C.PRERELEASELOOSE]="(?:-?("+A[C.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+A[C.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),A[C.BUILDIDENTIFIER]=_+"+",r("BUILD"),A[C.BUILD]="(?:\\+("+A[C.BUILDIDENTIFIER]+"(?:\\."+A[C.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),A[C.FULLPLAIN]="v?"+A[C.MAINVERSION]+A[C.PRERELEASE]+"?"+A[C.BUILD]+"?",A[C.FULL]="^"+A[C.FULLPLAIN]+"$",r("LOOSEPLAIN"),A[C.LOOSEPLAIN]="[v=\\s]*"+A[C.MAINVERSIONLOOSE]+A[C.PRERELEASELOOSE]+"?"+A[C.BUILD]+"?",r("LOOSE"),A[C.LOOSE]="^"+A[C.LOOSEPLAIN]+"$",r("GTLT"),A[C.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),A[C.XRANGEIDENTIFIERLOOSE]=A[C.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),A[C.XRANGEIDENTIFIER]=A[C.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),A[C.XRANGEPLAIN]="[v=\\s]*("+A[C.XRANGEIDENTIFIER]+")(?:\\.("+A[C.XRANGEIDENTIFIER]+")(?:\\.("+A[C.XRANGEIDENTIFIER]+")(?:"+A[C.PRERELEASE]+")?"+A[C.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),A[C.XRANGEPLAINLOOSE]="[v=\\s]*("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+A[C.XRANGEIDENTIFIERLOOSE]+")(?:"+A[C.PRERELEASELOOSE]+")?"+A[C.BUILD]+"?)?)?",r("XRANGE"),A[C.XRANGE]="^"+A[C.GTLT]+"\\s*"+A[C.XRANGEPLAIN]+"$",r("XRANGELOOSE"),A[C.XRANGELOOSE]="^"+A[C.GTLT]+"\\s*"+A[C.XRANGEPLAINLOOSE]+"$",r("COERCE"),A[C.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[C.COERCERTL]=RegExp(A[C.COERCE],"g"),T[C.COERCERTL]=RegExp(n(A[C.COERCE]),"g"),r("LONETILDE"),A[C.LONETILDE]="(?:~>?)",r("TILDETRIM"),A[C.TILDETRIM]="(\\s*)"+A[C.LONETILDE]+"\\s+",O[C.TILDETRIM]=RegExp(A[C.TILDETRIM],"g"),T[C.TILDETRIM]=RegExp(n(A[C.TILDETRIM]),"g"),r("TILDE"),A[C.TILDE]="^"+A[C.LONETILDE]+A[C.XRANGEPLAIN]+"$",r("TILDELOOSE"),A[C.TILDELOOSE]="^"+A[C.LONETILDE]+A[C.XRANGEPLAINLOOSE]+"$",r("LONECARET"),A[C.LONECARET]="(?:\\^)",r("CARETTRIM"),A[C.CARETTRIM]="(\\s*)"+A[C.LONECARET]+"\\s+",O[C.CARETTRIM]=RegExp(A[C.CARETTRIM],"g"),T[C.CARETTRIM]=RegExp(n(A[C.CARETTRIM]),"g"),r("CARET"),A[C.CARET]="^"+A[C.LONECARET]+A[C.XRANGEPLAIN]+"$",r("CARETLOOSE"),A[C.CARETLOOSE]="^"+A[C.LONECARET]+A[C.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),A[C.COMPARATORLOOSE]="^"+A[C.GTLT]+"\\s*("+A[C.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),A[C.COMPARATOR]="^"+A[C.GTLT]+"\\s*("+A[C.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),A[C.COMPARATORTRIM]="(\\s*)"+A[C.GTLT]+"\\s*("+A[C.LOOSEPLAIN]+"|"+A[C.XRANGEPLAIN]+")",O[C.COMPARATORTRIM]=RegExp(A[C.COMPARATORTRIM],"g"),T[C.COMPARATORTRIM]=RegExp(n(A[C.COMPARATORTRIM]),"g"),N="$1$2$3",r("HYPHENRANGE"),A[C.HYPHENRANGE]="^\\s*("+A[C.XRANGEPLAIN]+")\\s+-\\s+("+A[C.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),A[C.HYPHENRANGELOOSE]="^\\s*("+A[C.XRANGEPLAINLOOSE]+")\\s+-\\s+("+A[C.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),A[C.STAR]="(<|>)?=?\\s*\\*";for(var b,S,I,R,O,T,A,C,$,_,P,N,L,D,k=0;k<$;k++)b(k,A[k]),O[k]||(O[k]=new RegExp(A[k]),T[k]=new RegExp(n(A[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,D={},m.prototype.parse=function(e){var t=this.options.loose?T[C.COMPARATORLOOSE]:T[C.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=D;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[C.HYPHENRANGELOOSE]:T[C.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[C.COMPARATORTRIM],N),b("comparator trim",e,T[C.COMPARATORTRIM]),e=(e=(e=e.replace(T[C.TILDETRIM],"$1~")).replace(T[C.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[C.COMPARATORLOOSE]:T[C.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[C.CARETLOOSE]:T[C.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[C.TILDELOOSE]:T[C.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[C.XRANGELOOSE]:T[C.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[C.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[C.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[C.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[C.COERCERTL].lastIndex=-1;}else n=e.match(T[C.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rS("GX8zo",function(e,t){var r=rb("7qQbq"),n=rb("c22IK");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rS("7qQbq",function(e,t){e.exports=function(){return n8.randomBytes(16);};}),rS("c22IK",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rS("bHzmH",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(rb("iYbsa"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new ro.StringDecoder("utf8"),c=new ro.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rS("iYbsa",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n4),a=i(re),l=i(ri),c=i(n3),u=i(rb("zdagz")),p=i(rb("fwMQK")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rs.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rS("fEioR",function(e,t){e.exports=Promise.resolve(require("./actions_python.1abb15a9.js")).then(()=>rb("8L9T2"));}),rS("aWBYj",function(e,t){e.exports=Promise.resolve(require("./hdi.09e25805.js")).then(()=>rb("1PWvB"));}),rI=rb("dAuy6"),rR=rb("hHq4F"),rO=rb("6OFKY"),function(){rb("kswPT").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rT={}),rA={},rA=rb("foOBZ"),rC={},rC={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},r$={},l(r_={},"isexe",()=>n7),l(r_,"sync",()=>ie),rP=rb("2Bbmx");const n7=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it(await(0,rP.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ie=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it((0,n6.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t)=>e.isFile()&&ir(e,t),ir=(e,t)=>{var r,n,i,o,s,a,l,c,u,p,d;let f=null!==(l=t.uid)&&void 0!==l?l:null===(r=(n=process).getuid)||void 0===r?void 0:r.call(n),h=null!==(u=null!==(c=t.groups)&&void 0!==c?c:null===(i=(o=process).getgroups)||void 0===i?void 0:i.call(o))&&void 0!==u?u:[],m=null!==(d=null!==(p=t.gid)&&void 0!==p?p:null===(s=(a=process).getgid)||void 0===s?void 0:s.call(a))&&void 0!==d?d:h[0];if(void 0===f||void 0===m)throw Error("cannot get uid or gid");let v=new Set([m,...h]),g=e.mode,E=e.uid,y=e.gid,w=parseInt("100",8),x=parseInt("010",8);return!!(g&parseInt("001",8)||g&x&&v.has(y)||g&w&&E===f||g&(w|x)&&0===f);};l(rN={},"isexe",()=>ii),l(rN,"sync",()=>io),rP=rb("2Bbmx");const ii=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia(await(0,rP.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},io=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia((0,n6.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},is=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&is(t,r),il="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rN:r_,ic=il.isexe,iu=il.sync;rL=n3.join,rD=n3.delimiter,rk=n3.sep,rU=n3.posix;const ip="win32"===process.platform,id=new RegExp(`[${rU.sep}${rk===rU.sep?"":rk}]`.replace(/(\\)/g,"\\$1")),ih=RegExp("^\\."+id.source),im=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rD})=>{let i=e.match(id)?[""]:[...(ip?[process.cwd()]:[]),...(t||"").split(n)];if(ip){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ig=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&ih.test(t)?t.slice(0,2):"")+rL(r,t);},iE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(await ic(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);};r$=iE,iE.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(iu(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);},rj={},rF={},rM={},rG={};const iy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iw=iy?";":":";rB={},"win32"===process.platform||ry.TESTING_WINDOWS?rH=rb("8nJMC"):rH=rb("lo7XV"),rB=u,u.sync=function(e,t){try{return rH.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ix=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ib=(e,t)=>{let r=t.colon||iw,n=e.match(/\//)||iy&&e.match(/\\/)?[""]:[...(iy?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iy?i.split(r):[""];return iy&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iS=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ib(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ix(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n3.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rB(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rG=iS,iS.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ib(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rq=iI).default=iI,rM=function(e){return p(e)||p(e,!0);};rV=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rX=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rz={},rW={},rK={},rK=/^#!(.*)/,rW=(e="")=>{let t=e.match(rK);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rz=function(e){let t;let r=Buffer.alloc(150);try{t=n6.openSync(e,"r"),n6.readSync(t,r,0,150,0),n6.closeSync(t);}catch(e){}return rW(r.toString());};const iR="win32"===process.platform;rF=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!iR)return e;let t=function(e){e.file=rM(e);let t=e.file&&rz(e.file);return t?(e.args.unshift(e.file),e.command=t,rM(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n3.normalize(e.command),e.command=rV(e.command),e.args=e.args.map(e=>rX(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rY={};const iO="win32"===process.platform;rY={hookChildProcess:function(e,t){if(!iO)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iO&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rj=h).spawn=h,rj.sync=function(e,t,r){let n=rF(e,t,r),i=ri.spawnSync(n.command,n.args,n.options);return i.error=i.error||rY.verifyENOENTSync(i.status,n),i;},rj._parse=rF,rj._enoent=rY;const iT=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iA(i,o)||!n)&&Object.defineProperty(e,r,o);},iA=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iC=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},i$=(e,t)=>`/* Wrapped ${e}*/ +${t}`,i_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iP=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iN=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=i$.bind(null,n,t.toString());Object.defineProperty(i,"name",iP),Object.defineProperty(e,"toString",{...i_,value:i});},iL=new WeakMap(),iD=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(iL.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iT(e,t,n,r);iC(e,t),iN(e,t,n);}(o,e),iL.set(o,n),o;};iD.callCount=e=>{if(!iL.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iL.get(e);},rQ=iD;const ik=()=>Array.from({length:iF-ij+1},iU),iU=(e,t)=>({name:"SIGRT"+(t+1),number:ij+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ij=34,iF=64,iM=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],iG=()=>[...iM,...ik()].map(iB),iB=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rd.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iH=Object.fromEntries(iG().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iq=(e,t)=>{let r=iV(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iV=(e,t)=>{let r=t.find(({name:t})=>rd.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iG();return Object.assign({},...Array.from({length:iF+1},(t,r)=>iq(r,e)));})();const iX=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iz=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ru).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,m=iX({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} +${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iW=["stdin","stdout","stderr"],iK=e=>iW.some(t=>void 0!==e[t]),iY=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iW.map(t=>e[t]);if(iK(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iW.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iW.length)},(e,r)=>t[r]);};rJ={};const iQ=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iQ(rZ=ry.process)){var iJ,iZ=rt,i0=rb("dVIKq"),i1=/^win/i.test(rZ.platform),i2=re;"function"!=typeof i2&&(i2=i2.EventEmitter),rZ.__signal_exit_emitter__?iJ=rZ.__signal_exit_emitter__:((iJ=rZ.__signal_exit_emitter__=new i2()).count=0,iJ.emitted={}),iJ.infinite||(iJ.setMaxListeners(1/0),iJ.infinite=!0);var i4=function(){i8&&iQ(ry.process)&&(i8=!1,i0.forEach(function(e){try{rZ.removeListener(e,i6[e]);}catch(e){}}),rZ.emit=oe,rZ.reallyExit=i9,iJ.count-=1);};(rJ=function(e,t){if(!iQ(ry.process))return function(){};iZ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i8&&i5();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iJ.on(r,e),function(){iJ.removeListener(r,e),0===iJ.listeners("exit").length&&0===iJ.listeners("afterexit").length&&i4();};}).unload=i4;var i3=function(e,t,r){iJ.emitted[e]||(iJ.emitted[e]=!0,iJ.emit(e,t,r));},i6={};i0.forEach(function(e){i6[e]=function(){iQ(ry.process)&&rZ.listeners(e).length===iJ.count&&(i4(),i3("exit",null,e),i3("afterexit",null,e),i1&&"SIGHUP"===e&&(e="SIGINT"),rZ.kill(rZ.pid,e));};}),rJ.signals=function(){return i0;};var i8=!1,i5=function(){!i8&&iQ(ry.process)&&(i8=!0,iJ.count+=1,i0=i0.filter(function(e){try{return rZ.on(e,i6[e]),!0;}catch(e){return!1;}}),rZ.emit=ot,rZ.reallyExit=i7);};rJ.load=i5;var i9=rZ.reallyExit,i7=function(e){iQ(ry.process)&&(rZ.exitCode=e||0,i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),i9.call(rZ,rZ.exitCode));},oe=rZ.emit,ot=function(e,t){if(!("exit"===e&&iQ(ry.process)))return oe.apply(this,arguments);void 0!==t&&(rZ.exitCode=t);var r=oe.apply(this,arguments);return i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),r;};}else rJ=function(){return function(){};};const or=(e,t="SIGTERM",r={})=>{let n=e(t);return on(e,t,r,n),n;},on=(e,t,r,n)=>{if(!oi(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},os(r));i.unref&&i.unref();},oi=(e,{forceKillAfterTimeout:t},r)=>oo(e)&&!1!==t&&r,oo=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),os=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oa=(e,t)=>{e.kill()&&(t.isCanceled=!0);},ol=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oc=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{ol(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},ou=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rJ)(()=>{e.kill();});return n.finally(()=>{i();});},od=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,of=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!od(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oh=e=>{null!==e.stdout&&(e.pipeStdout=of.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=of.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=of.bind(void 0,e,"all"));};r0={},r1=rf.constants,r2=rr.promisify,r4={},r3=rh.PassThrough,r4=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r3({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const om=r2(rh.pipeline);class ov extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r0=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),r0.array=(e,t)=>w(e,{...t,array:!0}),r0.MaxBufferError=ov,r6={},r8=rh.PassThrough,r6=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r8({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const og=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oE=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.readFileSync)(t)),oy=e=>{let t=oE(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},ow=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.createReadStream)(t)),ox=(e,t)=>{let r=ow(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},ob=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},oS=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},oI=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},oR=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=oI(e,{encoding:n,buffer:i,maxBuffer:o}),l=oI(t,{encoding:n,buffer:i,maxBuffer:o}),c=oI(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},oS(e,a),oS(t,l),oS(r,c)]);}},oO=(async()=>{})().constructor.prototype,oT=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oO,e)]),oA=(e,t)=>{for(let[r,n]of oT){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oC=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),o$=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],o_=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oP=(e,t)=>o$(e,t).join(" "),oN=(e,t)=>o$(e,t).map(e=>o_(e)).join(" "),oL=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},oD=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},ok=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oU=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=ok(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return ok(s,Array.isArray(a)?a.map(e=>oD(e)):[oD(a)],o.endsWith(" "));},oj=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oU({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oF=(0,rm.debuglog)("execa").enabled,oM=(e,t)=>(e+"").padStart(t,"0"),oG=()=>{let e=new Date();return`${oM(e.getHours(),2)}:${oM(e.getMinutes(),2)}:${oM(e.getSeconds(),2)}.${oM(e.getMilliseconds(),3)}`;},oB=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${oG()}] ${e} +`);},oH=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oq=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oF,...r}).env=oH(r),r.stdio=iY(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oV=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oX=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oz=(e={})=>({preferLocal:!0,...oX(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oj(n,i);return x(o,s,oz(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oj(e,r);return b(n,i,oz(t));},r;}();const oW={stdio:"inherit",shell:!0},oK=/^~(?=$|\/|\\)/;rR=rb("hHq4F"),r5={},r9=rb("coVwk"),r7=rv.env.npm_package_json,nt=!!((ne=rv.env.npm_config_user_agent)&&ne.startsWith("npm")),nr=!!(r7&&r7.endsWith("package.json")),nn=nt||nr,ni=!!(ne&&ne.startsWith("yarn")),no=nn||ni,ns=n4.homedir(),na=process.env.XDG_CONFIG_HOME||n3.join(ns,".config","simple-update-notifier"),nl=function(e){return n3.join(na,"".concat(e.replace("@","").replace("/","__"),".json"));},nc=function(){n6.existsSync(na)||n6.mkdirSync(na,{recursive:!0});},nu=function(e){var t=nl(e);try{if(!n6.existsSync(t))return;return JSON.parse(n6.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},np=function(e){var t=nl(e);n6.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nd=function(e,t){return $(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n9.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nf=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return $(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(nc(),e=nu(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nE=function(e){return oY?e.replace(/(\s+)/g,"\\$1"):oJ(.../(\d+\.\d+)\.(\d+)/.exec(oQ).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rb("8CJZb"),t=function(e){return e.split("").reverse().join("");},ny=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(ny={});const oZ=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",o0=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,f=oZ({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} +${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},o1=["stdin","stdout","stderr"],o2=e=>o1.some(t=>void 0!==e[t]),o4=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return o1.map(t=>e[t]);if(o2(e))throw Error("It's not possible to provide `stdio` in combination with one of "+o1.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,o1.length)},(e,r)=>t[r]);},o3=(e,t="SIGTERM",r={})=>{let n=e(t);return o6(e,t,r,n),n;},o6=(e,t,r,n)=>{if(!o8(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o9(r));i.unref&&i.unref();},o8=(e,{forceKillAfterTimeout:t},r)=>o5(e)&&!1!==t&&r,o5=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o9=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o7=(e,t)=>{e.kill()&&(t.isCanceled=!0);},se=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},st=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{se(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},sr=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},sn=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rJ)(()=>{e.kill();});return n.finally(()=>{i();});},si=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,so=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!si(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},ss=e=>{null!==e.stdout&&(e.pipeStdout=so.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=so.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=so.bind(void 0,e,"all"));},sa=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sl=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.readFileSync)(t)),sc=e=>{let t=sl(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},su=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.createReadStream)(t)),sp=(e,t)=>{let r=su(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sd=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sf=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sh=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},sm=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sh(e,{encoding:n,buffer:i,maxBuffer:o}),l=sh(t,{encoding:n,buffer:i,maxBuffer:o}),c=sh(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},sf(e,a),sf(t,l),sf(r,c)]);}},sv=(async()=>{})().constructor.prototype,sg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sv,e)]),sE=(e,t)=>{for(let[r,n]of sg){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sy=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sw=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sx=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sb=(e,t)=>sw(e,t).join(" "),sS=(e,t)=>sw(e,t).map(e=>sx(e)).join(" "),sI=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sR=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sO=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=sR(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sR(s,Array.isArray(a)?a.map(e=>sI(e)):[sI(a)],o.endsWith(" "));},sT=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sO({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sA=(0,rm.debuglog)("execa").enabled,sC=(e,t)=>(e+"").padStart(t,"0"),s$=()=>{let e=new Date();return`${sC(e.getHours(),2)}:${sC(e.getMinutes(),2)}:${sC(e.getSeconds(),2)}.${sC(e.getMilliseconds(),3)}`;},s_=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${s$()}] ${e} +`);},sP=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sN=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sA,...r}).env=sP(r),r.stdio=o4(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sL=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sD=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sk=(e={})=>({preferLocal:!0,...sD(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sT(n,i);return U(o,s,sk(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sT(e,r);return function(e,t,r){let n;let i=sN(e,t,r),o=sb(e,t),s=sS(e,t);s_(s,i.options);let a=sc(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw o0({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sL(i.options,n.stdout,n.error),u=sL(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=o0({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sk(t));},r;}(),rP=rb("2Bbmx"),ng=rb("6t4SD");const sU={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sj=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sF=C("~/.cpprc");let sM=!1;rR=rb("hHq4F"),nw=rb("f44Uw");const{appendFile:sG}=n6.promises;let sB=!1,sH=!1;const sq=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t5=nx||(nx={}))[t5.NameDashVersion=0]="NameDashVersion",t5[t5.NameEqualsVersion=1]="NameEqualsVersion",t5[t5.Name=2]="Name",t5[t5.None=3]="None",nv=rb("1o3Gj"),nb=rb("eAXk4"),nS=rb("zdagz"),nb=rb("eAXk4");let sV=!1;rR=rb("hHq4F"),ng=rb("6t4SD"),nb=rb("eAXk4");let sX=!1;rR=rb("hHq4F"),rR=rb("hHq4F");let sz=!1,sW=!1;const sK=/Version\s*:\s*(.*)/g;nI={},nR=n3.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nO=nI&&nI.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nT=nI&&nI.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nA=nI&&nI.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nO(t,e,r);return nT(t,e),t;},nC=nI&&nI.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},n$=nI&&nI.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nI,"__esModule",{value:!0}),nI.evaluateVersions=nI.isExplicitVersion=nI.findFromManifest=nI.getManifestFromRepo=nI.findAllVersions=nI.find=nI.cacheFile=nI.cacheDir=nI.extractZip=nI.extractXar=nI.extractTar=nI.extract7z=nI.downloadTool=nI.HTTPError=void 0;const sY=nA(rb("1o3Gj")),sQ=nA(rb("zdagz")),sJ=nA(n6),sZ=nA(rb("gn8Si")),s0=nA(n4),s1=nA(n3),s2=nA(rb("eamjo")),s4=nA(rb("0306Y")),s3=nA(rh),s6=nA(rr),s8=n$(rb("GX8zo"));n_=rb("bHzmH"),nN=(nP={},nP.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),nL=nP&&nP.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nD=nP&&nP.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nN(t,e,r);return nL(t,e),t;},nk=nP&&nP.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nP,"__esModule",{value:!0}),nP.RetryHelper=void 0;const s5=nD(rb("1o3Gj"));nP.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nk(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s9 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nI.HTTPError=s9;const s7="win32"===process.platform,ae="darwin"===process.platform;nI.downloadTool=function(e,t,r,n){return nC(this,void 0,void 0,function*(){t=t||s1.join(eb(),s8.default()),yield sQ.mkdirP(s1.dirname(t)),sY.debug("Downloading "+e),sY.debug("Destination "+t);let i=eS("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eS("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nP.RetryHelper(3,i,o);return yield s.execute(()=>nC(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nC(this,void 0,void 0,function*(){if(sJ.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s2.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sY.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s9(o.message.statusCode);throw sY.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s6.promisify(s3.pipeline),a=eS("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sJ.createWriteStream(t)),sY.debug("download complete"),l=!0,t;}finally{if(!l){sY.debug("download failed");try{yield sQ.rmRF(t);}catch(e){sY.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s9)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nI.extract7z=function(e,t,r){return nC(this,void 0,void 0,function*(){rt.ok(s7,"extract7z() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sY.isDebug()?"-bb1":"-bb0";yield n_.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=s1.join(nR,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sQ.which("powershell",!0);yield n_.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nI.extractTar=function(e,t,r="xz"){return nC(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ev(t),sY.debug("Checking tar --version");let i="";yield n_.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sY.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sY.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s7&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield n_.exec("tar",n),t;});},nI.extractXar=function(e,t,r=[]){return nC(this,void 0,void 0,function*(){let n;rt.ok(ae,"extractXar() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sY.isDebug()&&n.push("-v");let i=yield sQ.which("xar",!0);return yield n_.exec(`"${i}"`,Array.from(new Set(n))),t;});},nI.extractZip=function(e,t){return nC(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ev(t),s7?yield function(e,t){return nC(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sQ.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sY.debug("Using pwsh at path: "+i),yield n_.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sQ.which("powershell",!0);sY.debug("Using powershell at path: "+t),yield n_.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nC(this,void 0,void 0,function*(){let r=yield sQ.which("unzip",!0),n=[e];sY.isDebug()||n.unshift("-q"),n.unshift("-o"),yield n_.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nI.cacheDir=function(e,t,r,n){return nC(this,void 0,void 0,function*(){if(r=s4.clean(r)||r,n=n||s0.arch(),sY.debug(`Caching tool ${t} ${r} ${n}`),sY.debug("source dir: "+e),!sJ.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of sJ.readdirSync(e)){let r=s1.join(e,t);yield sQ.cp(r,i,{recursive:!0});}return eE(t,r,n),i;});},nI.cacheFile=function(e,t,r,n,i){return nC(this,void 0,void 0,function*(){if(n=s4.clean(n)||n,i=i||s0.arch(),sY.debug(`Caching tool ${r} ${n} ${i}`),sY.debug("source file: "+e),!sJ.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),s=s1.join(o,t);return sY.debug("destination file "+s),yield sQ.cp(e,s),eE(r,n,i),o;});},nI.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||s0.arch(),ey(t)||(t=ew(em(e,r),t));let n="";if(t){t=s4.clean(t)||"";let i=s1.join(ex(),e,t,r);sY.debug("checking cache: "+i),sJ.existsSync(i)&&sJ.existsSync(`${i}.complete`)?(sY.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sY.debug("not found");}return n;},nI.findAllVersions=em,nI.getManifestFromRepo=function(e,t,r,n="master"){return nC(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s2.HttpClient("tool-cache"),a={};r&&(sY.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sY.debug("Invalid json");}}return i;});},nI.findFromManifest=function(e,t,r,n=s0.arch()){return nC(this,void 0,void 0,function*(){return yield sZ._findMatch(e,t,r,n);});},nI.isExplicitVersion=ey,nI.evaluateVersions=ew,nb=rb("eAXk4"),nU=rb("6v1Be"),nj=rb("hlfY9"),nS=rb("zdagz"),rR=rb("hHq4F"),rR=rb("hHq4F"),nb=rb("eAXk4"),rI=rb("dAuy6"),ng=rb("6t4SD"),Object.defineProperty(nF={},"__esModule",{value:!0}),nF.retryAsPromised=nF.TimeoutError=void 0;class at extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nF.TimeoutError=at,nF.retryAsPromised=e$,nF.default=e$;let ar=!1;nv=rb("1o3Gj"),nM={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nG=Array.prototype.slice,nB=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const an=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n6.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n6.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n6.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n6.mkdirSync,t;},ai=(e,t,r)=>{let n=(0,n3.dirname)(e),i={...an(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,i,ai(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ao=Object.assign(async(e,t,r)=>{let n=an(t);n.recursive=!1;let i=(0,n3.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ao(i,n).then(t=>ao(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:ai}),as=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?as(e,(0,n3.dirname)(t),t):void 0);},aa=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?aa(e,(0,n3.dirname)(t),t):void 0;}},al=(e,t)=>{let r=an(t);if(r.recursive=!0,(0,n3.dirname)(e)===e)return r.mkdirSync(e,r);let n=aa(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,r);throw t;}},ac=Object.assign(async(e,t)=>{let r={...an(t),recursive:!0};return(0,n3.dirname)(e)===e?await r.mkdirAsync(e,r):as(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ao(e,r);throw t;}));},{sync:al}),au=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,ap=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n3.resolve)(e),"win32"===au){let{root:t}=(0,n3.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ad=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),af=+ad[0]>10||10==+ad[0]&&+ad[1]>=12,ah=af?e=>an(e).mkdirSync===n6.mkdirSync:()=>!1,am=Object.assign(af?e=>an(e).mkdir===n6.mkdir:()=>!1,{sync:ah}),av=(e,t)=>{e=ap(e);let r=an(t);return ah(r)?al(e,r):ai(e,r);},ag=Object.assign(async(e,t)=>{e=ap(e);let r=an(t);return am(r)?ac(e,r):ao(e,r);},{mkdirpSync:av,mkdirpNative:ac,mkdirpNativeSync:al,mkdirpManual:ao,mkdirpManualSync:ai,sync:av,native:ac,nativeSync:al,manual:ao,manualSync:ai,useNative:am,useNativeSync:ah});ng=rb("6t4SD"),nb=rb("eAXk4"),n_=rb("bHzmH"),rI=rb("dAuy6"),rR=rb("hHq4F"),ng=rb("6t4SD"),nb=rb("eAXk4"),n_=rb("bHzmH"),rR=rb("hHq4F"),nH=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rg.URL(t),!0;}catch{return!1;}},nq=async e=>{if(!nH(e))return!1;let t=await ej(e,"HEAD");return!!t||!!(t=await ej(e,"GET"));},nU=rb("6v1Be"),nV=rb("jDqfd"),nX=rb("2kZmC");const aE=/v?(\d\S*)/,ay={llvm:eH(),clangtidy:eH(),clangformat:eH(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:D()?"1.10.0-1":"1.10.0",gcc:D()?"13.2.1-3":"13"},aw={pip:"22.2.0",python:"3.7.9"},ax={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ab=eU(e2,{isPromise:!0});rR=rb("hHq4F"),Object.defineProperty(nz={},"__esModule",{value:!0}),nz.getUbuntuVersion=void 0,nz.getUbuntuVersion=e6;const aS=eU(e8,{isPromise:!0}),aI=eU(tt,{isPromise:!0}),aR=eU(tr,{isPromise:!0}),aO=eU(tn,{isPromise:!0});rR=rb("hHq4F"),nb=rb("eAXk4"),ng=rb("6t4SD");const aT=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aA=eU(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rd).release()).split(".")[0];let[t,r]=aT.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rI=rb("dAuy6"),rR=rb("hHq4F"),ng=rb("6t4SD"),nb=rb("eAXk4"),nU=rb("6v1Be"),nW=rb("lORAA"),n_=rb("bHzmH"),rR=rb("hHq4F"),nK=n3.resolve(__dirname,"../../src/gcc");const aC={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nW=rb("lORAA"),nX=rb("2kZmC"),rR=rb("hHq4F"),nb=rb("eAXk4"),nb=rb("eAXk4"),nY=n3.resolve(__dirname,"../../src/kcov"),rI=rb("dAuy6"),rR=rb("hHq4F"),ng=rb("6t4SD"),nb=rb("eAXk4"),nv=rb("1o3Gj"),rR=rb("hHq4F");class a$ extends Error{constructor(e){super(e),this.name="TimeoutError";}}class a_ extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aP=e=>void 0===globalThis.DOMException?new a_(e):new DOMException(e),aN=e=>{let t=void 0===e.reason?aP("This operation was aborted."):e.reason;return t instanceof Error?t:aP(t);};nb=rb("eAXk4"),rR=rb("hHq4F"),nv=rb("1o3Gj");const aL=rv.env["ProgramFiles(x86)"],aD=[rv.env["ProgramFiles(x86)"],rv.env.ProgramFiles],ak=["Enterprise","Professional","Community","BuildTools"],aU=["2022","2019","2017"],aj={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nQ=tC;const aF=`${aL}\\Microsoft Visual Studio\\Installer`;nJ=t$,nZ=function(e,t,r,n,i,o){if("win32"!=rv.platform){nv.info("This is not a Windows virtual environment, bye!");return;}rv.env.PATH+=n3.delimiter+aF;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${t$(o)}" ${a.join(" ")}`;nv.debug("vcvars command-line: "+l);let c=ri.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nv.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nv.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nv.exportVariable(t,r));}nv.endGroup(),nv.info("Configured Developer Command Prompt");},ng=rb("6t4SD");const aM=12e5,{readFile:aG,writeFile:aB,chmod:aH}=n6.promises;(t9=n0||(n0={}))[t9.All=0]="All",t9[t9.ClangFormat=1]="ClangFormat",t9[t9.Core=2]="Core",rR=rb("hHq4F"),nb=rb("eAXk4"),nj=rb("hlfY9");const aq=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aV=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aX=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),az=new Map(),aW={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},aK="17.0.6";n1=n3.resolve(__dirname,"../../src/llvm");const aY=eU(tH,{isPromise:!0}),aQ=eU(tV,{isPromise:!0}),aJ=eU(tX,{isPromise:!0});rI=rb("dAuy6"),nb=rb("eAXk4"),rR=rb("hHq4F"),ng=rb("6t4SD"),n2=n3.resolve(__dirname,"../../src/msvc"),nb=rb("eAXk4"),nb=rb("eAXk4"),rR=rb("hHq4F"),ng=rb("6t4SD"),nb=rb("eAXk4");let aZ=!1;const a0={nala:tJ,cmake:eN,ninja:tS,python:eq,vcpkg:t4,bazel:ed,conan:function(e,t,r){return e9("conan",e);},meson:function(e,t,r){return e9("meson",e);},gcovr:function(e,t,r){return e9("gcovr",e);},opencppcoverage:tZ,llvm:tB,gcc:tg,choco:el,brew:eo,powershell:t1,ccache:function(e,t,r){switch(process.platform){case"win32":return ec("ccache",e);case"darwin":return ea("ccache",e);case"linux":if(D())return ef("ccache",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return W([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return ec("sccache",e);case"linux":case"darwin":return ea("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tf,graphviz:tc,cppcheck:ta,clangtidy:function(e,t,r){return tq(e,t,r);},clangformat:function(e,t,r){return tq(e,t,r,n0.ClangFormat);},msvc:tY,vcvarsall:t_,kcov:tA,make:tK,task:function(e,t,r){return e_("task",e,t2,t,r);},sevenzip:eI},a1=Object.keys(a0),a2=["compiler","architecture","timeout",...a1];nv=rb("1o3Gj"),rR=rb("hHq4F"),nX=rb("2kZmC"),t8(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rR.error)("main() panicked!"),(0,rR.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map \ No newline at end of file diff --git a/dist/legacy/setup-cpp.js.map b/dist/legacy/setup-cpp.js.map index 5b20df58..c6592e04 100644 --- a/dist/legacy/setup-cpp.js.map +++ b/dist/legacy/setup-cpp.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rM","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rj","sync","command","path","rG","pathExt","n1","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iS","file","original","h","rk","rt","spawn","rz","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ra","execPath","URL","rl","fileURLToPath","ro","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r0","getBufferedLength","rJ","MAX_LENGTH","bufferedData","getBufferedValue","od","on","of","x","oG","oC","o$","oF","oa","rs","ChildProcess","oR","reject","iq","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","oO","os","ol","kill","i7","bind","cancel","oi","rW","exitCode","signal","ob","oB","aborted","failed","oE","oy","op","b","ov","spawnSync","input","status","S","getuid","call","CI","rT","nothrow","I","oV","o_","O","T","R","map","A","SUDO_USER","n2","statSync","isDirectory","C","n0","homedir","replace","oX","$","next","throw","done","value","then","apply","_","return","label","ops","pop","trys","sent","Symbol","iterator","P","r3","pkg","nd","rb","warning","message","stack","N","Array","isArray","L","D","k","U","s$","sy","sw","sA","o7","sm","oQ","sv","o9","se","o1","o8","sd","s_","sl","sc","sn","j","stdio","F","sL","nm","nv","shouldEscapeSpace","rx","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nf","info","exportVariable","G","setFailed","M","sD","some","test","PATH","split","includes","addPath","B","H","appendFileSync","sk","sU","nh","pathExists","readFileSync","q","Set","writeFileSync","V","W","name","version","DEBIAN_FRONTEND","sF","K","sM","Y","flatMap","repositories","z","sG","binDir","X","ng","default","trim","J","Q","Z","ee","toString","sj","et","startsWith","er","ny","dirname","tmpdir","nw","mkdirP","NONINTERACTIVE","en","ei","sB","arch","eo","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","es","sH","TMP","TEMP","Path","extendEnv","ea","el","ec","eu","sq","sV","ep","matchAll","sX","ed","sQ","sJ","eE","sK","existsSync","readdirSync","ev","ef","ey","s4","sW","eh","s0","clean","sz","debug","rmRF","em","valid","eg","sort","gt","satisfies","RUNNER_TOOL_CACHE","t9","ok","RUNNER_TEMP","ew","rv","ex","eb","eS","eI","eR","eO","eT","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","s9","current","catch","RegExp","Math","pow","eA","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nx","installDir","nk","downloadTool","s7","cacheDir","eC","nL","nD","addExeExt","extractTar","e$","e_","nj","eP","eN","eL","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nU","nF","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","eD","n6","request","method","statusCode","end","ek","from","filter","nB","localeCompare","eU","nG","has","JSON","stringify","ej","am","nA","getExecOutput","console","eF","eM","eG","eq","bin","eW","eB","eH","e5","e8","upgrade","usePipx","tn","isLibrary","eX","setupActionsPython","ry","eV","ez","ag","python","eK","eQ","eY","pip","eJ","eZ","e0","e1","aE","parseInt","av","e2","execFile","encoding","shell","e4","e3","nq","getUbuntuVersion","e6","aS","user","tt","PIPX_HOME","ax","PIPX_BIN_DIR","ab","ay","tr","e9","ah","e7","te","aw","findIndex","ti","to","ts","ta","tl","ArchiveHdi","read","extract","tc","tu","tp","aR","notice","td","tf","aO","releaseName","fileSuffix","th","tv","tg","tm","nV","tE","nX","ty","tw","tx","tb","tS","tI","nz","tR","tO","aD","tT","execSync","entries","aL","aP","aN","a_","tA","nY","tC","aU","startGroup","milliseconds","fallback","customTimers","sign","a$","addEventListener","Number","POSITIVE_INFINITY","aT","finally","clear","t$","endGroup","aQ","t1","t_","tP","aM","aj","NODE_DEBUG","tN","aF","rm","tL","tD","tk","aB","tU","aH","aq","get","aG","aV","aX","tj","tF","az","tq","tM","tG","aK","tV","nQ","All","nH","aW","tB","tH","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","nJ","tX","tz","nW","nK","tW","nZ","tK","tY","tQ","tJ","tZ","t0","aY","addShExt","addShRelativePrefix","t2","compiler","t4","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","aZ","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rR","create","autoloadLocales","addLocale","rO","rS","rI","forEach","cppcheck","gcovr","aJ","isCI","now","parseFloat","format","success","t3","t6","r_","rP","rN","rL","rB","rH","rY","rZ","r1","r4","r8","r5","r9","r7","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nM","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","random","rng","n4","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n3","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t8","connect","localAddress","defaultPort","t7","inherits","t5","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","appendFile","writeFile","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","re","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","rr","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rn","HandleTimeout","rw","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","rA","n8","n9","rC","n5","n7","groups","getgroups","r$","ie","ii","it","ir","io","_ISEXE_TEST_PLATFORM_","is","isexe","ia","posix","il","ic","iu","source","ip","pathEnv","pathExtExe","ih","im","rD","rU","iv","OSTYPE","ig","rF","iE","iy","colon","iw","ix","rq","rV","rX","openSync","readSync","closeSync","ib","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iI","getOwnPropertyDescriptor","iR","iO","getPrototypeOf","iT","iA","Function","iC","i$","i_","WeakMap","iP","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","iN","ik","iD","iL","number","action","description","standard","iU","forced","ij","iF","signals","rc","supported","iM","iG","iB","iH","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iV","iX","iz","iW","reallyExit","pid","iK","iY","iQ","iJ","iZ","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i0","i4","i2","i5","i6","rK","equal","i3","alwaysLast","unload","i1","i9","i8","oe","ot","unref","forceKillAfterTimeout","or","SIGTERM","isFinite","oo","killSignal","race","cleanup","detached","oc","ou","createWriteStream","pipeStdout","pipeStderr","pipeAll","ru","rp","PassThrough","array","objectMode","setEncoding","pipeline","rQ","buffer","MaxBufferError","r2","readable","isEmpty","oh","om","inputFile","og","createReadStream","ow","ox","oS","oI","oT","oA","oP","ri","isBuffer","oN","oL","templates","expressions","template","oD","rd","debuglog","enabled","oU","padStart","oj","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oM","preferLocal","localDir","stripFinalNewline","windowsHide","oH","oq","rf","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r6","padEnd","isTTY","shouldNotifyInNpmScript","oz","oW","release","oK","oY","oJ","oZ","o0","o2","o4","o6","o3","o5","st","sr","si","so","ss","sa","su","sp","sf","sh","sg","sE","sx","sb","sS","sI","sR","sO","sT","sC","sP","sN","nE","nR","sY","sZ","s1","s2","nT","s3","nP","nC","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s6","httpStatusCode","new","target","HTTPError","s8","s5","nO","authorization","statusMessage","extract7z","nb","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","ae","fs","mkdirAsync","statAsync","at","ar","an","ai","ao","as","aa","__TESTING_MKDIRP_PLATFORM__","al","root","ac","__TESTING_MKDIRP_NODE_VERSION__","au","ap","ad","af","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rh","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aI","aA","aC","globalThis","DOMException","reason","ProgramFiles","ak","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-3dfbc2a3f5a258f9.js","../../node_modules/@parcel/runtime-js/lib/runtime-5ad8534f7f57082c.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $4umf8$os = require(\"os\");\nvar $4umf8$path = require(\"path\");\nvar $4umf8$fs = require(\"fs\");\nvar $4umf8$crypto = require(\"crypto\");\nvar $4umf8$http = require(\"http\");\nvar $4umf8$https = require(\"https\");\nrequire(\"net\");\nvar $4umf8$tls = require(\"tls\");\nvar $4umf8$events = require(\"events\");\nvar $4umf8$assert = require(\"assert\");\nvar $4umf8$util = require(\"util\");\nvar $4umf8$nodefs = require(\"node:fs\");\nvar $4umf8$child_process = require(\"child_process\");\nvar $4umf8$string_decoder = require(\"string_decoder\");\nvar $4umf8$timers = require(\"timers\");\nvar $4umf8$nodebuffer = require(\"node:buffer\");\nvar $4umf8$nodepath = require(\"node:path\");\nvar $4umf8$nodechild_process = require(\"node:child_process\");\nvar $4umf8$nodeprocess = require(\"node:process\");\nvar $4umf8$nodeurl = require(\"node:url\");\nvar $4umf8$nodeos = require(\"node:os\");\nvar $4umf8$buffer = require(\"buffer\");\nvar $4umf8$stream = require(\"stream\");\nvar $4umf8$nodeutil = require(\"node:util\");\nvar $4umf8$process = require(\"process\");\nvar $4umf8$url = require(\"url\");\nvar $4umf8$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"dAuy6\", function(module, exports) {\n\"use strict\";\n\nvar $5vZJI = parcelRequire(\"5vZJI\");\nconst $9e46558a3f40ee97$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $5vZJI.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$5vZJI.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $9e46558a3f40ee97$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$9e46558a3f40ee97$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $9e46558a3f40ee97$var$env && $9e46558a3f40ee97$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$9e46558a3f40ee97$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $9e46558a3f40ee97$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($9e46558a3f40ee97$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($9e46558a3f40ee97$var$env.BUILD_ID || // Jenkins, Cloudbees\n$9e46558a3f40ee97$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$9e46558a3f40ee97$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$9e46558a3f40ee97$var$env.CI_APP_ID || // Appflow\n$9e46558a3f40ee97$var$env.CI_BUILD_ID || // Appflow\n$9e46558a3f40ee97$var$env.CI_BUILD_NUMBER || // Appflow\n$9e46558a3f40ee97$var$env.CI_NAME || // Codeship and others\n$9e46558a3f40ee97$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$9e46558a3f40ee97$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $9e46558a3f40ee97$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$9e46558a3f40ee97$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $9e46558a3f40ee97$var$env[obj.env] && $9e46558a3f40ee97$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$9e46558a3f40ee97$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $9e46558a3f40ee97$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"5vZJI\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"hHq4F\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $0c53d1c71c9db41f$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $0c53d1c71c9db41f$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $0c53d1c71c9db41f$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $0c53d1c71c9db41f$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $0c53d1c71c9db41f$export$a80b3bd66acc52ff);\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\nfunction $0c53d1c71c9db41f$export$a3bc9b8ed74fc(err) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$491112666e282270(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$b31f6ae88848cf15(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$a80b3bd66acc52ff(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"1o3Gj\", function(module, exports) {\n\"use strict\";\nvar $102ae369f312a547$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $102ae369f312a547$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $102ae369f312a547$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $102ae369f312a547$var$__createBinding(result, mod, k);\n }\n $102ae369f312a547$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $102ae369f312a547$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $1g3mY = parcelRequire(\"1g3mY\");\n\nvar $8prV6 = parcelRequire(\"8prV6\");\n\nvar $5nnws = parcelRequire(\"5nnws\");\n\nconst $102ae369f312a547$var$os = $102ae369f312a547$var$__importStar($4umf8$os);\n\nconst $102ae369f312a547$var$path = $102ae369f312a547$var$__importStar($4umf8$path);\n\nvar $dU1e3 = parcelRequire(\"dU1e3\");\n/**\n * The code to exit an action\n */ var $102ae369f312a547$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($102ae369f312a547$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$exportVariable(name, val) {\n const convertedVal = $5nnws.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"ENV\", $8prV6.prepareKeyValueMessage(name, val));\n $1g3mY.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $102ae369f312a547$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $102ae369f312a547$var$setSecret(secret) {\n $1g3mY.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $102ae369f312a547$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $102ae369f312a547$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $8prV6.issueFileCommand(\"PATH\", inputPath);\n else $1g3mY.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$102ae369f312a547$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $102ae369f312a547$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $102ae369f312a547$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $102ae369f312a547$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $102ae369f312a547$var$getMultilineInput(name, options) {\n const inputs = $102ae369f312a547$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $102ae369f312a547$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $102ae369f312a547$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $102ae369f312a547$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $102ae369f312a547$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"OUTPUT\", $8prV6.prepareKeyValueMessage(name, value));\n process.stdout.write($102ae369f312a547$var$os.EOL);\n $1g3mY.issueCommand(\"set-output\", {\n name: name\n }, $5nnws.toCommandValue(value));\n}\nmodule.exports.setOutput = $102ae369f312a547$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $102ae369f312a547$var$setCommandEcho(enabled) {\n $1g3mY.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $102ae369f312a547$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $102ae369f312a547$var$setFailed(message) {\n process.exitCode = $102ae369f312a547$var$ExitCode.Failure;\n $102ae369f312a547$var$error(message);\n}\nmodule.exports.setFailed = $102ae369f312a547$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $102ae369f312a547$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $102ae369f312a547$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $102ae369f312a547$var$debug(message) {\n $1g3mY.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $102ae369f312a547$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$error(message, properties = {}) {\n $1g3mY.issueCommand(\"error\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $102ae369f312a547$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$warning(message, properties = {}) {\n $1g3mY.issueCommand(\"warning\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $102ae369f312a547$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$notice(message, properties = {}) {\n $1g3mY.issueCommand(\"notice\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $102ae369f312a547$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $102ae369f312a547$var$info(message) {\n process.stdout.write(message + $102ae369f312a547$var$os.EOL);\n}\nmodule.exports.info = $102ae369f312a547$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $102ae369f312a547$var$startGroup(name) {\n $1g3mY.issue(\"group\", name);\n}\nmodule.exports.startGroup = $102ae369f312a547$var$startGroup;\n/**\n * End an output group.\n */ function $102ae369f312a547$var$endGroup() {\n $1g3mY.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $102ae369f312a547$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $102ae369f312a547$var$group(name, fn) {\n return $102ae369f312a547$var$__awaiter(this, void 0, void 0, function*() {\n $102ae369f312a547$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $102ae369f312a547$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $102ae369f312a547$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"STATE\", $8prV6.prepareKeyValueMessage(name, value));\n $1g3mY.issueCommand(\"save-state\", {\n name: name\n }, $5nnws.toCommandValue(value));\n}\nmodule.exports.saveState = $102ae369f312a547$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $102ae369f312a547$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $102ae369f312a547$var$getState;\nfunction $102ae369f312a547$var$getIDToken(aud) {\n return $102ae369f312a547$var$__awaiter(this, void 0, void 0, function*() {\n return yield $dU1e3.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $102ae369f312a547$var$getIDToken;\n\nvar $dV9Cu = parcelRequire(\"dV9Cu\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $dV9Cu.summary;\n }\n});\n\nvar $dV9Cu = parcelRequire(\"dV9Cu\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $dV9Cu.markdownSummary;\n }\n});\n\nvar $9i0tI = parcelRequire(\"9i0tI\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"1g3mY\", function(module, exports) {\n\"use strict\";\nvar $0ea9e630a7cef9e6$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0ea9e630a7cef9e6$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0ea9e630a7cef9e6$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0ea9e630a7cef9e6$var$__createBinding(result, mod, k);\n }\n $0ea9e630a7cef9e6$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $0ea9e630a7cef9e6$var$os = $0ea9e630a7cef9e6$var$__importStar($4umf8$os);\n\nvar $5nnws = parcelRequire(\"5nnws\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $0ea9e630a7cef9e6$var$issueCommand(command, properties, message) {\n const cmd = new $0ea9e630a7cef9e6$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $0ea9e630a7cef9e6$var$os.EOL);\n}\nmodule.exports.issueCommand = $0ea9e630a7cef9e6$var$issueCommand;\nfunction $0ea9e630a7cef9e6$var$issue(name, message = \"\") {\n $0ea9e630a7cef9e6$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $0ea9e630a7cef9e6$var$issue;\nconst $0ea9e630a7cef9e6$var$CMD_STRING = \"::\";\nclass $0ea9e630a7cef9e6$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $0ea9e630a7cef9e6$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$0ea9e630a7cef9e6$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$0ea9e630a7cef9e6$var$CMD_STRING}${$0ea9e630a7cef9e6$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $0ea9e630a7cef9e6$var$escapeData(s) {\n return $5nnws.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $0ea9e630a7cef9e6$var$escapeProperty(s) {\n return $5nnws.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"5nnws\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $3ea158d1b71ecb6c$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $3ea158d1b71ecb6c$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $3ea158d1b71ecb6c$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $3ea158d1b71ecb6c$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"8prV6\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $61f650dde32acca8$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $61f650dde32acca8$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $61f650dde32acca8$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $61f650dde32acca8$var$__createBinding(result, mod, k);\n }\n $61f650dde32acca8$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $61f650dde32acca8$var$fs = $61f650dde32acca8$var$__importStar($4umf8$fs);\n\nconst $61f650dde32acca8$var$os = $61f650dde32acca8$var$__importStar($4umf8$os);\n\nvar $1Un9O = parcelRequire(\"1Un9O\");\n\nvar $5nnws = parcelRequire(\"5nnws\");\nfunction $61f650dde32acca8$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$61f650dde32acca8$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $61f650dde32acca8$var$fs.appendFileSync(filePath, `${$5nnws.toCommandValue(message)}${$61f650dde32acca8$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $61f650dde32acca8$var$issueFileCommand;\nfunction $61f650dde32acca8$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$1Un9O.default()}`;\n const convertedValue = $5nnws.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$61f650dde32acca8$var$os.EOL}${convertedValue}${$61f650dde32acca8$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $61f650dde32acca8$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"1Un9O\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $163cfbef58865d16$export$2e2bcd8739ae039);\n\nvar $jyKkd = parcelRequire(\"jyKkd\");\n\nvar $4DdbA = parcelRequire(\"4DdbA\");\nfunction $163cfbef58865d16$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $jyKkd.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $4DdbA.default)(rnds);\n}\nvar $163cfbef58865d16$export$2e2bcd8739ae039 = $163cfbef58865d16$var$v4;\n\n});\nparcelRegister(\"jyKkd\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $e3d520772be72ad6$export$2e2bcd8739ae039);\n\nconst $e3d520772be72ad6$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $e3d520772be72ad6$var$poolPtr = $e3d520772be72ad6$var$rnds8Pool.length;\nfunction $e3d520772be72ad6$export$2e2bcd8739ae039() {\n if ($e3d520772be72ad6$var$poolPtr > $e3d520772be72ad6$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($4umf8$crypto))).randomFillSync($e3d520772be72ad6$var$rnds8Pool);\n $e3d520772be72ad6$var$poolPtr = 0;\n }\n return $e3d520772be72ad6$var$rnds8Pool.slice($e3d520772be72ad6$var$poolPtr, $e3d520772be72ad6$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"4DdbA\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $35f5085d44821234$export$2e2bcd8739ae039);\n\nvar $4XBHo = parcelRequire(\"4XBHo\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $35f5085d44821234$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$35f5085d44821234$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $35f5085d44821234$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($35f5085d44821234$var$byteToHex[arr[offset + 0]] + $35f5085d44821234$var$byteToHex[arr[offset + 1]] + $35f5085d44821234$var$byteToHex[arr[offset + 2]] + $35f5085d44821234$var$byteToHex[arr[offset + 3]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 4]] + $35f5085d44821234$var$byteToHex[arr[offset + 5]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 6]] + $35f5085d44821234$var$byteToHex[arr[offset + 7]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 8]] + $35f5085d44821234$var$byteToHex[arr[offset + 9]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 10]] + $35f5085d44821234$var$byteToHex[arr[offset + 11]] + $35f5085d44821234$var$byteToHex[arr[offset + 12]] + $35f5085d44821234$var$byteToHex[arr[offset + 13]] + $35f5085d44821234$var$byteToHex[arr[offset + 14]] + $35f5085d44821234$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $4XBHo.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $35f5085d44821234$export$2e2bcd8739ae039 = $35f5085d44821234$var$stringify;\n\n});\nparcelRegister(\"4XBHo\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $39c9ea59ce04fda7$export$2e2bcd8739ae039);\n\nvar $dcWu5 = parcelRequire(\"dcWu5\");\nfunction $39c9ea59ce04fda7$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $dcWu5.default).test(uuid);\n}\nvar $39c9ea59ce04fda7$export$2e2bcd8739ae039 = $39c9ea59ce04fda7$var$validate;\n\n});\nparcelRegister(\"dcWu5\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $99d9c315b99dd3a1$export$2e2bcd8739ae039);\nvar $99d9c315b99dd3a1$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"dU1e3\", function(module, exports) {\n\"use strict\";\nvar $a1f174b1cdd8a4a7$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $eamjo = parcelRequire(\"eamjo\");\n\nvar $h6tQO = parcelRequire(\"h6tQO\");\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\nclass $a1f174b1cdd8a4a7$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $eamjo.HttpClient(\"actions/oidc-client\", [\n new $h6tQO.BearerCredentialHandler($a1f174b1cdd8a4a7$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $a1f174b1cdd8a4a7$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $a1f174b1cdd8a4a7$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $a1f174b1cdd8a4a7$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $a1f174b1cdd8a4a7$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $1o3Gj.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $a1f174b1cdd8a4a7$var$OidcClient.getCall(id_token_url);\n $1o3Gj.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $a1f174b1cdd8a4a7$var$OidcClient;\n\n});\nparcelRegister(\"eamjo\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $02a957f9cba5526c$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $02a957f9cba5526c$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $02a957f9cba5526c$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $02a957f9cba5526c$var$__createBinding(result, mod, k);\n }\n $02a957f9cba5526c$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $02a957f9cba5526c$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $02a957f9cba5526c$var$http = $02a957f9cba5526c$var$__importStar($4umf8$http);\n\nconst $02a957f9cba5526c$var$https = $02a957f9cba5526c$var$__importStar($4umf8$https);\n\nconst $02a957f9cba5526c$var$pm = $02a957f9cba5526c$var$__importStar((parcelRequire(\"jnrYh\")));\n\nconst $02a957f9cba5526c$var$tunnel = $02a957f9cba5526c$var$__importStar((parcelRequire(\"3RDK7\")));\nvar $02a957f9cba5526c$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($02a957f9cba5526c$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $02a957f9cba5526c$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($02a957f9cba5526c$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $02a957f9cba5526c$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($02a957f9cba5526c$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $02a957f9cba5526c$var$getProxyUrl(serverUrl) {\n const proxyUrl = $02a957f9cba5526c$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $02a957f9cba5526c$var$getProxyUrl;\nconst $02a957f9cba5526c$var$HttpRedirectCodes = [\n $02a957f9cba5526c$var$HttpCodes.MovedPermanently,\n $02a957f9cba5526c$var$HttpCodes.ResourceMoved,\n $02a957f9cba5526c$var$HttpCodes.SeeOther,\n $02a957f9cba5526c$var$HttpCodes.TemporaryRedirect,\n $02a957f9cba5526c$var$HttpCodes.PermanentRedirect\n];\nconst $02a957f9cba5526c$var$HttpResponseRetryCodes = [\n $02a957f9cba5526c$var$HttpCodes.BadGateway,\n $02a957f9cba5526c$var$HttpCodes.ServiceUnavailable,\n $02a957f9cba5526c$var$HttpCodes.GatewayTimeout\n];\nconst $02a957f9cba5526c$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $02a957f9cba5526c$var$ExponentialBackoffCeiling = 10;\nconst $02a957f9cba5526c$var$ExponentialBackoffTimeSlice = 5;\nclass $02a957f9cba5526c$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $02a957f9cba5526c$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $02a957f9cba5526c$var$HttpClientError;\nclass $02a957f9cba5526c$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $02a957f9cba5526c$var$HttpClientResponse;\nfunction $02a957f9cba5526c$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $02a957f9cba5526c$var$isHttps;\nclass $02a957f9cba5526c$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $02a957f9cba5526c$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $02a957f9cba5526c$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $02a957f9cba5526c$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$02a957f9cba5526c$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $02a957f9cba5526c$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $02a957f9cba5526c$var$https : $02a957f9cba5526c$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $02a957f9cba5526c$var$lowercaseKeys(this.requestOptions.headers), $02a957f9cba5526c$var$lowercaseKeys(headers || {}));\n return $02a957f9cba5526c$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $02a957f9cba5526c$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $02a957f9cba5526c$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $02a957f9cba5526c$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $02a957f9cba5526c$var$tunnel.httpsOverHttps : $02a957f9cba5526c$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $02a957f9cba5526c$var$tunnel.httpOverHttps : $02a957f9cba5526c$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $02a957f9cba5526c$var$https.Agent(options) : new $02a957f9cba5526c$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $02a957f9cba5526c$var$https.globalAgent : $02a957f9cba5526c$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($02a957f9cba5526c$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $02a957f9cba5526c$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $02a957f9cba5526c$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $02a957f9cba5526c$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $02a957f9cba5526c$var$HttpClient;\nconst $02a957f9cba5526c$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"jnrYh\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $e1b5dcd4d3bc6d63$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($e1b5dcd4d3bc6d63$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $e1b5dcd4d3bc6d63$var$getProxyUrl;\nfunction $e1b5dcd4d3bc6d63$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($e1b5dcd4d3bc6d63$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $e1b5dcd4d3bc6d63$var$checkBypass;\nfunction $e1b5dcd4d3bc6d63$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"3RDK7\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"jZQ4B\"));\n\n});\nparcelRegister(\"jZQ4B\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $e8ec1b78916bb724$export$25cbd437c61a3835, (v) => $e8ec1b78916bb724$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $e8ec1b78916bb724$export$c06e3df7111bae43, (v) => $e8ec1b78916bb724$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $e8ec1b78916bb724$export$5d50e36ef656139f, (v) => $e8ec1b78916bb724$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $e8ec1b78916bb724$export$212d6605025321cc, (v) => $e8ec1b78916bb724$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $e8ec1b78916bb724$export$1c9f709888824e05, (v) => $e8ec1b78916bb724$export$1c9f709888824e05 = v);\nvar $e8ec1b78916bb724$export$25cbd437c61a3835;\nvar $e8ec1b78916bb724$export$c06e3df7111bae43;\nvar $e8ec1b78916bb724$export$5d50e36ef656139f;\nvar $e8ec1b78916bb724$export$212d6605025321cc;\nvar $e8ec1b78916bb724$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$e8ec1b78916bb724$export$25cbd437c61a3835 = $e8ec1b78916bb724$var$httpOverHttp;\n$e8ec1b78916bb724$export$c06e3df7111bae43 = $e8ec1b78916bb724$var$httpsOverHttp;\n$e8ec1b78916bb724$export$5d50e36ef656139f = $e8ec1b78916bb724$var$httpOverHttps;\n$e8ec1b78916bb724$export$212d6605025321cc = $e8ec1b78916bb724$var$httpsOverHttps;\nfunction $e8ec1b78916bb724$var$httpOverHttp(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$http.request;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpsOverHttp(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$http.request;\n agent.createSocket = $e8ec1b78916bb724$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpOverHttps(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$https.request;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpsOverHttps(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$https.request;\n agent.createSocket = $e8ec1b78916bb724$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $4umf8$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $e8ec1b78916bb724$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$4umf8$util.inherits($e8ec1b78916bb724$var$TunnelingAgent, $4umf8$events.EventEmitter);\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $e8ec1b78916bb724$var$mergeOptions({\n request: req\n }, self.options, $e8ec1b78916bb724$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $e8ec1b78916bb724$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $e8ec1b78916bb724$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $e8ec1b78916bb724$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $e8ec1b78916bb724$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $e8ec1b78916bb724$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $e8ec1b78916bb724$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $e8ec1b78916bb724$var$createSecureSocket(options, cb) {\n var self = this;\n $e8ec1b78916bb724$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $e8ec1b78916bb724$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $4umf8$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $e8ec1b78916bb724$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $e8ec1b78916bb724$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $e8ec1b78916bb724$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $e8ec1b78916bb724$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $e8ec1b78916bb724$var$debug = function() {};\n$e8ec1b78916bb724$export$1c9f709888824e05 = $e8ec1b78916bb724$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"h6tQO\", function(module, exports) {\n\"use strict\";\nvar $c73a26f8594778ef$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $c73a26f8594778ef$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $c73a26f8594778ef$var$BasicCredentialHandler;\nclass $c73a26f8594778ef$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $c73a26f8594778ef$var$BearerCredentialHandler;\nclass $c73a26f8594778ef$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $c73a26f8594778ef$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"dV9Cu\", function(module, exports) {\n\"use strict\";\nvar $a2280f869d17820a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $a2280f869d17820a$var$access, appendFile: $a2280f869d17820a$var$appendFile, writeFile: $a2280f869d17820a$var$writeFile } = $4umf8$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $a2280f869d17820a$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $a2280f869d17820a$var$access(pathFromEnv, $4umf8$fs.constants.R_OK | $4umf8$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $a2280f869d17820a$var$writeFile : $a2280f869d17820a$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($4umf8$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $a2280f869d17820a$var$_summary = new $a2280f869d17820a$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $a2280f869d17820a$var$_summary;\nmodule.exports.summary = $a2280f869d17820a$var$_summary;\n\n});\n\nparcelRegister(\"9i0tI\", function(module, exports) {\n\"use strict\";\nvar $6c362a75924285b0$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $6c362a75924285b0$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $6c362a75924285b0$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $6c362a75924285b0$var$__createBinding(result, mod, k);\n }\n $6c362a75924285b0$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $6c362a75924285b0$var$path = $6c362a75924285b0$var$__importStar($4umf8$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $6c362a75924285b0$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $6c362a75924285b0$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $6c362a75924285b0$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $6c362a75924285b0$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $6c362a75924285b0$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $6c362a75924285b0$var$path.sep);\n}\nmodule.exports.toPlatformPath = $6c362a75924285b0$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"kswPT\", function(module, exports) {\n\nvar $ee4fe4bbd8d821d9$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($ee4fe4bbd8d821d9$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"foOBZ\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $6OFKY = parcelRequire(\"6OFKY\");\n\nvar $5GOZM = parcelRequire(\"5GOZM\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $b3605b587cf7d4a3$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $b3605b587cf7d4a3$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $b3605b587cf7d4a3$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $b3605b587cf7d4a3$var$timeDeltaFactory,\n addLocale: $b3605b587cf7d4a3$var$addLocale,\n defaultConfig: $b3605b587cf7d4a3$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $b3605b587cf7d4a3$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $b3605b587cf7d4a3$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $b3605b587cf7d4a3$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $b3605b587cf7d4a3$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $b3605b587cf7d4a3$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $b3605b587cf7d4a3$var$format(firstDate, secondDate, config) {\n $b3605b587cf7d4a3$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $b3605b587cf7d4a3$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($b3605b587cf7d4a3$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $b3605b587cf7d4a3$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($b3605b587cf7d4a3$var$hasLocale(locale)) return;\n if ($5GOZM && autoload) $b3605b587cf7d4a3$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $b3605b587cf7d4a3$var$hasLocale(localeId) {\n return Boolean($b3605b587cf7d4a3$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $b3605b587cf7d4a3$var$requireLocale(localeId) {\n try {\n $b3605b587cf7d4a3$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $b3605b587cf7d4a3$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $b3605b587cf7d4a3$var$pluralize(unit, value, config) {\n const unitTypeData = $b3605b587cf7d4a3$var$getLocaleDataForUnitType(config);\n const unitString = $6OFKY.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$getLocaleDataForUnitType(config) {\n const localeData = $b3605b587cf7d4a3$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $b3605b587cf7d4a3$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"6OFKY\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"kswPT\"));\n\n});\n\nparcelRegister(\"5GOZM\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"2Bbmx\", function(module, exports) {\n\n$parcel$export(module.exports, \"chmod\", () => $9b99f2c333371baa$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $9b99f2c333371baa$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $9b99f2c333371baa$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $9b99f2c333371baa$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $9b99f2c333371baa$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readlink\", () => $9b99f2c333371baa$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $9b99f2c333371baa$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $9b99f2c333371baa$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $9b99f2c333371baa$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $9b99f2c333371baa$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $9b99f2c333371baa$export$a1f77f18af3aebd5);\n\n\nvar $9b99f2c333371baa$export$2e2bcd8739ae039 = $4umf8$fs.promises;\nconst { access: $9b99f2c333371baa$export$9bb0e144ba4929ca, appendFile: $9b99f2c333371baa$export$31f54b44f813a103, chmod: $9b99f2c333371baa$export$fe07cae62e774a05, chown: $9b99f2c333371baa$export$86560bc0b866a003, copyFile: $9b99f2c333371baa$export$c763efb2c06e223f, lchmod: $9b99f2c333371baa$export$4d4374c7ea08c49f, lchown: $9b99f2c333371baa$export$b34a65c440b523a2, link: $9b99f2c333371baa$export$9c30223ca0a664fb, lstat: $9b99f2c333371baa$export$c29f07eab13966a4, mkdir: $9b99f2c333371baa$export$d9fa9670717a639d, mkdtemp: $9b99f2c333371baa$export$bb440dc863a3b46a, open: $9b99f2c333371baa$export$3ce6949f20cea765, readdir: $9b99f2c333371baa$export$b1e07c405f785337, readFile: $9b99f2c333371baa$export$72c04af63de9061a, readlink: $9b99f2c333371baa$export$3d3ca76659ee9f39, realpath: $9b99f2c333371baa$export$9f2c45015a422c45, rename: $9b99f2c333371baa$export$7ac989ec0c9c279, rmdir: $9b99f2c333371baa$export$3f660f6332b9a01d, stat: $9b99f2c333371baa$export$f82f04a91eb6144a, symlink: $9b99f2c333371baa$export$ed42c6f39f07f97, truncate: $9b99f2c333371baa$export$6a506b36fdea397d, unlink: $9b99f2c333371baa$export$5e0808041271ce04, utimes: $9b99f2c333371baa$export$d85d919a687a608f, writeFile: $9b99f2c333371baa$export$552bfb764b5cd2b4 } = $4umf8$fs.promises;\nconst $9b99f2c333371baa$export$a1f77f18af3aebd5 = \"rm\" in $4umf8$fs.promises ? $4umf8$fs.promises.rm : (0, $4umf8$util.promisify)($4umf8$fs.unlink);\n\n});\n\nparcelRegister(\"8nJMC\", function(module, exports) {\nmodule.exports = $61a3fc466617a20f$var$isexe;\n$61a3fc466617a20f$var$isexe.sync = $61a3fc466617a20f$var$sync;\n\nfunction $61a3fc466617a20f$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $61a3fc466617a20f$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $61a3fc466617a20f$var$checkPathExt(path, options);\n}\nfunction $61a3fc466617a20f$var$isexe(path, options, cb) {\n $4umf8$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $61a3fc466617a20f$var$checkStat(stat, path, options));\n });\n}\nfunction $61a3fc466617a20f$var$sync(path, options) {\n return $61a3fc466617a20f$var$checkStat($4umf8$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"lo7XV\", function(module, exports) {\nmodule.exports = $f92204a92aa246f8$var$isexe;\n$f92204a92aa246f8$var$isexe.sync = $f92204a92aa246f8$var$sync;\n\nfunction $f92204a92aa246f8$var$isexe(path, options, cb) {\n $4umf8$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $f92204a92aa246f8$var$checkStat(stat, options));\n });\n}\nfunction $f92204a92aa246f8$var$sync(path, options) {\n return $f92204a92aa246f8$var$checkStat($4umf8$fs.statSync(path), options);\n}\nfunction $f92204a92aa246f8$var$checkStat(stat, options) {\n return stat.isFile() && $f92204a92aa246f8$var$checkMode(stat, options);\n}\nfunction $f92204a92aa246f8$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"dVIKq\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"coVwk\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $dAM2Q = parcelRequire(\"dAM2Q\");\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\nvar $3Ixw1 = parcelRequire(\"3Ixw1\");\n\nvar $5r5vN = parcelRequire(\"5r5vN\");\n\nvar $bDrwm = parcelRequire(\"bDrwm\");\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $2Lh6z = parcelRequire(\"2Lh6z\");\n\nvar $73KaH = parcelRequire(\"73KaH\");\n\nvar $j5Xr5 = parcelRequire(\"j5Xr5\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n\nvar $2QKGl = parcelRequire(\"2QKGl\");\n\nvar $3puHo = parcelRequire(\"3puHo\");\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\n\nvar $hZ1Xd = parcelRequire(\"hZ1Xd\");\n\nvar $3YOIj = parcelRequire(\"3YOIj\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $lTmeS = parcelRequire(\"lTmeS\");\n\nvar $jzqBf = parcelRequire(\"jzqBf\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $84iFB = parcelRequire(\"84iFB\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $4zfp3 = parcelRequire(\"4zfp3\");\n\nvar $ga5uZ = parcelRequire(\"ga5uZ\");\n\nvar $lPGVL = parcelRequire(\"lPGVL\");\n\nvar $1I8AA = parcelRequire(\"1I8AA\");\n\nvar $dBtft = parcelRequire(\"dBtft\");\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\n\nvar $eK4my = parcelRequire(\"eK4my\");\n\nvar $eNXBI = parcelRequire(\"eNXBI\");\n\nvar $kHzUo = parcelRequire(\"kHzUo\");\n\nvar $1x2XZ = parcelRequire(\"1x2XZ\");\n\nvar $hTYir = parcelRequire(\"hTYir\");\nmodule.exports = {\n parse: $cHnHr,\n valid: $2kZmC,\n clean: $3Ixw1,\n inc: $5r5vN,\n diff: $bDrwm,\n major: $lORAA,\n minor: $2Lh6z,\n patch: $73KaH,\n prerelease: $j5Xr5,\n compare: $jDqfd,\n rcompare: $2QKGl,\n compareLoose: $3puHo,\n compareBuild: $7qrQi,\n sort: $hZ1Xd,\n rsort: $3YOIj,\n gt: $cOpcP,\n lt: $58P10,\n eq: $lTmeS,\n neq: $jzqBf,\n gte: $3XWvL,\n lte: $hlfY9,\n cmp: $84iFB,\n coerce: $6v1Be,\n Comparator: $1bxhC,\n Range: $bswWF,\n satisfies: $42oIR,\n toComparators: $4zfp3,\n maxSatisfying: $ga5uZ,\n minSatisfying: $lPGVL,\n minVersion: $1I8AA,\n validRange: $dBtft,\n outside: $83Sp2,\n gtr: $eK4my,\n ltr: $eNXBI,\n intersects: $kHzUo,\n simplifyRange: $1x2XZ,\n subset: $hTYir,\n SemVer: $8cXe9,\n re: $hhSwF.re,\n src: $hhSwF.src,\n tokens: $hhSwF.t,\n SEMVER_SPEC_VERSION: $iXsaM.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $iXsaM.RELEASE_TYPES,\n compareIdentifiers: $dAM2Q.compareIdentifiers,\n rcompareIdentifiers: $dAM2Q.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"hhSwF\", function(module, exports) {\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH = $iXsaM.MAX_SAFE_COMPONENT_LENGTH;\nvar $c95e51e8df9eefc0$require$MAX_SAFE_BUILD_LENGTH = $iXsaM.MAX_SAFE_BUILD_LENGTH;\nvar $c95e51e8df9eefc0$require$MAX_LENGTH = $iXsaM.MAX_LENGTH;\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $c95e51e8df9eefc0$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $c95e51e8df9eefc0$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $jl9Uf(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"iXsaM\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $dcd3973635072855$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $dcd3973635072855$var$MAX_LENGTH = 256;\nconst $dcd3973635072855$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $dcd3973635072855$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $dcd3973635072855$var$MAX_SAFE_BUILD_LENGTH = $dcd3973635072855$var$MAX_LENGTH - 6;\nconst $dcd3973635072855$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $dcd3973635072855$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $dcd3973635072855$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $dcd3973635072855$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $dcd3973635072855$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $dcd3973635072855$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $dcd3973635072855$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"jl9Uf\", function(module, exports) {\nconst $e147a9a67455c3ba$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $e147a9a67455c3ba$var$debug;\n\n});\n\n\nparcelRegister(\"8cXe9\", function(module, exports) {\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $5f9d6307b0a50114$require$MAX_LENGTH = $iXsaM.MAX_LENGTH;\nvar $5f9d6307b0a50114$require$MAX_SAFE_INTEGER = $iXsaM.MAX_SAFE_INTEGER;\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $5f9d6307b0a50114$require$re = $hhSwF.safeRe;\nvar $5f9d6307b0a50114$require$t = $hhSwF.t;\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $dAM2Q = parcelRequire(\"dAM2Q\");\nvar $5f9d6307b0a50114$require$compareIdentifiers = $dAM2Q.compareIdentifiers;\nclass $5f9d6307b0a50114$var$SemVer {\n constructor(version, options){\n options = $5v8m5(options);\n if (version instanceof $5f9d6307b0a50114$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $5f9d6307b0a50114$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$5f9d6307b0a50114$require$MAX_LENGTH} characters`);\n $jl9Uf(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $5f9d6307b0a50114$require$re[$5f9d6307b0a50114$require$t.LOOSE] : $5f9d6307b0a50114$require$re[$5f9d6307b0a50114$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $5f9d6307b0a50114$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $jl9Uf(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n return $5f9d6307b0a50114$require$compareIdentifiers(this.major, other.major) || $5f9d6307b0a50114$require$compareIdentifiers(this.minor, other.minor) || $5f9d6307b0a50114$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $jl9Uf(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $5f9d6307b0a50114$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $jl9Uf(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $5f9d6307b0a50114$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($5f9d6307b0a50114$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $5f9d6307b0a50114$var$SemVer;\n\n});\nparcelRegister(\"5v8m5\", function(module, exports) {\n// parse out just the options we care about\nconst $4016542f96e2ba13$var$looseOption = Object.freeze({\n loose: true\n});\nconst $4016542f96e2ba13$var$emptyOpts = Object.freeze({});\nconst $4016542f96e2ba13$var$parseOptions = (options)=>{\n if (!options) return $4016542f96e2ba13$var$emptyOpts;\n if (typeof options !== \"object\") return $4016542f96e2ba13$var$looseOption;\n return options;\n};\nmodule.exports = $4016542f96e2ba13$var$parseOptions;\n\n});\n\nparcelRegister(\"dAM2Q\", function(module, exports) {\nconst $9e53e7e486c62584$var$numeric = /^[0-9]+$/;\nconst $9e53e7e486c62584$var$compareIdentifiers = (a, b)=>{\n const anum = $9e53e7e486c62584$var$numeric.test(a);\n const bnum = $9e53e7e486c62584$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $9e53e7e486c62584$var$rcompareIdentifiers = (a, b)=>$9e53e7e486c62584$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $9e53e7e486c62584$var$compareIdentifiers,\n rcompareIdentifiers: $9e53e7e486c62584$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"cHnHr\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $93ebe26cfabaa188$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $8cXe9) return version;\n try {\n return new $8cXe9(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $93ebe26cfabaa188$var$parse;\n\n});\n\nparcelRegister(\"2kZmC\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $1b3d0c95842a233f$var$valid = (version, options)=>{\n const v = $cHnHr(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $1b3d0c95842a233f$var$valid;\n\n});\n\nparcelRegister(\"3Ixw1\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $2b4f7aa592c5a64a$var$clean = (version, options)=>{\n const s = $cHnHr(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $2b4f7aa592c5a64a$var$clean;\n\n});\n\nparcelRegister(\"5r5vN\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $3f53bfe76a8eb8ff$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $8cXe9(version instanceof $8cXe9 ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $3f53bfe76a8eb8ff$var$inc;\n\n});\n\nparcelRegister(\"bDrwm\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $8788af559a97c313$var$diff = (version1, version2)=>{\n const v1 = $cHnHr(version1, null, true);\n const v2 = $cHnHr(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $8788af559a97c313$var$diff;\n\n});\n\nparcelRegister(\"lORAA\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $fe27d62e7e33fa19$var$major = (a, loose)=>new $8cXe9(a, loose).major;\nmodule.exports = $fe27d62e7e33fa19$var$major;\n\n});\n\nparcelRegister(\"2Lh6z\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $202d3d42e88f3c28$var$minor = (a, loose)=>new $8cXe9(a, loose).minor;\nmodule.exports = $202d3d42e88f3c28$var$minor;\n\n});\n\nparcelRegister(\"73KaH\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $523ca0e80014f7d8$var$patch = (a, loose)=>new $8cXe9(a, loose).patch;\nmodule.exports = $523ca0e80014f7d8$var$patch;\n\n});\n\nparcelRegister(\"j5Xr5\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $de6c96b3ae4bd129$var$prerelease = (version, options)=>{\n const parsed = $cHnHr(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $de6c96b3ae4bd129$var$prerelease;\n\n});\n\nparcelRegister(\"jDqfd\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $e4b6046aca61f3e2$var$compare = (a, b, loose)=>new $8cXe9(a, loose).compare(new $8cXe9(b, loose));\nmodule.exports = $e4b6046aca61f3e2$var$compare;\n\n});\n\nparcelRegister(\"2QKGl\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $2134a6255f13ad9b$var$rcompare = (a, b, loose)=>$jDqfd(b, a, loose);\nmodule.exports = $2134a6255f13ad9b$var$rcompare;\n\n});\n\nparcelRegister(\"3puHo\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $27bb850ff97b303d$var$compareLoose = (a, b)=>$jDqfd(a, b, true);\nmodule.exports = $27bb850ff97b303d$var$compareLoose;\n\n});\n\nparcelRegister(\"7qrQi\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $56808f0c5eb5cb5f$var$compareBuild = (a, b, loose)=>{\n const versionA = new $8cXe9(a, loose);\n const versionB = new $8cXe9(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $56808f0c5eb5cb5f$var$compareBuild;\n\n});\n\nparcelRegister(\"hZ1Xd\", function(module, exports) {\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\nconst $d179a636da11b2a4$var$sort = (list, loose)=>list.sort((a, b)=>$7qrQi(a, b, loose));\nmodule.exports = $d179a636da11b2a4$var$sort;\n\n});\n\nparcelRegister(\"3YOIj\", function(module, exports) {\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\nconst $2e5e506179661275$var$rsort = (list, loose)=>list.sort((a, b)=>$7qrQi(b, a, loose));\nmodule.exports = $2e5e506179661275$var$rsort;\n\n});\n\nparcelRegister(\"cOpcP\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $953db4ebd516041a$var$gt = (a, b, loose)=>$jDqfd(a, b, loose) > 0;\nmodule.exports = $953db4ebd516041a$var$gt;\n\n});\n\nparcelRegister(\"58P10\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $3be545aa6e792823$var$lt = (a, b, loose)=>$jDqfd(a, b, loose) < 0;\nmodule.exports = $3be545aa6e792823$var$lt;\n\n});\n\nparcelRegister(\"lTmeS\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $fefffc38ac57fde3$var$eq = (a, b, loose)=>$jDqfd(a, b, loose) === 0;\nmodule.exports = $fefffc38ac57fde3$var$eq;\n\n});\n\nparcelRegister(\"jzqBf\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $e3f5eb5780814ac5$var$neq = (a, b, loose)=>$jDqfd(a, b, loose) !== 0;\nmodule.exports = $e3f5eb5780814ac5$var$neq;\n\n});\n\nparcelRegister(\"3XWvL\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $2e3444e9310d8b16$var$gte = (a, b, loose)=>$jDqfd(a, b, loose) >= 0;\nmodule.exports = $2e3444e9310d8b16$var$gte;\n\n});\n\nparcelRegister(\"hlfY9\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $ca00c8fc5d60d2c3$var$lte = (a, b, loose)=>$jDqfd(a, b, loose) <= 0;\nmodule.exports = $ca00c8fc5d60d2c3$var$lte;\n\n});\n\nparcelRegister(\"84iFB\", function(module, exports) {\n\nvar $lTmeS = parcelRequire(\"lTmeS\");\n\nvar $jzqBf = parcelRequire(\"jzqBf\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\nconst $5dfd2de80d18eb59$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $lTmeS(a, b, loose);\n case \"!=\":\n return $jzqBf(a, b, loose);\n case \">\":\n return $cOpcP(a, b, loose);\n case \">=\":\n return $3XWvL(a, b, loose);\n case \"<\":\n return $58P10(a, b, loose);\n case \"<=\":\n return $hlfY9(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $5dfd2de80d18eb59$var$cmp;\n\n});\n\nparcelRegister(\"6v1Be\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $4bb6e0f4a4724cfe$require$re = $hhSwF.safeRe;\nvar $4bb6e0f4a4724cfe$require$t = $hhSwF.t;\nconst $4bb6e0f4a4724cfe$var$coerce = (version, options)=>{\n if (version instanceof $8cXe9) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCEFULL] : $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCERTLFULL] : $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $cHnHr(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $4bb6e0f4a4724cfe$var$coerce;\n\n});\n\nparcelRegister(\"1bxhC\", function(module, exports) {\nconst $0dd0a2e3ba1f64c7$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $0dd0a2e3ba1f64c7$var$Comparator {\n static get ANY() {\n return $0dd0a2e3ba1f64c7$var$ANY;\n }\n constructor(comp, options){\n options = $5v8m5(options);\n if (comp instanceof $0dd0a2e3ba1f64c7$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $jl9Uf(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $0dd0a2e3ba1f64c7$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $jl9Uf(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $0dd0a2e3ba1f64c7$require$re[$0dd0a2e3ba1f64c7$require$t.COMPARATORLOOSE] : $0dd0a2e3ba1f64c7$require$re[$0dd0a2e3ba1f64c7$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $0dd0a2e3ba1f64c7$var$ANY;\n else this.semver = new $8cXe9(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $jl9Uf(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $0dd0a2e3ba1f64c7$var$ANY || version === $0dd0a2e3ba1f64c7$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $8cXe9(version, this.options);\n } catch (er) {\n return false;\n }\n return $84iFB(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $0dd0a2e3ba1f64c7$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $bswWF(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $bswWF(this.value, options).test(comp.semver);\n }\n options = $5v8m5(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($84iFB(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($84iFB(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $0dd0a2e3ba1f64c7$var$Comparator;\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $0dd0a2e3ba1f64c7$require$re = $hhSwF.safeRe;\nvar $0dd0a2e3ba1f64c7$require$t = $hhSwF.t;\n\nvar $84iFB = parcelRequire(\"84iFB\");\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\n});\nparcelRegister(\"bswWF\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $857bdd786d7ea570$var$Range {\n constructor(range, options){\n options = $5v8m5(options);\n if (range instanceof $857bdd786d7ea570$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $857bdd786d7ea570$var$Range(range.raw, options);\n }\n if (range instanceof $1bxhC) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$857bdd786d7ea570$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $857bdd786d7ea570$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $857bdd786d7ea570$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $857bdd786d7ea570$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $857bdd786d7ea570$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.HYPHENRANGELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.HYPHENRANGE];\n range = range.replace(hr, $857bdd786d7ea570$var$hyphenReplace(this.options.includePrerelease));\n $jl9Uf(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.COMPARATORTRIM], $857bdd786d7ea570$require$comparatorTrimReplace);\n $jl9Uf(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDETRIM], $857bdd786d7ea570$require$tildeTrimReplace);\n $jl9Uf(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARETTRIM], $857bdd786d7ea570$require$caretTrimReplace);\n $jl9Uf(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$857bdd786d7ea570$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$857bdd786d7ea570$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $jl9Uf(\"loose invalid filter\", comp, this.options);\n return !!comp.match($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.COMPARATORLOOSE]);\n });\n $jl9Uf(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $1bxhC(comp, this.options));\n for (const comp of comparators){\n if ($857bdd786d7ea570$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $857bdd786d7ea570$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $857bdd786d7ea570$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $857bdd786d7ea570$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $857bdd786d7ea570$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $8cXe9(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($857bdd786d7ea570$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $857bdd786d7ea570$var$Range;\n\nvar $31A6g = parcelRequire(\"31A6g\");\nconst $857bdd786d7ea570$var$cache = new $31A6g({\n max: 1000\n});\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $857bdd786d7ea570$require$re = $hhSwF.safeRe;\nvar $857bdd786d7ea570$require$t = $hhSwF.t;\nvar $857bdd786d7ea570$require$comparatorTrimReplace = $hhSwF.comparatorTrimReplace;\nvar $857bdd786d7ea570$require$tildeTrimReplace = $hhSwF.tildeTrimReplace;\nvar $857bdd786d7ea570$require$caretTrimReplace = $hhSwF.caretTrimReplace;\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $857bdd786d7ea570$require$FLAG_INCLUDE_PRERELEASE = $iXsaM.FLAG_INCLUDE_PRERELEASE;\nvar $857bdd786d7ea570$require$FLAG_LOOSE = $iXsaM.FLAG_LOOSE;\nconst $857bdd786d7ea570$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $857bdd786d7ea570$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $857bdd786d7ea570$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $857bdd786d7ea570$var$parseComparator = (comp, options)=>{\n $jl9Uf(\"comp\", comp, options);\n comp = $857bdd786d7ea570$var$replaceCarets(comp, options);\n $jl9Uf(\"caret\", comp);\n comp = $857bdd786d7ea570$var$replaceTildes(comp, options);\n $jl9Uf(\"tildes\", comp);\n comp = $857bdd786d7ea570$var$replaceXRanges(comp, options);\n $jl9Uf(\"xrange\", comp);\n comp = $857bdd786d7ea570$var$replaceStars(comp, options);\n $jl9Uf(\"stars\", comp);\n return comp;\n};\nconst $857bdd786d7ea570$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $857bdd786d7ea570$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceTilde(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $jl9Uf(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($857bdd786d7ea570$var$isX(M)) ret = \"\";\n else if ($857bdd786d7ea570$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $jl9Uf(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $jl9Uf(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $857bdd786d7ea570$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceCaret(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceCaret = (comp, options)=>{\n $jl9Uf(\"caret\", comp, options);\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARETLOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $jl9Uf(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($857bdd786d7ea570$var$isX(M)) ret = \"\";\n else if ($857bdd786d7ea570$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $jl9Uf(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $jl9Uf(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $jl9Uf(\"caret return\", ret);\n return ret;\n });\n};\nconst $857bdd786d7ea570$var$replaceXRanges = (comp, options)=>{\n $jl9Uf(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceXRange(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.XRANGELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $jl9Uf(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $857bdd786d7ea570$var$isX(M);\n const xm = xM || $857bdd786d7ea570$var$isX(m);\n const xp = xm || $857bdd786d7ea570$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $jl9Uf(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $857bdd786d7ea570$var$replaceStars = (comp, options)=>{\n $jl9Uf(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.STAR], \"\");\n};\nconst $857bdd786d7ea570$var$replaceGTE0 = (comp, options)=>{\n $jl9Uf(\"replaceGTE0\", comp, options);\n return comp.trim().replace($857bdd786d7ea570$require$re[options.includePrerelease ? $857bdd786d7ea570$require$t.GTE0PRE : $857bdd786d7ea570$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $857bdd786d7ea570$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($857bdd786d7ea570$var$isX(fM)) from = \"\";\n else if ($857bdd786d7ea570$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($857bdd786d7ea570$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($857bdd786d7ea570$var$isX(tM)) to = \"\";\n else if ($857bdd786d7ea570$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $857bdd786d7ea570$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $jl9Uf(set[i].semver);\n if (set[i].semver === $1bxhC.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"31A6g\", function(module, exports) {\n\"use strict\";\n\nvar $i08Cw = parcelRequire(\"i08Cw\");\nconst $233d77d4742ed838$var$MAX = Symbol(\"max\");\nconst $233d77d4742ed838$var$LENGTH = Symbol(\"length\");\nconst $233d77d4742ed838$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $233d77d4742ed838$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $233d77d4742ed838$var$MAX_AGE = Symbol(\"maxAge\");\nconst $233d77d4742ed838$var$DISPOSE = Symbol(\"dispose\");\nconst $233d77d4742ed838$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $233d77d4742ed838$var$LRU_LIST = Symbol(\"lruList\");\nconst $233d77d4742ed838$var$CACHE = Symbol(\"cache\");\nconst $233d77d4742ed838$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $233d77d4742ed838$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $233d77d4742ed838$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$233d77d4742ed838$var$MAX] = options.max || Infinity;\n const lc = options.length || $233d77d4742ed838$var$naiveLength;\n this[$233d77d4742ed838$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $233d77d4742ed838$var$naiveLength : lc;\n this[$233d77d4742ed838$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$233d77d4742ed838$var$MAX_AGE] = options.maxAge || 0;\n this[$233d77d4742ed838$var$DISPOSE] = options.dispose;\n this[$233d77d4742ed838$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$233d77d4742ed838$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$233d77d4742ed838$var$MAX] = mL || Infinity;\n $233d77d4742ed838$var$trim(this);\n }\n get max() {\n return this[$233d77d4742ed838$var$MAX];\n }\n set allowStale(allowStale) {\n this[$233d77d4742ed838$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$233d77d4742ed838$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$233d77d4742ed838$var$MAX_AGE] = mA;\n $233d77d4742ed838$var$trim(this);\n }\n get maxAge() {\n return this[$233d77d4742ed838$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $233d77d4742ed838$var$naiveLength;\n if (lC !== this[$233d77d4742ed838$var$LENGTH_CALCULATOR]) {\n this[$233d77d4742ed838$var$LENGTH_CALCULATOR] = lC;\n this[$233d77d4742ed838$var$LENGTH] = 0;\n this[$233d77d4742ed838$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$233d77d4742ed838$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$233d77d4742ed838$var$LENGTH] += hit.length;\n });\n }\n $233d77d4742ed838$var$trim(this);\n }\n get lengthCalculator() {\n return this[$233d77d4742ed838$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$233d77d4742ed838$var$LENGTH];\n }\n get itemCount() {\n return this[$233d77d4742ed838$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$233d77d4742ed838$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $233d77d4742ed838$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$233d77d4742ed838$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $233d77d4742ed838$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$233d77d4742ed838$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$233d77d4742ed838$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$233d77d4742ed838$var$DISPOSE] && this[$233d77d4742ed838$var$LRU_LIST] && this[$233d77d4742ed838$var$LRU_LIST].length) this[$233d77d4742ed838$var$LRU_LIST].forEach((hit)=>this[$233d77d4742ed838$var$DISPOSE](hit.key, hit.value));\n this[$233d77d4742ed838$var$CACHE] = new Map() // hash of items by key\n ;\n this[$233d77d4742ed838$var$LRU_LIST] = new $i08Cw() // list of items in order of use recency\n ;\n this[$233d77d4742ed838$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$233d77d4742ed838$var$LRU_LIST].map((hit)=>$233d77d4742ed838$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$233d77d4742ed838$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$233d77d4742ed838$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$233d77d4742ed838$var$LENGTH_CALCULATOR](value, key);\n if (this[$233d77d4742ed838$var$CACHE].has(key)) {\n if (len > this[$233d77d4742ed838$var$MAX]) {\n $233d77d4742ed838$var$del(this, this[$233d77d4742ed838$var$CACHE].get(key));\n return false;\n }\n const node = this[$233d77d4742ed838$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$233d77d4742ed838$var$DISPOSE]) {\n if (!this[$233d77d4742ed838$var$NO_DISPOSE_ON_SET]) this[$233d77d4742ed838$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$233d77d4742ed838$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $233d77d4742ed838$var$trim(this);\n return true;\n }\n const hit = new $233d77d4742ed838$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$233d77d4742ed838$var$MAX]) {\n if (this[$233d77d4742ed838$var$DISPOSE]) this[$233d77d4742ed838$var$DISPOSE](key, value);\n return false;\n }\n this[$233d77d4742ed838$var$LENGTH] += hit.length;\n this[$233d77d4742ed838$var$LRU_LIST].unshift(hit);\n this[$233d77d4742ed838$var$CACHE].set(key, this[$233d77d4742ed838$var$LRU_LIST].head);\n $233d77d4742ed838$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$233d77d4742ed838$var$CACHE].has(key)) return false;\n const hit = this[$233d77d4742ed838$var$CACHE].get(key).value;\n return !$233d77d4742ed838$var$isStale(this, hit);\n }\n get(key) {\n return $233d77d4742ed838$var$get(this, key, true);\n }\n peek(key) {\n return $233d77d4742ed838$var$get(this, key, false);\n }\n pop() {\n const node = this[$233d77d4742ed838$var$LRU_LIST].tail;\n if (!node) return null;\n $233d77d4742ed838$var$del(this, node);\n return node.value;\n }\n del(key) {\n $233d77d4742ed838$var$del(this, this[$233d77d4742ed838$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$233d77d4742ed838$var$CACHE].forEach((value, key)=>$233d77d4742ed838$var$get(this, key, false));\n }\n}\nconst $233d77d4742ed838$var$get = (self, key, doUse)=>{\n const node = self[$233d77d4742ed838$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($233d77d4742ed838$var$isStale(self, hit)) {\n $233d77d4742ed838$var$del(self, node);\n if (!self[$233d77d4742ed838$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$233d77d4742ed838$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$233d77d4742ed838$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $233d77d4742ed838$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$233d77d4742ed838$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$233d77d4742ed838$var$MAX_AGE] && diff > self[$233d77d4742ed838$var$MAX_AGE];\n};\nconst $233d77d4742ed838$var$trim = (self)=>{\n if (self[$233d77d4742ed838$var$LENGTH] > self[$233d77d4742ed838$var$MAX]) for(let walker = self[$233d77d4742ed838$var$LRU_LIST].tail; self[$233d77d4742ed838$var$LENGTH] > self[$233d77d4742ed838$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $233d77d4742ed838$var$del(self, walker);\n walker = prev;\n }\n};\nconst $233d77d4742ed838$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$233d77d4742ed838$var$DISPOSE]) self[$233d77d4742ed838$var$DISPOSE](hit.key, hit.value);\n self[$233d77d4742ed838$var$LENGTH] -= hit.length;\n self[$233d77d4742ed838$var$CACHE].delete(hit.key);\n self[$233d77d4742ed838$var$LRU_LIST].removeNode(node);\n }\n};\nclass $233d77d4742ed838$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $233d77d4742ed838$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($233d77d4742ed838$var$isStale(self, hit)) {\n $233d77d4742ed838$var$del(self, node);\n if (!self[$233d77d4742ed838$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $233d77d4742ed838$var$LRUCache;\n\n});\nparcelRegister(\"i08Cw\", function(module, exports) {\n\"use strict\";\nmodule.exports = $d1aee9e840285ba3$var$Yallist;\n$d1aee9e840285ba3$var$Yallist.Node = $d1aee9e840285ba3$var$Node;\n$d1aee9e840285ba3$var$Yallist.create = $d1aee9e840285ba3$var$Yallist;\nfunction $d1aee9e840285ba3$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $d1aee9e840285ba3$var$Yallist)) self = new $d1aee9e840285ba3$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$d1aee9e840285ba3$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$d1aee9e840285ba3$var$push(this, arguments[i]);\n return this.length;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$d1aee9e840285ba3$var$unshift(this, arguments[i]);\n return this.length;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$d1aee9e840285ba3$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$d1aee9e840285ba3$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $d1aee9e840285ba3$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $d1aee9e840285ba3$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $d1aee9e840285ba3$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $d1aee9e840285ba3$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $d1aee9e840285ba3$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $d1aee9e840285ba3$var$insert(self, node, value) {\n var inserted = node === self.head ? new $d1aee9e840285ba3$var$Node(value, null, node, self) : new $d1aee9e840285ba3$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $d1aee9e840285ba3$var$push(self, item) {\n self.tail = new $d1aee9e840285ba3$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $d1aee9e840285ba3$var$unshift(self, item) {\n self.head = new $d1aee9e840285ba3$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $d1aee9e840285ba3$var$Node(value, prev, next, list) {\n if (!(this instanceof $d1aee9e840285ba3$var$Node)) return new $d1aee9e840285ba3$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"5MZUR\"))($d1aee9e840285ba3$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"5MZUR\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"42oIR\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $2f0a86b5a65258ab$var$satisfies = (version, range, options)=>{\n try {\n range = new $bswWF(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $2f0a86b5a65258ab$var$satisfies;\n\n});\n\nparcelRegister(\"4zfp3\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\n// Mostly just for testing and legacy API reasons\nconst $3536610e76dfa838$var$toComparators = (range, options)=>new $bswWF(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $3536610e76dfa838$var$toComparators;\n\n});\n\nparcelRegister(\"ga5uZ\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $bc41d878d052b110$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $bswWF(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $8cXe9(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $bc41d878d052b110$var$maxSatisfying;\n\n});\n\nparcelRegister(\"lPGVL\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $fe4fa984faf344fb$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $bswWF(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $8cXe9(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $fe4fa984faf344fb$var$minSatisfying;\n\n});\n\nparcelRegister(\"1I8AA\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\nconst $13f0901f38b9c38e$var$minVersion = (range, loose)=>{\n range = new $bswWF(range, loose);\n let minver = new $8cXe9(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $8cXe9(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $8cXe9(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cOpcP(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cOpcP(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $13f0901f38b9c38e$var$minVersion;\n\n});\n\nparcelRegister(\"dBtft\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $028e47ec34506e56$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $bswWF(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $028e47ec34506e56$var$validRange;\n\n});\n\nparcelRegister(\"83Sp2\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\nconst { ANY: $5de8cdd25b195029$var$ANY } = $1bxhC;\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\nconst $5de8cdd25b195029$var$outside = (version, range, hilo, options)=>{\n version = new $8cXe9(version, options);\n range = new $bswWF(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cOpcP;\n ltefn = $hlfY9;\n ltfn = $58P10;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $58P10;\n ltefn = $3XWvL;\n ltfn = $cOpcP;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($42oIR(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $5de8cdd25b195029$var$ANY) comparator = new $1bxhC(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $5de8cdd25b195029$var$outside;\n\n});\n\nparcelRegister(\"eK4my\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\nconst $abb8bee76fa63cbc$var$gtr = (version, range, options)=>$83Sp2(version, range, \">\", options);\nmodule.exports = $abb8bee76fa63cbc$var$gtr;\n\n});\n\nparcelRegister(\"eNXBI\", function(module, exports) {\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\n// Determine if version is less than all the versions possible in the range\nconst $ac73e10f90b51c3e$var$ltr = (version, range, options)=>$83Sp2(version, range, \"<\", options);\nmodule.exports = $ac73e10f90b51c3e$var$ltr;\n\n});\n\nparcelRegister(\"kHzUo\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $f123ad78b38d1607$var$intersects = (r1, r2, options)=>{\n r1 = new $bswWF(r1, options);\n r2 = new $bswWF(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $f123ad78b38d1607$var$intersects;\n\n});\n\nparcelRegister(\"1x2XZ\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$jDqfd(a, b, options));\n for (const version of v){\n const included = $42oIR(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"hTYir\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\nconst { ANY: $d086585c4d9c3926$var$ANY } = $1bxhC;\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $d086585c4d9c3926$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $bswWF(sub, options);\n dom = new $bswWF(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $d086585c4d9c3926$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $d086585c4d9c3926$var$minimumVersionWithPreRelease = [\n new $1bxhC(\">=0.0.0-0\")\n];\nconst $d086585c4d9c3926$var$minimumVersion = [\n new $1bxhC(\">=0.0.0\")\n];\nconst $d086585c4d9c3926$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $d086585c4d9c3926$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $d086585c4d9c3926$var$ANY) return true;\n else if (options.includePrerelease) sub = $d086585c4d9c3926$var$minimumVersionWithPreRelease;\n else sub = $d086585c4d9c3926$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $d086585c4d9c3926$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $d086585c4d9c3926$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $d086585c4d9c3926$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $d086585c4d9c3926$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $jDqfd(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$42oIR(eq, String(gt), options)) return null;\n if (lt && !$42oIR(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$42oIR(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $d086585c4d9c3926$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$42oIR(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $d086585c4d9c3926$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$42oIR(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $d086585c4d9c3926$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $jDqfd(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $d086585c4d9c3926$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $jDqfd(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $d086585c4d9c3926$var$subset;\n\n});\n\n\nparcelRegister(\"6t4SD\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $4b593c9b16f6bd98$export$f8b9fb4db095815b);\n\nasync function $4b593c9b16f6bd98$export$f8b9fb4db095815b(path) {\n try {\n await (0, $4umf8$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $4b593c9b16f6bd98$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($4umf8$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"8CJZb\", function(module, exports) {\n\"use strict\";\nvar $64758b2fa15e88f6$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($64758b2fa15e88f6$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"eAXk4\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $3d8ba83a43ccecc4$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $3d8ba83a43ccecc4$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $3d8ba83a43ccecc4$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $4umf8$path.dirname);\n$parcel$export(module.exports, \"join\", () => $4umf8$path.join);\n\n\nvar $f44Uw = parcelRequire(\"f44Uw\");\n\nvar $fBJE3 = parcelRequire(\"fBJE3\");\nfunction $3d8ba83a43ccecc4$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $3d8ba83a43ccecc4$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $3d8ba83a43ccecc4$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $4umf8$path.basename)(e) : (0, $4umf8$path.basename)(e, (0, $4umf8$path.extname)(e));\n}\nfunction $3d8ba83a43ccecc4$export$873fead74fe2f1ff(e) {\n return (0, $4umf8$path.normalize)(e).replace(RegExp((0, $f44Uw.default)((0, $4umf8$path.sep)) + \"$\"), \"\");\n}\nfunction $3d8ba83a43ccecc4$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3d8ba83a43ccecc4$export$3e333f8cb13439c(e, a) {\n const r = (0, $4umf8$path.extname)(e), s = `${a}${(0, $4umf8$path.basename)(e, r)}${r}`;\n return (0, $4umf8$path.join)((0, $4umf8$path.dirname)(e), s);\n}\nfunction $3d8ba83a43ccecc4$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $4umf8$path.extname)(e), s = `${(0, $4umf8$path.basename)(e, r)}${a}${r}`;\n return (0, $4umf8$path.join)((0, $4umf8$path.dirname)(e), s);\n}\nfunction $3d8ba83a43ccecc4$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3d8ba83a43ccecc4$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $3d8ba83a43ccecc4$export$19c5468f88f6e968(e) {\n const a = (0, $4umf8$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $3d8ba83a43ccecc4$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($fBJE3)))(e, a);\n}\nfunction $3d8ba83a43ccecc4$export$7d0573375890d05c(e, a) {\n const r = (0, $4umf8$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $4umf8$path.sep)) || r === (0, $4umf8$path.resolve)(e));\n}\nvar $3d8ba83a43ccecc4$var$O = {}, $3d8ba83a43ccecc4$var$R = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$R, \"name\", ()=>$3d8ba83a43ccecc4$export$a8ff84c12d48cfa6);\nvar $3d8ba83a43ccecc4$var$A = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$A, \"normalizeTrim\", ()=>$3d8ba83a43ccecc4$export$873fead74fe2f1ff);\nvar $3d8ba83a43ccecc4$var$I = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$I, \"addExeExt\", ()=>$3d8ba83a43ccecc4$export$2d20c564cade3c93);\nvar $3d8ba83a43ccecc4$var$T = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$T, \"addNamePrefix\", ()=>$3d8ba83a43ccecc4$export$3e333f8cb13439c);\nvar $3d8ba83a43ccecc4$var$_ = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$_, \"addNameSuffix\", ()=>$3d8ba83a43ccecc4$export$3b60a3e9bd1aef9d);\nvar $3d8ba83a43ccecc4$var$k = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$k, \"addShExt\", ()=>$3d8ba83a43ccecc4$export$609be29b80b555e1);\nvar $3d8ba83a43ccecc4$var$M = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$M, \"addShRelativePrefix\", ()=>$3d8ba83a43ccecc4$export$e1f23f8d3e53fe6);\nvar $3d8ba83a43ccecc4$var$W = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$W, \"removeExt\", ()=>$3d8ba83a43ccecc4$export$19c5468f88f6e968);\nvar $3d8ba83a43ccecc4$var$q = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$q, \"replaceExt\", ()=>$3d8ba83a43ccecc4$export$e9c34737ac8e53d2);\nvar $3d8ba83a43ccecc4$var$B = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$B, \"isPathInside\", ()=>$3d8ba83a43ccecc4$export$7d0573375890d05c), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$R), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$A), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$I), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$T), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$_), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$k), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$M), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$W), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$q), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$B);\n\n});\nparcelRegister(\"f44Uw\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $af7b09e757bea83c$export$2e2bcd8739ae039);\nfunction $af7b09e757bea83c$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"fBJE3\", function(module, exports) {\n\"use strict\";\n\nfunction $b5cdb7e29045d953$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $4umf8$path.basename(npath, $4umf8$path.extname(npath)) + ext;\n var nFilepath = $4umf8$path.join($4umf8$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($b5cdb7e29045d953$var$startsWithSingleDot(npath)) return \".\" + $4umf8$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $b5cdb7e29045d953$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $4umf8$path.sep || first2chars === \"./\";\n}\nmodule.exports = $b5cdb7e29045d953$var$replaceExt;\n\n});\n\n\nparcelRegister(\"zdagz\", function(module, exports) {\n\"use strict\";\nvar $069d7b36246212b5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $069d7b36246212b5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $069d7b36246212b5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $069d7b36246212b5$var$__createBinding(result, mod, k);\n }\n $069d7b36246212b5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $069d7b36246212b5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $069d7b36246212b5$var$path = $069d7b36246212b5$var$__importStar($4umf8$path);\n\nconst $069d7b36246212b5$var$ioUtil = $069d7b36246212b5$var$__importStar((parcelRequire(\"fwMQK\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $069d7b36246212b5$var$cp(source, dest, options = {}) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $069d7b36246212b5$var$readCopyOptions(options);\n const destStat = (yield $069d7b36246212b5$var$ioUtil.exists(dest)) ? yield $069d7b36246212b5$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $069d7b36246212b5$var$path.join(dest, $069d7b36246212b5$var$path.basename(source)) : dest;\n if (!(yield $069d7b36246212b5$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $069d7b36246212b5$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $069d7b36246212b5$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($069d7b36246212b5$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $069d7b36246212b5$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $069d7b36246212b5$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $069d7b36246212b5$var$mv(source, dest, options = {}) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $069d7b36246212b5$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $069d7b36246212b5$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $069d7b36246212b5$var$path.join(dest, $069d7b36246212b5$var$path.basename(source));\n destExists = yield $069d7b36246212b5$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $069d7b36246212b5$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $069d7b36246212b5$var$mkdirP($069d7b36246212b5$var$path.dirname(dest));\n yield $069d7b36246212b5$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $069d7b36246212b5$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $069d7b36246212b5$var$rmRF(inputPath) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $069d7b36246212b5$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $069d7b36246212b5$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $069d7b36246212b5$var$mkdirP(fsPath) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok(fsPath, \"a path argument must be provided\");\n yield $069d7b36246212b5$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $069d7b36246212b5$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $069d7b36246212b5$var$which(tool, check) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $069d7b36246212b5$var$which(tool, false);\n if (!result) {\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $069d7b36246212b5$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $069d7b36246212b5$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $069d7b36246212b5$var$findInPath(tool) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($069d7b36246212b5$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($069d7b36246212b5$var$ioUtil.isRooted(tool)) {\n const filePath = yield $069d7b36246212b5$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($069d7b36246212b5$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($069d7b36246212b5$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $069d7b36246212b5$var$ioUtil.tryGetExecutablePath($069d7b36246212b5$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $069d7b36246212b5$var$findInPath;\nfunction $069d7b36246212b5$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $069d7b36246212b5$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $069d7b36246212b5$var$mkdirP(destDir);\n const files = yield $069d7b36246212b5$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $069d7b36246212b5$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $069d7b36246212b5$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $069d7b36246212b5$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $069d7b36246212b5$var$ioUtil.chmod(destDir, (yield $069d7b36246212b5$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $069d7b36246212b5$var$copyFile(srcFile, destFile, force) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $069d7b36246212b5$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $069d7b36246212b5$var$ioUtil.lstat(destFile);\n yield $069d7b36246212b5$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $069d7b36246212b5$var$ioUtil.chmod(destFile, \"0666\");\n yield $069d7b36246212b5$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $069d7b36246212b5$var$ioUtil.readlink(srcFile);\n yield $069d7b36246212b5$var$ioUtil.symlink(symlinkFull, destFile, $069d7b36246212b5$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $069d7b36246212b5$var$ioUtil.exists(destFile)) || force) yield $069d7b36246212b5$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"fwMQK\", function(module, exports) {\n\"use strict\";\nvar $b4dfbcbe65695fe8$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $b4dfbcbe65695fe8$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $b4dfbcbe65695fe8$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $b4dfbcbe65695fe8$var$__createBinding(result, mod, k);\n }\n $b4dfbcbe65695fe8$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $b4dfbcbe65695fe8$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $b4dfbcbe65695fe8$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $b4dfbcbe65695fe8$var$fs = $b4dfbcbe65695fe8$var$__importStar($4umf8$fs);\n\nconst $b4dfbcbe65695fe8$var$path = $b4dfbcbe65695fe8$var$__importStar($4umf8$path);\n$b4dfbcbe65695fe8$var$_a = $b4dfbcbe65695fe8$var$fs.promises, module.exports.chmod = $b4dfbcbe65695fe8$var$_a.chmod, module.exports.copyFile = $b4dfbcbe65695fe8$var$_a.copyFile, module.exports.lstat = $b4dfbcbe65695fe8$var$_a.lstat, module.exports.mkdir = $b4dfbcbe65695fe8$var$_a.mkdir, module.exports.open = $b4dfbcbe65695fe8$var$_a.open, module.exports.readdir = $b4dfbcbe65695fe8$var$_a.readdir, module.exports.readlink = $b4dfbcbe65695fe8$var$_a.readlink, module.exports.rename = $b4dfbcbe65695fe8$var$_a.rename, module.exports.rm = $b4dfbcbe65695fe8$var$_a.rm, module.exports.rmdir = $b4dfbcbe65695fe8$var$_a.rmdir, module.exports.stat = $b4dfbcbe65695fe8$var$_a.stat, module.exports.symlink = $b4dfbcbe65695fe8$var$_a.symlink, module.exports.unlink = $b4dfbcbe65695fe8$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $b4dfbcbe65695fe8$var$fs.constants.O_RDONLY;\nfunction $b4dfbcbe65695fe8$var$exists(fsPath) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $b4dfbcbe65695fe8$var$exists;\nfunction $b4dfbcbe65695fe8$var$isDirectory(fsPath, useStat = false) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $b4dfbcbe65695fe8$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $b4dfbcbe65695fe8$var$isRooted(p) {\n p = $b4dfbcbe65695fe8$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $b4dfbcbe65695fe8$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $b4dfbcbe65695fe8$var$tryGetExecutablePath(filePath, extensions) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $b4dfbcbe65695fe8$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($b4dfbcbe65695fe8$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $b4dfbcbe65695fe8$var$path.dirname(filePath);\n const upperName = $b4dfbcbe65695fe8$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $b4dfbcbe65695fe8$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($b4dfbcbe65695fe8$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $b4dfbcbe65695fe8$var$tryGetExecutablePath;\nfunction $b4dfbcbe65695fe8$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $b4dfbcbe65695fe8$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $b4dfbcbe65695fe8$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $b4dfbcbe65695fe8$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"gn8Si\", function(module, exports) {\n\"use strict\";\nvar $beb5ada45dfdd93d$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $beb5ada45dfdd93d$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $beb5ada45dfdd93d$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $beb5ada45dfdd93d$var$__createBinding(result, mod, k);\n }\n $beb5ada45dfdd93d$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $beb5ada45dfdd93d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $beb5ada45dfdd93d$var$semver = $beb5ada45dfdd93d$var$__importStar((parcelRequire(\"0306Y\")));\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\n\nfunction $beb5ada45dfdd93d$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $beb5ada45dfdd93d$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $4umf8$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $1o3Gj.debug(`check ${version} satisfies ${versionSpec}`);\n if ($beb5ada45dfdd93d$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $1o3Gj.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $beb5ada45dfdd93d$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $1o3Gj.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $beb5ada45dfdd93d$var$_findMatch;\nfunction $beb5ada45dfdd93d$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $4umf8$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $4umf8$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $beb5ada45dfdd93d$var$_getOsVersion;\nfunction $beb5ada45dfdd93d$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($4umf8$fs.existsSync(lsbReleaseFile)) contents = $4umf8$fs.readFileSync(lsbReleaseFile).toString();\n else if ($4umf8$fs.existsSync(osReleaseFile)) contents = $4umf8$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $beb5ada45dfdd93d$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"0306Y\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"GX8zo\", function(module, exports) {\n\nvar $7qQbq = parcelRequire(\"7qQbq\");\n\nvar $c22IK = parcelRequire(\"c22IK\");\nfunction $0811cbc79176afae$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $7qQbq)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $c22IK(rnds);\n}\nmodule.exports = $0811cbc79176afae$var$v4;\n\n});\nparcelRegister(\"7qQbq\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $4umf8$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"c22IK\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $8c27c83ef5b4f27e$var$byteToHex = [];\nfor(var $8c27c83ef5b4f27e$var$i = 0; $8c27c83ef5b4f27e$var$i < 256; ++$8c27c83ef5b4f27e$var$i)$8c27c83ef5b4f27e$var$byteToHex[$8c27c83ef5b4f27e$var$i] = ($8c27c83ef5b4f27e$var$i + 0x100).toString(16).substr(1);\nfunction $8c27c83ef5b4f27e$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $8c27c83ef5b4f27e$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $8c27c83ef5b4f27e$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"bHzmH\", function(module, exports) {\n\"use strict\";\nvar $884f249efde1efb4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $884f249efde1efb4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $884f249efde1efb4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $884f249efde1efb4$var$__createBinding(result, mod, k);\n }\n $884f249efde1efb4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $884f249efde1efb4$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $884f249efde1efb4$var$tr = $884f249efde1efb4$var$__importStar((parcelRequire(\"iYbsa\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $884f249efde1efb4$var$exec(commandLine, args, options) {\n return $884f249efde1efb4$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $884f249efde1efb4$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $884f249efde1efb4$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $884f249efde1efb4$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $884f249efde1efb4$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $884f249efde1efb4$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $4umf8$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $4umf8$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $884f249efde1efb4$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $884f249efde1efb4$var$getExecOutput;\n\n});\nparcelRegister(\"iYbsa\", function(module, exports) {\n\"use strict\";\nvar $dcf6b6fa3b8725c1$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $dcf6b6fa3b8725c1$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $dcf6b6fa3b8725c1$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $dcf6b6fa3b8725c1$var$__createBinding(result, mod, k);\n }\n $dcf6b6fa3b8725c1$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $dcf6b6fa3b8725c1$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $dcf6b6fa3b8725c1$var$os = $dcf6b6fa3b8725c1$var$__importStar($4umf8$os);\n\nconst $dcf6b6fa3b8725c1$var$events = $dcf6b6fa3b8725c1$var$__importStar($4umf8$events);\n\nconst $dcf6b6fa3b8725c1$var$child = $dcf6b6fa3b8725c1$var$__importStar($4umf8$child_process);\n\nconst $dcf6b6fa3b8725c1$var$path = $dcf6b6fa3b8725c1$var$__importStar($4umf8$path);\n\nconst $dcf6b6fa3b8725c1$var$io = $dcf6b6fa3b8725c1$var$__importStar((parcelRequire(\"zdagz\")));\n\nconst $dcf6b6fa3b8725c1$var$ioUtil = $dcf6b6fa3b8725c1$var$__importStar((parcelRequire(\"fwMQK\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $dcf6b6fa3b8725c1$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $dcf6b6fa3b8725c1$var$ToolRunner extends $dcf6b6fa3b8725c1$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($dcf6b6fa3b8725c1$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $dcf6b6fa3b8725c1$var$os.EOL.length);\n n = s.indexOf($dcf6b6fa3b8725c1$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $dcf6b6fa3b8725c1$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$dcf6b6fa3b8725c1$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $dcf6b6fa3b8725c1$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $dcf6b6fa3b8725c1$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $dcf6b6fa3b8725c1$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$dcf6b6fa3b8725c1$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $dcf6b6fa3b8725c1$var$os.EOL);\n const state = new $dcf6b6fa3b8725c1$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $dcf6b6fa3b8725c1$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $dcf6b6fa3b8725c1$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $dcf6b6fa3b8725c1$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $dcf6b6fa3b8725c1$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $dcf6b6fa3b8725c1$var$argStringToArray;\nclass $dcf6b6fa3b8725c1$var$ExecState extends $dcf6b6fa3b8725c1$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $4umf8$timers.setTimeout($dcf6b6fa3b8725c1$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"fEioR\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.1abb15a9.js\")).then(()=>parcelRequire(\"8L9T2\"));\n\n});\n\nparcelRegister(\"aWBYj\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.09e25805.js\")).then(()=>parcelRequire(\"1PWvB\"));\n\n});\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6OFKY = parcelRequire(\"6OFKY\");\nvar $4af6780aae15e7aa$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"kswPT\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($4af6780aae15e7aa$exports);\n\n\nvar $d8d049814738d806$exports = {};\n\n$d8d049814738d806$exports = (parcelRequire(\"foOBZ\"));\n\n\nvar $320f558e5d3a9246$exports = {};\n$320f558e5d3a9246$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $71cfef4812d1fa23$exports = {};\nvar $8af98396df2af8bc$exports = {};\n\n$parcel$export($8af98396df2af8bc$exports, \"isexe\", () => $8af98396df2af8bc$export$35888d6059c232d4);\n$parcel$export($8af98396df2af8bc$exports, \"sync\", () => $8af98396df2af8bc$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $2Bbmx = parcelRequire(\"2Bbmx\");\nconst $8af98396df2af8bc$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $8af98396df2af8bc$var$checkStat(await (0, $2Bbmx.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $8af98396df2af8bc$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $8af98396df2af8bc$var$checkStat((0, $4umf8$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $8af98396df2af8bc$var$checkStat = (stat, options)=>stat.isFile() && $8af98396df2af8bc$var$checkMode(stat, options);\nconst $8af98396df2af8bc$var$checkMode = (stat, options)=>{\n var _process_getuid, _process, _process_getgroups, _process1, _process_getgid, _process2;\n var _options_uid;\n const myUid = (_options_uid = options.uid) !== null && _options_uid !== void 0 ? _options_uid : (_process_getuid = (_process = process).getuid) === null || _process_getuid === void 0 ? void 0 : _process_getuid.call(_process);\n var _options_groups, _ref;\n const myGroups = (_ref = (_options_groups = options.groups) !== null && _options_groups !== void 0 ? _options_groups : (_process_getgroups = (_process1 = process).getgroups) === null || _process_getgroups === void 0 ? void 0 : _process_getgroups.call(_process1)) !== null && _ref !== void 0 ? _ref : [];\n var _options_gid, _ref1;\n const myGid = (_ref1 = (_options_gid = options.gid) !== null && _options_gid !== void 0 ? _options_gid : (_process_getgid = (_process2 = process).getgid) === null || _process_getgid === void 0 ? void 0 : _process_getgid.call(_process2)) !== null && _ref1 !== void 0 ? _ref1 : myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $846949ba2799f237$exports = {};\n\n$parcel$export($846949ba2799f237$exports, \"isexe\", () => $846949ba2799f237$export$35888d6059c232d4);\n$parcel$export($846949ba2799f237$exports, \"sync\", () => $846949ba2799f237$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $2Bbmx = parcelRequire(\"2Bbmx\");\nconst $846949ba2799f237$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $846949ba2799f237$var$checkStat(await (0, $2Bbmx.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $846949ba2799f237$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $846949ba2799f237$var$checkStat((0, $4umf8$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $846949ba2799f237$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $846949ba2799f237$var$checkStat = (stat, path, options)=>stat.isFile() && $846949ba2799f237$var$checkPathExt(path, options);\n\n\n\n\nconst $946052d434158cfa$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $946052d434158cfa$var$impl = $946052d434158cfa$var$platform === \"win32\" ? $846949ba2799f237$exports : $8af98396df2af8bc$exports;\nconst $946052d434158cfa$export$35888d6059c232d4 = $946052d434158cfa$var$impl.isexe;\nconst $946052d434158cfa$export$92d6409d68f0739a = $946052d434158cfa$var$impl.sync;\n\n\nvar $71cfef4812d1fa23$require$isexe = $946052d434158cfa$export$35888d6059c232d4;\nvar $71cfef4812d1fa23$require$isexeSync = $946052d434158cfa$export$92d6409d68f0739a;\n\nvar $71cfef4812d1fa23$require$join = $4umf8$path.join;\nvar $71cfef4812d1fa23$require$delimiter = $4umf8$path.delimiter;\nvar $71cfef4812d1fa23$require$sep = $4umf8$path.sep;\nvar $71cfef4812d1fa23$require$posix = $4umf8$path.posix;\nconst $71cfef4812d1fa23$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $71cfef4812d1fa23$var$rSlash = new RegExp(`[${$71cfef4812d1fa23$require$posix.sep}${$71cfef4812d1fa23$require$sep === $71cfef4812d1fa23$require$posix.sep ? \"\" : $71cfef4812d1fa23$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $71cfef4812d1fa23$var$rRel = new RegExp(`^\\\\.${$71cfef4812d1fa23$var$rSlash.source}`);\nconst $71cfef4812d1fa23$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $71cfef4812d1fa23$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $71cfef4812d1fa23$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($71cfef4812d1fa23$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$71cfef4812d1fa23$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($71cfef4812d1fa23$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $71cfef4812d1fa23$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $71cfef4812d1fa23$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $71cfef4812d1fa23$require$join(pathPart, cmd);\n};\nconst $71cfef4812d1fa23$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $71cfef4812d1fa23$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $71cfef4812d1fa23$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $71cfef4812d1fa23$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $71cfef4812d1fa23$var$getNotFoundError(cmd);\n};\nconst $71cfef4812d1fa23$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $71cfef4812d1fa23$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $71cfef4812d1fa23$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $71cfef4812d1fa23$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $71cfef4812d1fa23$var$getNotFoundError(cmd);\n};\n$71cfef4812d1fa23$exports = $71cfef4812d1fa23$var$which;\n$71cfef4812d1fa23$var$which.sync = $71cfef4812d1fa23$var$whichSync;\n\n\n\n\n\n\nvar $f22b5c1f790abcb5$exports = {};\n\"use strict\";\n\nvar $8c1978633592301d$exports = {};\n\"use strict\";\n\nvar $b2fe26769d516fdd$exports = {};\n\"use strict\";\n\nvar $677fb043cca6421d$exports = {};\nconst $677fb043cca6421d$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $677fb043cca6421d$var$COLON = $677fb043cca6421d$var$isWindows ? \";\" : \":\";\nvar $e24c7282838da7f2$exports = {};\n\nvar $e24c7282838da7f2$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $e24c7282838da7f2$var$core = (parcelRequire(\"8nJMC\"));\nelse $e24c7282838da7f2$var$core = (parcelRequire(\"lo7XV\"));\n$e24c7282838da7f2$exports = $e24c7282838da7f2$var$isexe;\n$e24c7282838da7f2$var$isexe.sync = $e24c7282838da7f2$var$sync;\nfunction $e24c7282838da7f2$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $e24c7282838da7f2$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $e24c7282838da7f2$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $e24c7282838da7f2$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $e24c7282838da7f2$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $677fb043cca6421d$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $677fb043cca6421d$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $677fb043cca6421d$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $677fb043cca6421d$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$677fb043cca6421d$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $677fb043cca6421d$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $677fb043cca6421d$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($677fb043cca6421d$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $677fb043cca6421d$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $677fb043cca6421d$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($677fb043cca6421d$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $4umf8$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $e24c7282838da7f2$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $677fb043cca6421d$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $677fb043cca6421d$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $4umf8$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $e24c7282838da7f2$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $677fb043cca6421d$var$getNotFoundError(cmd);\n};\n$677fb043cca6421d$exports = $677fb043cca6421d$var$which;\n$677fb043cca6421d$var$which.sync = $677fb043cca6421d$var$whichSync;\n\n\nvar $f1390e37bcd58ff2$exports = {};\n\"use strict\";\nconst $f1390e37bcd58ff2$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$f1390e37bcd58ff2$exports = $f1390e37bcd58ff2$var$pathKey;\n// TODO: Remove this for the next major release\n$f1390e37bcd58ff2$exports.default = $f1390e37bcd58ff2$var$pathKey;\n\n\nfunction $b2fe26769d516fdd$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $677fb043cca6421d$exports.sync(parsed.command, {\n path: env[$f1390e37bcd58ff2$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $4umf8$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $4umf8$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $b2fe26769d516fdd$var$resolveCommand(parsed) {\n return $b2fe26769d516fdd$var$resolveCommandAttempt(parsed) || $b2fe26769d516fdd$var$resolveCommandAttempt(parsed, true);\n}\n$b2fe26769d516fdd$exports = $b2fe26769d516fdd$var$resolveCommand;\n\n\nvar $93aa50921a1257d7$export$ae50443ffc990749;\nvar $93aa50921a1257d7$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $93aa50921a1257d7$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $93aa50921a1257d7$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $93aa50921a1257d7$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$93aa50921a1257d7$export$ae50443ffc990749 = $93aa50921a1257d7$var$escapeCommand;\n$93aa50921a1257d7$export$6ea29ee575e3f5ff = $93aa50921a1257d7$var$escapeArgument;\n\n\nvar $3056528198dd0fdd$exports = {};\n\"use strict\";\n\nvar $2bb2d8045bb7ac8d$exports = {};\n\"use strict\";\nvar $5fd1064c977602bc$exports = {};\n\"use strict\";\n$5fd1064c977602bc$exports = /^#!(.*)/;\n\n\n$2bb2d8045bb7ac8d$exports = (string = \"\")=>{\n const match = string.match($5fd1064c977602bc$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $3056528198dd0fdd$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $4umf8$fs.openSync(command, \"r\");\n $4umf8$fs.readSync(fd, buffer, 0, size, 0);\n $4umf8$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $2bb2d8045bb7ac8d$exports(buffer.toString());\n}\n$3056528198dd0fdd$exports = $3056528198dd0fdd$var$readShebang;\n\n\nconst $8c1978633592301d$var$isWin = process.platform === \"win32\";\nconst $8c1978633592301d$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $8c1978633592301d$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $8c1978633592301d$var$detectShebang(parsed) {\n parsed.file = $b2fe26769d516fdd$exports(parsed);\n const shebang = parsed.file && $3056528198dd0fdd$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $b2fe26769d516fdd$exports(parsed);\n }\n return parsed.file;\n}\nfunction $8c1978633592301d$var$parseNonShell(parsed) {\n if (!$8c1978633592301d$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $8c1978633592301d$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$8c1978633592301d$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $8c1978633592301d$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $4umf8$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $93aa50921a1257d7$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$93aa50921a1257d7$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $8c1978633592301d$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $8c1978633592301d$var$parseNonShell(parsed);\n}\n$8c1978633592301d$exports = $8c1978633592301d$var$parse;\n\n\nvar $f5cfbc89fd9aa1f8$exports = {};\n\"use strict\";\nconst $f5cfbc89fd9aa1f8$var$isWin = process.platform === \"win32\";\nfunction $f5cfbc89fd9aa1f8$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $f5cfbc89fd9aa1f8$var$hookChildProcess(cp, parsed) {\n if (!$f5cfbc89fd9aa1f8$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $f5cfbc89fd9aa1f8$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $f5cfbc89fd9aa1f8$var$verifyENOENT(status, parsed) {\n if ($f5cfbc89fd9aa1f8$var$isWin && status === 1 && !parsed.file) return $f5cfbc89fd9aa1f8$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $f5cfbc89fd9aa1f8$var$verifyENOENTSync(status, parsed) {\n if ($f5cfbc89fd9aa1f8$var$isWin && status === 1 && !parsed.file) return $f5cfbc89fd9aa1f8$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$f5cfbc89fd9aa1f8$exports = {\n hookChildProcess: $f5cfbc89fd9aa1f8$var$hookChildProcess,\n verifyENOENT: $f5cfbc89fd9aa1f8$var$verifyENOENT,\n verifyENOENTSync: $f5cfbc89fd9aa1f8$var$verifyENOENTSync,\n notFoundError: $f5cfbc89fd9aa1f8$var$notFoundError\n};\n\n\nfunction $f22b5c1f790abcb5$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $8c1978633592301d$exports(command, args, options);\n // Spawn the child process\n const spawned = $4umf8$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $f5cfbc89fd9aa1f8$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $f22b5c1f790abcb5$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $8c1978633592301d$exports(command, args, options);\n // Spawn the child process\n const result = $4umf8$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $f5cfbc89fd9aa1f8$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$f22b5c1f790abcb5$exports = $f22b5c1f790abcb5$var$spawn;\n$f22b5c1f790abcb5$exports.spawn = $f22b5c1f790abcb5$var$spawn;\n$f22b5c1f790abcb5$exports.sync = $f22b5c1f790abcb5$var$spawnSync;\n$f22b5c1f790abcb5$exports._parse = $8c1978633592301d$exports;\n$f22b5c1f790abcb5$exports._enoent = $f5cfbc89fd9aa1f8$exports;\n\n\nfunction $e53d23f0d89b737e$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $30c4ee1231df0618$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $e525b4839dd67f68$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($4umf8$nodeprocess))).env[(0, $30c4ee1231df0618$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($4umf8$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($4umf8$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($4umf8$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($4umf8$nodepath))).delimiter);\n}\nfunction $e525b4839dd67f68$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($4umf8$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $30c4ee1231df0618$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $e525b4839dd67f68$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $864c61f3265971fc$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$864c61f3265971fc$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $864c61f3265971fc$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $864c61f3265971fc$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $864c61f3265971fc$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $864c61f3265971fc$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $864c61f3265971fc$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $864c61f3265971fc$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $864c61f3265971fc$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $864c61f3265971fc$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$864c61f3265971fc$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $864c61f3265971fc$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$864c61f3265971fc$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $864c61f3265971fc$var$changePrototype(to, from);\n $864c61f3265971fc$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $b5bce385de6ade9f$var$calledFunctions = new WeakMap();\nconst $b5bce385de6ade9f$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $b5bce385de6ade9f$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $864c61f3265971fc$export$2e2bcd8739ae039)(onetime, function_);\n $b5bce385de6ade9f$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$b5bce385de6ade9f$var$onetime.callCount = (function_)=>{\n if (!$b5bce385de6ade9f$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $b5bce385de6ade9f$var$calledFunctions.get(function_);\n};\nvar $b5bce385de6ade9f$export$2e2bcd8739ae039 = $b5bce385de6ade9f$var$onetime;\n\n\n\n\nconst $be1c1e49c510b419$export$e221a98f4fd84d36 = ()=>{\n const length = $be1c1e49c510b419$export$dc8812f2f8882ff4 - $be1c1e49c510b419$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $be1c1e49c510b419$var$getRealtimeSignal);\n};\nconst $be1c1e49c510b419$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $be1c1e49c510b419$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $be1c1e49c510b419$var$SIGRTMIN = 34;\nconst $be1c1e49c510b419$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $849cd5404bf0c241$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $ee1bf5b9ef1a9de6$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $be1c1e49c510b419$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $849cd5404bf0c241$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($ee1bf5b9ef1a9de6$var$normalizeSignal);\n return signals;\n};\nconst $ee1bf5b9ef1a9de6$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $4umf8$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $694b1b79847eac4d$var$getSignalsByName = ()=>{\n const signals = (0, $ee1bf5b9ef1a9de6$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($694b1b79847eac4d$var$getSignalByName));\n};\nconst $694b1b79847eac4d$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $694b1b79847eac4d$export$c3fcb39d6848c78d = $694b1b79847eac4d$var$getSignalsByName();\nconst $694b1b79847eac4d$var$getSignalsByNumber = ()=>{\n const signals = (0, $ee1bf5b9ef1a9de6$export$c50078d4faa171f0)();\n const length = (0, $be1c1e49c510b419$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$694b1b79847eac4d$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $694b1b79847eac4d$var$getSignalByNumber = (number, signals)=>{\n const signal = $694b1b79847eac4d$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $694b1b79847eac4d$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $4umf8$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $694b1b79847eac4d$export$12f57f97a08d2468 = $694b1b79847eac4d$var$getSignalsByNumber();\n\n\nconst $9224ad52d9f78dbc$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $694b1b79847eac4d$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $9224ad52d9f78dbc$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $fd3489326ee71e7b$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $fd3489326ee71e7b$var$hasAlias = (options)=>$fd3489326ee71e7b$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $fd3489326ee71e7b$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $fd3489326ee71e7b$var$aliases.map((alias)=>options[alias]);\n if ($fd3489326ee71e7b$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$fd3489326ee71e7b$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $fd3489326ee71e7b$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $fd3489326ee71e7b$export$889423b478ae2ba = (options)=>{\n const stdio = $fd3489326ee71e7b$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $fe4c43f2e8a7f558$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $fe4c43f2e8a7f558$var$process = $parcel$global.process;\nconst $fe4c43f2e8a7f558$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($fe4c43f2e8a7f558$var$process)) $fe4c43f2e8a7f558$exports = function() {\n return function() {};\n};\nelse {\n var $fe4c43f2e8a7f558$var$assert = $4umf8$assert;\n var $fe4c43f2e8a7f558$var$signals = (parcelRequire(\"dVIKq\"));\n var $fe4c43f2e8a7f558$var$isWin = /^win/i.test($fe4c43f2e8a7f558$var$process.platform);\n var $fe4c43f2e8a7f558$var$EE = $4umf8$events;\n /* istanbul ignore if */ if (typeof $fe4c43f2e8a7f558$var$EE !== \"function\") $fe4c43f2e8a7f558$var$EE = $fe4c43f2e8a7f558$var$EE.EventEmitter;\n var $fe4c43f2e8a7f558$var$emitter;\n if ($fe4c43f2e8a7f558$var$process.__signal_exit_emitter__) $fe4c43f2e8a7f558$var$emitter = $fe4c43f2e8a7f558$var$process.__signal_exit_emitter__;\n else {\n $fe4c43f2e8a7f558$var$emitter = $fe4c43f2e8a7f558$var$process.__signal_exit_emitter__ = new $fe4c43f2e8a7f558$var$EE();\n $fe4c43f2e8a7f558$var$emitter.count = 0;\n $fe4c43f2e8a7f558$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$fe4c43f2e8a7f558$var$emitter.infinite) {\n $fe4c43f2e8a7f558$var$emitter.setMaxListeners(Infinity);\n $fe4c43f2e8a7f558$var$emitter.infinite = true;\n }\n $fe4c43f2e8a7f558$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return function() {};\n $fe4c43f2e8a7f558$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($fe4c43f2e8a7f558$var$loaded === false) $fe4c43f2e8a7f558$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $fe4c43f2e8a7f558$var$emitter.removeListener(ev, cb);\n if ($fe4c43f2e8a7f558$var$emitter.listeners(\"exit\").length === 0 && $fe4c43f2e8a7f558$var$emitter.listeners(\"afterexit\").length === 0) $fe4c43f2e8a7f558$var$unload();\n };\n $fe4c43f2e8a7f558$var$emitter.on(ev, cb);\n return remove;\n };\n var $fe4c43f2e8a7f558$var$unload = function unload() {\n if (!$fe4c43f2e8a7f558$var$loaded || !$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$loaded = false;\n $fe4c43f2e8a7f558$var$signals.forEach(function(sig) {\n try {\n $fe4c43f2e8a7f558$var$process.removeListener(sig, $fe4c43f2e8a7f558$var$sigListeners[sig]);\n } catch (er) {}\n });\n $fe4c43f2e8a7f558$var$process.emit = $fe4c43f2e8a7f558$var$originalProcessEmit;\n $fe4c43f2e8a7f558$var$process.reallyExit = $fe4c43f2e8a7f558$var$originalProcessReallyExit;\n $fe4c43f2e8a7f558$var$emitter.count -= 1;\n };\n $fe4c43f2e8a7f558$exports.unload = $fe4c43f2e8a7f558$var$unload;\n var $fe4c43f2e8a7f558$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($fe4c43f2e8a7f558$var$emitter.emitted[event]) return;\n $fe4c43f2e8a7f558$var$emitter.emitted[event] = true;\n $fe4c43f2e8a7f558$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $fe4c43f2e8a7f558$var$sigListeners = {};\n $fe4c43f2e8a7f558$var$signals.forEach(function(sig) {\n $fe4c43f2e8a7f558$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $fe4c43f2e8a7f558$var$process.listeners(sig);\n if (listeners.length === $fe4c43f2e8a7f558$var$emitter.count) {\n $fe4c43f2e8a7f558$var$unload();\n $fe4c43f2e8a7f558$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($fe4c43f2e8a7f558$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$process.kill($fe4c43f2e8a7f558$var$process.pid, sig);\n }\n };\n });\n $fe4c43f2e8a7f558$exports.signals = function() {\n return $fe4c43f2e8a7f558$var$signals;\n };\n var $fe4c43f2e8a7f558$var$loaded = false;\n var $fe4c43f2e8a7f558$var$load = function load() {\n if ($fe4c43f2e8a7f558$var$loaded || !$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $fe4c43f2e8a7f558$var$emitter.count += 1;\n $fe4c43f2e8a7f558$var$signals = $fe4c43f2e8a7f558$var$signals.filter(function(sig) {\n try {\n $fe4c43f2e8a7f558$var$process.on(sig, $fe4c43f2e8a7f558$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $fe4c43f2e8a7f558$var$process.emit = $fe4c43f2e8a7f558$var$processEmit;\n $fe4c43f2e8a7f558$var$process.reallyExit = $fe4c43f2e8a7f558$var$processReallyExit;\n };\n $fe4c43f2e8a7f558$exports.load = $fe4c43f2e8a7f558$var$load;\n var $fe4c43f2e8a7f558$var$originalProcessReallyExit = $fe4c43f2e8a7f558$var$process.reallyExit;\n var $fe4c43f2e8a7f558$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $fe4c43f2e8a7f558$var$emit(\"exit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$originalProcessReallyExit.call($fe4c43f2e8a7f558$var$process, $fe4c43f2e8a7f558$var$process.exitCode);\n };\n var $fe4c43f2e8a7f558$var$originalProcessEmit = $fe4c43f2e8a7f558$var$process.emit;\n var $fe4c43f2e8a7f558$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $fe4c43f2e8a7f558$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $fe4c43f2e8a7f558$var$process.exitCode = arg;\n var ret = $fe4c43f2e8a7f558$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"exit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $fe4c43f2e8a7f558$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $8bad387d33525ec8$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $8bad387d33525ec8$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $8bad387d33525ec8$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $8bad387d33525ec8$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$8bad387d33525ec8$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $8bad387d33525ec8$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $8bad387d33525ec8$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$8bad387d33525ec8$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $8bad387d33525ec8$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($4umf8$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $8bad387d33525ec8$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $8bad387d33525ec8$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $8bad387d33525ec8$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $8bad387d33525ec8$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $8bad387d33525ec8$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $8bad387d33525ec8$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $8bad387d33525ec8$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $8bad387d33525ec8$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($fe4c43f2e8a7f558$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $dc0eb0b18e5448c3$export$b58a61c52edb4f66(stream) {\n return $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $dc0eb0b18e5448c3$export$ac613ff475b69d05(stream) {\n return $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $dc0eb0b18e5448c3$export$f92d8ccfaec172d4(stream) {\n return $dc0eb0b18e5448c3$export$b58a61c52edb4f66(stream) && $dc0eb0b18e5448c3$export$ac613ff475b69d05(stream);\n}\nfunction $dc0eb0b18e5448c3$export$3053cdc6f2e088fd(stream) {\n return $dc0eb0b18e5448c3$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $828f40abedd408ac$var$isExecaChildProcess = (target)=>target instanceof (0, $4umf8$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $828f40abedd408ac$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $4umf8$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$828f40abedd408ac$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $828f40abedd408ac$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $d2fd9e7353012e26$exports = {};\n\"use strict\";\n\nvar $d2fd9e7353012e26$require$BufferConstants = $4umf8$buffer.constants;\n\n\nvar $d2fd9e7353012e26$require$promisify = $4umf8$util.promisify;\nvar $f7957a506754edbb$exports = {};\n\"use strict\";\n\nvar $f7957a506754edbb$require$PassThroughStream = $4umf8$stream.PassThrough;\n$f7957a506754edbb$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $f7957a506754edbb$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $d2fd9e7353012e26$var$streamPipelinePromisified = $d2fd9e7353012e26$require$promisify($4umf8$stream.pipeline);\nclass $d2fd9e7353012e26$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $d2fd9e7353012e26$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $f7957a506754edbb$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $d2fd9e7353012e26$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $d2fd9e7353012e26$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $d2fd9e7353012e26$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$d2fd9e7353012e26$exports = $d2fd9e7353012e26$var$getStream;\n$d2fd9e7353012e26$exports.buffer = (stream, options)=>$d2fd9e7353012e26$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$d2fd9e7353012e26$exports.array = (stream, options)=>$d2fd9e7353012e26$var$getStream(stream, {\n ...options,\n array: true\n });\n$d2fd9e7353012e26$exports.MaxBufferError = $d2fd9e7353012e26$var$MaxBufferError;\n\n\nvar $f867eb3c20f83984$exports = {};\n\"use strict\";\n\nvar $f867eb3c20f83984$require$PassThrough = $4umf8$stream.PassThrough;\n$f867eb3c20f83984$exports = function() {\n var sources = [];\n var output = new $f867eb3c20f83984$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $7e0549772c2821d0$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $7e0549772c2821d0$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $7e0549772c2821d0$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.readFileSync)(inputFile);\n};\nconst $7e0549772c2821d0$export$7f2f9b6457412b41 = (options)=>{\n const input = $7e0549772c2821d0$var$getInputSync(options);\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $7e0549772c2821d0$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $7e0549772c2821d0$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.createReadStream)(inputFile);\n};\nconst $7e0549772c2821d0$export$412508d679148d5c = (spawned, options)=>{\n const input = $7e0549772c2821d0$var$getInput(options);\n if (input === undefined) return;\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $7e0549772c2821d0$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($f867eb3c20f83984$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $7e0549772c2821d0$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $7e0549772c2821d0$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $7e0549772c2821d0$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $7e0549772c2821d0$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $7e0549772c2821d0$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $7e0549772c2821d0$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $7e0549772c2821d0$var$getBufferedData(stdout, stdoutPromise),\n $7e0549772c2821d0$var$getBufferedData(stderr, stderrPromise),\n $7e0549772c2821d0$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $90858c67e8fd2846$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $90858c67e8fd2846$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($90858c67e8fd2846$var$nativePromisePrototype, property)\n ]);\nconst $90858c67e8fd2846$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $90858c67e8fd2846$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $90858c67e8fd2846$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $a6c91bcff0258dec$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $a6c91bcff0258dec$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $a6c91bcff0258dec$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $a6c91bcff0258dec$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $a6c91bcff0258dec$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($a6c91bcff0258dec$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $a6c91bcff0258dec$export$ab3db8fe5ebf3a1 = (file, args)=>$a6c91bcff0258dec$var$normalizeArgs(file, args).join(\" \");\nconst $a6c91bcff0258dec$export$9d3099014bd914f8 = (file, args)=>$a6c91bcff0258dec$var$normalizeArgs(file, args).map((arg)=>$a6c91bcff0258dec$var$escapeArg(arg)).join(\" \");\nconst $a6c91bcff0258dec$var$SPACES_REGEXP = / +/g;\nconst $a6c91bcff0258dec$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($a6c91bcff0258dec$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $a6c91bcff0258dec$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $4umf8$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $4umf8$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $a6c91bcff0258dec$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $a6c91bcff0258dec$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template !== null && template !== void 0 ? template : templates.raw[index];\n const templateTokens = templateString.split($a6c91bcff0258dec$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $a6c91bcff0258dec$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$a6c91bcff0258dec$var$parseExpression(expression)) : [\n $a6c91bcff0258dec$var$parseExpression(expression)\n ];\n return $a6c91bcff0258dec$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $a6c91bcff0258dec$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $a6c91bcff0258dec$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $8e8fd7c300c466ad$export$38bb3c1fbaa0bdcf = (0, $4umf8$nodeutil.debuglog)(\"execa\").enabled;\nconst $8e8fd7c300c466ad$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $8e8fd7c300c466ad$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$8e8fd7c300c466ad$var$padField(date.getHours(), 2)}:${$8e8fd7c300c466ad$var$padField(date.getMinutes(), 2)}:${$8e8fd7c300c466ad$var$padField(date.getSeconds(), 2)}.${$8e8fd7c300c466ad$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $8e8fd7c300c466ad$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($4umf8$nodeprocess))).stderr.write(`[${$8e8fd7c300c466ad$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $24f062d29362ada6$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $24f062d29362ada6$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($4umf8$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $e525b4839dd67f68$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $24f062d29362ada6$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($f22b5c1f790abcb5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $24f062d29362ada6$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $8e8fd7c300c466ad$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $24f062d29362ada6$var$getEnv(options);\n options.stdio = (0, $fd3489326ee71e7b$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($4umf8$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($4umf8$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $24f062d29362ada6$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $4umf8$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $e53d23f0d89b737e$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $24f062d29362ada6$export$db6b1668e3758717(file, args, options) {\n const parsed = $24f062d29362ada6$var$handleArguments(file, args, options);\n const command = (0, $a6c91bcff0258dec$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $a6c91bcff0258dec$export$9d3099014bd914f8)(file, args);\n (0, $8e8fd7c300c466ad$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $8bad387d33525ec8$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($4umf8$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $90858c67e8fd2846$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $90858c67e8fd2846$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $8bad387d33525ec8$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $8bad387d33525ec8$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $8bad387d33525ec8$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $8bad387d33525ec8$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $7e0549772c2821d0$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $24f062d29362ada6$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $24f062d29362ada6$var$handleOutput(parsed.options, stderrResult);\n const all = $24f062d29362ada6$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $b5bce385de6ade9f$export$2e2bcd8739ae039)(handlePromise);\n (0, $7e0549772c2821d0$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $7e0549772c2821d0$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $828f40abedd408ac$export$14becf8d91886424)(spawned);\n (0, $90858c67e8fd2846$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $24f062d29362ada6$export$28823a701bb5a12d(file, args, options) {\n const parsed = $24f062d29362ada6$var$handleArguments(file, args, options);\n const command = (0, $a6c91bcff0258dec$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $a6c91bcff0258dec$export$9d3099014bd914f8)(file, args);\n (0, $8e8fd7c300c466ad$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $7e0549772c2821d0$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $24f062d29362ada6$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $24f062d29362ada6$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $24f062d29362ada6$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $24f062d29362ada6$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$24f062d29362ada6$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $24f062d29362ada6$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $24f062d29362ada6$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $a6c91bcff0258dec$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $24f062d29362ada6$export$db6b1668e3758717(file, args, $24f062d29362ada6$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $a6c91bcff0258dec$export$4a6ee54de9b0f25d)(templates, expressions);\n return $24f062d29362ada6$export$28823a701bb5a12d(file, args, $24f062d29362ada6$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $24f062d29362ada6$export$3d8c2f653ac9d0b9 = $24f062d29362ada6$var$create$();\nfunction $24f062d29362ada6$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $a6c91bcff0258dec$export$78bcee23e0849f6a)(command);\n return $24f062d29362ada6$export$db6b1668e3758717(file, args, options);\n}\nfunction $24f062d29362ada6$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $a6c91bcff0258dec$export$78bcee23e0849f6a)(command);\n return $24f062d29362ada6$export$28823a701bb5a12d(file, args, options);\n}\nfunction $24f062d29362ada6$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $fd3489326ee71e7b$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $24f062d29362ada6$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $c93e0191c47e5f34$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $c93e0191c47e5f34$export$e3140dc7d0c35e48() {\n var _process_getuid, _process;\n // TODO not all CI systems are root\n return ((_process_getuid = (_process = process).getuid) === null || _process_getuid === void 0 ? void 0 : _process_getuid.call(_process)) === 0 || Boolean(process.env.CI);\n}\nfunction $c93e0191c47e5f34$export$316200228f28b8ce() {\n return $c93e0191c47e5f34$export$e3140dc7d0c35e48() && $c93e0191c47e5f34$export$7683bf1311d8252();\n}\nfunction $c93e0191c47e5f34$export$d976d47922ae9667(command) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $c93e0191c47e5f34$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $c93e0191c47e5f34$export$58f152936f209932(program, args = [], execOptions = $c93e0191c47e5f34$export$151aeb0ade3989e1) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) {\n const command = $c93e0191c47e5f34$var$getSudoCommand(program, args);\n return (0, $24f062d29362ada6$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $24f062d29362ada6$export$28823a701bb5a12d)(program, $c93e0191c47e5f34$var$quote(args), execOptions);\n}\nfunction $c93e0191c47e5f34$export$351270479e2eef26(program, args = [], execOptions = $c93e0191c47e5f34$export$151aeb0ade3989e1) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) {\n const command = $c93e0191c47e5f34$var$getSudoCommand(program, args);\n return (0, $24f062d29362ada6$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $24f062d29362ada6$export$db6b1668e3758717)(program, $c93e0191c47e5f34$var$quote(args), execOptions);\n}\nfunction $c93e0191c47e5f34$var$getSudoCommand(program, args) {\n return `sudo ${$c93e0191c47e5f34$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $c93e0191c47e5f34$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $d429520e97233297$var$testFltmc() {\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $d429520e97233297$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n var _process_env_systemdrive;\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n (_process_env_systemdrive = process.env.systemdrive) !== null && _process_env_systemdrive !== void 0 ? _process_env_systemdrive : \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $d429520e97233297$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $fbd369c644c7f581$export$36ad181701cee597 = (0, $d429520e97233297$export$2e2bcd8739ae039);\nconst $fbd369c644c7f581$export$2ebf12717e6b5bb8 = (0, $c93e0191c47e5f34$export$e3140dc7d0c35e48);\nfunction $fbd369c644c7f581$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $fbd369c644c7f581$export$36ad181701cee597();\n else return (0, $c93e0191c47e5f34$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $bf272871df54e58d$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $c93e0191c47e5f34$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($4umf8$fs))).statSync(path).isDirectory();\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $c93e0191c47e5f34$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $f19d14aa12f0fb90$export$3ce714bda98f65f0() {\n if ((0, $c93e0191c47e5f34$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $4umf8$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $4umf8$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $4umf8$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $f19d14aa12f0fb90$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $f19d14aa12f0fb90$export$8312d9eeba321950(path) {\n const maybeHomeDir = $f19d14aa12f0fb90$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($f19d14aa12f0fb90$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $ead794660f22ce98$exports = {};\n\"use strict\";\n\n\nvar $coVwk = parcelRequire(\"coVwk\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $ead794660f22ce98$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $ead794660f22ce98$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $ead794660f22ce98$var$packageJson = $4umf8$process.env.npm_package_json;\nvar $ead794660f22ce98$var$userAgent = $4umf8$process.env.npm_config_user_agent;\nvar $ead794660f22ce98$var$isNpm6 = Boolean($ead794660f22ce98$var$userAgent && $ead794660f22ce98$var$userAgent.startsWith(\"npm\"));\nvar $ead794660f22ce98$var$isNpm7 = Boolean($ead794660f22ce98$var$packageJson && $ead794660f22ce98$var$packageJson.endsWith(\"package.json\"));\nvar $ead794660f22ce98$var$isNpm = $ead794660f22ce98$var$isNpm6 || $ead794660f22ce98$var$isNpm7;\nvar $ead794660f22ce98$var$isYarn = Boolean($ead794660f22ce98$var$userAgent && $ead794660f22ce98$var$userAgent.startsWith(\"yarn\"));\nvar $ead794660f22ce98$var$isNpmOrYarn = $ead794660f22ce98$var$isNpm || $ead794660f22ce98$var$isYarn;\nvar $ead794660f22ce98$var$homeDirectory = $4umf8$os.homedir();\nvar $ead794660f22ce98$var$configDir = process.env.XDG_CONFIG_HOME || $4umf8$path.join($ead794660f22ce98$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $ead794660f22ce98$var$getConfigFile = function(packageName) {\n return $4umf8$path.join($ead794660f22ce98$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $ead794660f22ce98$var$createConfigDir = function() {\n if (!$4umf8$fs.existsSync($ead794660f22ce98$var$configDir)) $4umf8$fs.mkdirSync($ead794660f22ce98$var$configDir, {\n recursive: true\n });\n};\nvar $ead794660f22ce98$var$getLastUpdate = function(packageName) {\n var configFile = $ead794660f22ce98$var$getConfigFile(packageName);\n try {\n if (!$4umf8$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($4umf8$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $ead794660f22ce98$var$saveLastUpdate = function(packageName) {\n var configFile = $ead794660f22ce98$var$getConfigFile(packageName);\n $4umf8$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $ead794660f22ce98$var$getDistVersion = function(packageName, distTag) {\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $ead794660f22ce98$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $4umf8$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $ead794660f22ce98$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $ead794660f22ce98$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $ead794660f22ce98$var$createConfigDir();\n lastUpdateCheck = $ead794660f22ce98$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $ead794660f22ce98$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $ead794660f22ce98$var$saveLastUpdate(pkg.name);\n if ($coVwk.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $ead794660f22ce98$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $ead794660f22ce98$var$simpleUpdateNotifier = function(args) {\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $ead794660f22ce98$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $ead794660f22ce98$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $ead794660f22ce98$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($ead794660f22ce98$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$ead794660f22ce98$exports = $ead794660f22ce98$var$simpleUpdateNotifier;\n\n\nvar $8de64c03a4b9ab60$exports = {};\n$8de64c03a4b9ab60$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $c67d54237e946289$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($ead794660f22ce98$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($8de64c03a4b9ab60$exports)))\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nfunction $6973f06ebfc9a33d$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $6973f06ebfc9a33d$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $6973f06ebfc9a33d$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $6973f06ebfc9a33d$var$toArr(opts.string);\n opts.boolean = $6973f06ebfc9a33d$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $6973f06ebfc9a33d$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $6973f06ebfc9a33d$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $07c9db864ea9c735$var$hasDnfCache = undefined;\nfunction $07c9db864ea9c735$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($07c9db864ea9c735$var$hasDnfCache === undefined) $07c9db864ea9c735$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $07c9db864ea9c735$var$hasDnfCache;\n}\n\n\n\nlet $64f7d4d3c6118037$var$isArchCache = undefined;\nfunction $64f7d4d3c6118037$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($64f7d4d3c6118037$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $64f7d4d3c6118037$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $64f7d4d3c6118037$var$isArchCache;\n}\n\n\n\nlet $c304217cbb6a03a7$var$isUbuntuCache = undefined;\nfunction $c304217cbb6a03a7$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($c304217cbb6a03a7$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $c304217cbb6a03a7$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $c304217cbb6a03a7$var$isUbuntuCache;\n}\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $ab523b404c27a0fe$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $ab523b404c27a0fe$var$is_posix_os = $4umf8$os.platform() !== \"win32\";\nconst $ab523b404c27a0fe$var$version = $4umf8$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $ab523b404c27a0fe$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $ab523b404c27a0fe$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$ab523b404c27a0fe$exports = function(given_path) {\n return $ab523b404c27a0fe$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $ab523b404c27a0fe$var$should_not_escape(...$ab523b404c27a0fe$var$windows_version_regex.exec($ab523b404c27a0fe$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $ebf0a72c98c686ec$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"8CJZb\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $ebf0a72c98c686ec$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($ebf0a72c98c686ec$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $f10e3e407525ada5$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $f10e3e407525ada5$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $694b1b79847eac4d$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $f10e3e407525ada5$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $7e79f889e2c85db5$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $7e79f889e2c85db5$var$hasAlias = (options)=>$7e79f889e2c85db5$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $7e79f889e2c85db5$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $7e79f889e2c85db5$var$aliases.map((alias)=>options[alias]);\n if ($7e79f889e2c85db5$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$7e79f889e2c85db5$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $7e79f889e2c85db5$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $7e79f889e2c85db5$export$889423b478ae2ba = (options)=>{\n const stdio = $7e79f889e2c85db5$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $9d60a7612741533b$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $9d60a7612741533b$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $9d60a7612741533b$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $9d60a7612741533b$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$9d60a7612741533b$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $9d60a7612741533b$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $9d60a7612741533b$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$9d60a7612741533b$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $9d60a7612741533b$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($4umf8$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $9d60a7612741533b$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $9d60a7612741533b$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $9d60a7612741533b$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $9d60a7612741533b$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $9d60a7612741533b$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $9d60a7612741533b$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $9d60a7612741533b$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $9d60a7612741533b$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($fe4c43f2e8a7f558$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $fea7e768cb964fee$var$isExecaChildProcess = (target)=>target instanceof (0, $4umf8$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $fea7e768cb964fee$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $4umf8$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$fea7e768cb964fee$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $fea7e768cb964fee$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $9a001a5edd77b6d2$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $9a001a5edd77b6d2$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $9a001a5edd77b6d2$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.readFileSync)(inputFile);\n};\nconst $9a001a5edd77b6d2$export$7f2f9b6457412b41 = (options)=>{\n const input = $9a001a5edd77b6d2$var$getInputSync(options);\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $9a001a5edd77b6d2$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $9a001a5edd77b6d2$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.createReadStream)(inputFile);\n};\nconst $9a001a5edd77b6d2$export$412508d679148d5c = (spawned, options)=>{\n const input = $9a001a5edd77b6d2$var$getInput(options);\n if (input === undefined) return;\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $9a001a5edd77b6d2$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($f867eb3c20f83984$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $9a001a5edd77b6d2$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $9a001a5edd77b6d2$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $9a001a5edd77b6d2$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $9a001a5edd77b6d2$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $9a001a5edd77b6d2$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $9a001a5edd77b6d2$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $9a001a5edd77b6d2$var$getBufferedData(stdout, stdoutPromise),\n $9a001a5edd77b6d2$var$getBufferedData(stderr, stderrPromise),\n $9a001a5edd77b6d2$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $abc85486cf0fa6ab$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $abc85486cf0fa6ab$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($abc85486cf0fa6ab$var$nativePromisePrototype, property)\n ]);\nconst $abc85486cf0fa6ab$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $abc85486cf0fa6ab$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $abc85486cf0fa6ab$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $8919cf03e80b14de$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $8919cf03e80b14de$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $8919cf03e80b14de$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $8919cf03e80b14de$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $8919cf03e80b14de$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($8919cf03e80b14de$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $8919cf03e80b14de$export$ab3db8fe5ebf3a1 = (file, args)=>$8919cf03e80b14de$var$normalizeArgs(file, args).join(\" \");\nconst $8919cf03e80b14de$export$9d3099014bd914f8 = (file, args)=>$8919cf03e80b14de$var$normalizeArgs(file, args).map((arg)=>$8919cf03e80b14de$var$escapeArg(arg)).join(\" \");\nconst $8919cf03e80b14de$var$SPACES_REGEXP = / +/g;\nconst $8919cf03e80b14de$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($8919cf03e80b14de$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $8919cf03e80b14de$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $4umf8$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $4umf8$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $8919cf03e80b14de$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $8919cf03e80b14de$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template !== null && template !== void 0 ? template : templates.raw[index];\n const templateTokens = templateString.split($8919cf03e80b14de$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $8919cf03e80b14de$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$8919cf03e80b14de$var$parseExpression(expression)) : [\n $8919cf03e80b14de$var$parseExpression(expression)\n ];\n return $8919cf03e80b14de$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $8919cf03e80b14de$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $8919cf03e80b14de$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $87acfe4b15b2f9d0$export$38bb3c1fbaa0bdcf = (0, $4umf8$nodeutil.debuglog)(\"execa\").enabled;\nconst $87acfe4b15b2f9d0$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $87acfe4b15b2f9d0$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$87acfe4b15b2f9d0$var$padField(date.getHours(), 2)}:${$87acfe4b15b2f9d0$var$padField(date.getMinutes(), 2)}:${$87acfe4b15b2f9d0$var$padField(date.getSeconds(), 2)}.${$87acfe4b15b2f9d0$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $87acfe4b15b2f9d0$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($4umf8$nodeprocess))).stderr.write(`[${$87acfe4b15b2f9d0$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $c87194a583e4cc8b$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $c87194a583e4cc8b$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($4umf8$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $e525b4839dd67f68$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $c87194a583e4cc8b$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($f22b5c1f790abcb5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $c87194a583e4cc8b$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $87acfe4b15b2f9d0$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $c87194a583e4cc8b$var$getEnv(options);\n options.stdio = (0, $7e79f889e2c85db5$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($4umf8$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($4umf8$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $c87194a583e4cc8b$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $4umf8$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $e53d23f0d89b737e$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $c87194a583e4cc8b$export$db6b1668e3758717(file, args, options) {\n const parsed = $c87194a583e4cc8b$var$handleArguments(file, args, options);\n const command = (0, $8919cf03e80b14de$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $8919cf03e80b14de$export$9d3099014bd914f8)(file, args);\n (0, $87acfe4b15b2f9d0$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $9d60a7612741533b$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($4umf8$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $abc85486cf0fa6ab$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $abc85486cf0fa6ab$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $9d60a7612741533b$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $9d60a7612741533b$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $9d60a7612741533b$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $9d60a7612741533b$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $9a001a5edd77b6d2$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $c87194a583e4cc8b$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $c87194a583e4cc8b$var$handleOutput(parsed.options, stderrResult);\n const all = $c87194a583e4cc8b$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $b5bce385de6ade9f$export$2e2bcd8739ae039)(handlePromise);\n (0, $9a001a5edd77b6d2$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $9a001a5edd77b6d2$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $fea7e768cb964fee$export$14becf8d91886424)(spawned);\n (0, $abc85486cf0fa6ab$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, options) {\n const parsed = $c87194a583e4cc8b$var$handleArguments(file, args, options);\n const command = (0, $8919cf03e80b14de$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $8919cf03e80b14de$export$9d3099014bd914f8)(file, args);\n (0, $87acfe4b15b2f9d0$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $9a001a5edd77b6d2$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $c87194a583e4cc8b$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $c87194a583e4cc8b$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $c87194a583e4cc8b$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $c87194a583e4cc8b$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$c87194a583e4cc8b$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $c87194a583e4cc8b$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $c87194a583e4cc8b$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $8919cf03e80b14de$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $c87194a583e4cc8b$export$db6b1668e3758717(file, args, $c87194a583e4cc8b$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $8919cf03e80b14de$export$4a6ee54de9b0f25d)(templates, expressions);\n return $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, $c87194a583e4cc8b$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $c87194a583e4cc8b$export$3d8c2f653ac9d0b9 = $c87194a583e4cc8b$var$create$();\nfunction $c87194a583e4cc8b$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $8919cf03e80b14de$export$78bcee23e0849f6a)(command);\n return $c87194a583e4cc8b$export$db6b1668e3758717(file, args, options);\n}\nfunction $c87194a583e4cc8b$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $8919cf03e80b14de$export$78bcee23e0849f6a)(command);\n return $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, options);\n}\nfunction $c87194a583e4cc8b$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $7e79f889e2c85db5$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $c87194a583e4cc8b$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $7826d3c45b949ee1$var$powershell;\nfunction $7826d3c45b949ee1$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $c87194a583e4cc8b$export$db6b1668e3758717($7826d3c45b949ee1$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $7826d3c45b949ee1$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $c87194a583e4cc8b$export$28823a701bb5a12d($7826d3c45b949ee1$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $7826d3c45b949ee1$export$4dfdd3964d242d20() {\n if ($7826d3c45b949ee1$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $7826d3c45b949ee1$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $7826d3c45b949ee1$var$powershell = maybePowerShell;\n }\n if ($7826d3c45b949ee1$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $7826d3c45b949ee1$var$powershell;\n}\n\n\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nconst $fcca2ee3cb52e97b$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $fcca2ee3cb52e97b$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $fcca2ee3cb52e97b$var$defaultAddEnvOptions) {\n const options = {\n ...$fcca2ee3cb52e97b$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $fcca2ee3cb52e97b$var$escapeString(valGiven !== null && valGiven !== void 0 ? valGiven : \"\", options.shouldEscapeSpace);\n try {\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $1o3Gj.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $1o3Gj.exportVariable)(name, val);\n } catch (err) {\n (0, $hHq4F.error)(err);\n await $fcca2ee3cb52e97b$var$addEnvSystem(name, val, options);\n }\n else await $fcca2ee3cb52e97b$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $hHq4F.error)(err);\n (0, $1o3Gj.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $fcca2ee3cb52e97b$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($ab523b404c27a0fe$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($ebf0a72c98c686ec$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $fcca2ee3cb52e97b$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $fcca2ee3cb52e97b$var$isIgnoredPath(path) {\n if ($fcca2ee3cb52e97b$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n var _process_env_PATH;\n var _process_env_PATH_split;\n const paths = (_process_env_PATH_split = (_process_env_PATH = process.env.PATH) === null || _process_env_PATH === void 0 ? void 0 : _process_env_PATH.split((0, $4umf8$path.delimiter))) !== null && _process_env_PATH_split !== void 0 ? _process_env_PATH_split : [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $fcca2ee3cb52e97b$export$4c25481b843feb0b(path) {\n if ($fcca2ee3cb52e97b$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $4umf8$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n (0, $1o3Gj.addPath)(path);\n } catch (err) {\n (0, $hHq4F.error)(err);\n await $fcca2ee3cb52e97b$var$addPathSystem(path);\n }\n else await $fcca2ee3cb52e97b$var$addPathSystem(path);\n } catch (err) {\n (0, $hHq4F.error)(err);\n (0, $1o3Gj.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $fcca2ee3cb52e97b$export$1bbbc3a810c5799d = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $fcca2ee3cb52e97b$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven !== null && valGiven !== void 0 ? valGiven : \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $1o3Gj.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $7826d3c45b949ee1$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $1o3Gj.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $fcca2ee3cb52e97b$export$bd1dffd792f43c41();\n if (options.shouldAddOnlyIfNotDefined) {\n (0, $4umf8$fs.appendFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $1o3Gj.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n } else {\n (0, $4umf8$fs.appendFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $1o3Gj.info)(`${name}=\"${val}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $fcca2ee3cb52e97b$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $7826d3c45b949ee1$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $1o3Gj.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $fcca2ee3cb52e97b$export$bd1dffd792f43c41();\n (0, $4umf8$fs.appendFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $1o3Gj.info)(`\"${path}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $fcca2ee3cb52e97b$var$setupCppInProfile_called = false;\nasync function $fcca2ee3cb52e97b$export$bd1dffd792f43c41() {\n if ($fcca2ee3cb52e97b$var$setupCppInProfile_called) return;\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $6t4SD.pathExists)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d)) {\n const cpprc_content = (0, $4umf8$fs.readFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n (0, $4umf8$fs.appendFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\n${source_cpprc_str}\\n`);\n (0, $1o3Gj.info)(`Added ${source_cpprc_str} to ${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n }\n }\n // source cpprc in bashrc/profile\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\" ]]; then source \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n // source cpprc in .profile\n const profile_path = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $6t4SD.pathExists)(profile_path)) {\n const profileContent = (0, $4umf8$fs.readFileSync)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n (0, $4umf8$fs.appendFileSync)(profile_path, source_cpprc_string);\n (0, $1o3Gj.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n // source cpprc in .bashrc too\n const bashrc_path = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $6t4SD.pathExists)(bashrc_path)) {\n const bashrcContent = (0, $4umf8$fs.readFileSync)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n (0, $4umf8$fs.appendFileSync)(bashrc_path, source_cpprc_string);\n (0, $1o3Gj.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $fcca2ee3cb52e97b$var$setupCppInProfile_called = true;\n}\nasync function $fcca2ee3cb52e97b$export$ca46151966bee7ba() {\n if (await (0, $6t4SD.pathExists)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d)) {\n const entries = (0, $4umf8$fs.readFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, \"utf-8\").split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n (0, $4umf8$fs.writeFileSync)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $bf272871df54e58d$export$4718e061a205eab)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $f44Uw = parcelRequire(\"f44Uw\");\n\n\nconst { appendFile: $4574e4c050df58da$var$appendFile } = (0, $4umf8$fs.promises);\n/* eslint-disable require-atomic-updates */ let $4574e4c050df58da$var$didUpdate = false;\nlet $4574e4c050df58da$var$didInit = false;\nconst $4574e4c050df58da$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $4574e4c050df58da$export$d73dc343f5abf26(packages, update = false) {\n const apt = $4574e4c050df58da$var$getApt();\n for (const { name: name, version: version } of packages)(0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$4574e4c050df58da$var$didUpdate || update) {\n $4574e4c050df58da$var$updateRepos(apt);\n $4574e4c050df58da$var$didUpdate = true;\n }\n if (!$4574e4c050df58da$var$didInit) {\n await $4574e4c050df58da$var$initApt(apt);\n $4574e4c050df58da$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>{\n var _pack_repositories;\n return (_pack_repositories = pack.repositories) !== null && _pack_repositories !== void 0 ? _pack_repositories : [];\n }))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $4574e4c050df58da$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$4574e4c050df58da$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($4574e4c050df58da$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $hHq4F.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $4574e4c050df58da$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($4574e4c050df58da$export$e6e2160a140a491e || ($4574e4c050df58da$export$e6e2160a140a491e = {}));\nasync function $4574e4c050df58da$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $f44Uw.default)(name)}-${(0, $f44Uw.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $4574e4c050df58da$var$getAptArg(name, version) {\n const package_type = await $4574e4c050df58da$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version !== null && version !== void 0 ? version : \"\"}`);\n }\n}\nfunction $4574e4c050df58da$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $4574e4c050df58da$var$getApt() {\n let apt;\n if ($4574e4c050df58da$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $4574e4c050df58da$var$updateRepos(apt) {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $4574e4c050df58da$var$initApt(apt) {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $4574e4c050df58da$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $4574e4c050df58da$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $4574e4c050df58da$var$initGpg() {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $4574e4c050df58da$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6t4SD.pathExists)(fileName)) {\n $4574e4c050df58da$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $4574e4c050df58da$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6t4SD.pathExists)(fileName)) {\n $4574e4c050df58da$var$initGpg();\n await $4574e4c050df58da$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $4574e4c050df58da$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $dAuy6.GITHUB_ACTIONS) return (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $fcca2ee3cb52e97b$export$bd1dffd792f43c41)();\n return $4574e4c050df58da$var$appendFile((0, $fcca2ee3cb52e97b$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $4574e4c050df58da$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nvar $zdagz = parcelRequire(\"zdagz\");\n\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/* eslint-disable require-atomic-updates */ let $86d7dd00a0f99d9c$var$binDir;\nasync function $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $86d7dd00a0f99d9c$var$binDir === \"string\") return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $86d7dd00a0f99d9c$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($4umf8$path))).join((0, $4umf8$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $zdagz.mkdirP)(brewTempDirectory);\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $4umf8$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $4umf8$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $86d7dd00a0f99d9c$var$binDir = $86d7dd00a0f99d9c$export$cba19b0564b654bf();\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)($86d7dd00a0f99d9c$var$binDir);\n return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n}\nfunction $86d7dd00a0f99d9c$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $7ad09143f110687f$var$hasBrew = false;\nasync function $7ad09143f110687f$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $1o3Gj.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via brew`);\n if (!$7ad09143f110687f$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $7ad09143f110687f$var$hasBrew = true;\n }\n const binDir = (0, $86d7dd00a0f99d9c$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $24f062d29362ada6$export$28823a701bb5a12d)((0, $eAXk4.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nlet $fd45706685edd4a7$var$binDir;\nasync function $fd45706685edd4a7$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $fd45706685edd4a7$var$binDir === \"string\") return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $fd45706685edd4a7$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n });\n var _process_env_ChocolateyInstall;\n if (maybeChoco !== null) $fd45706685edd4a7$var$binDir = (0, $eAXk4.dirname)(maybeChoco);\n else $fd45706685edd4a7$var$binDir = `${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $6t4SD.pathExists)($fd45706685edd4a7$var$binDir)) return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $9fccd3400da2cfd8$var$hasChoco = false;\nasync function $9fccd3400da2cfd8$export$9f6912bc890040b2(name, version, args = []) {\n (0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via chocolatey`);\n if (!$9fccd3400da2cfd8$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $fd45706685edd4a7$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $9fccd3400da2cfd8$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $hHq4F.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n var _process_env_ChocolateyInstall;\n const binDir = `${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nasync function $5e892f3aba3794f6$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$5e892f3aba3794f6$var$getDnfArg(pack.name, pack.version)));\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $5e892f3aba3794f6$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $hHq4F.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $671d2451576f7242$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $4574e4c050df58da$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n/* eslint-disable require-atomic-updates */ let $48b5fe4903818be0$var$didUpdate = false;\nlet $48b5fe4903818be0$var$didInit = false;\nasync function $48b5fe4903818be0$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$48b5fe4903818be0$var$didUpdate && aur !== \"yay\") {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $48b5fe4903818be0$var$didUpdate = true;\n }\n // install base-devel\n if (!$48b5fe4903818be0$var$didInit && aur !== \"yay\") {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $48b5fe4903818be0$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $24f062d29362ada6$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $c93e0191c47e5f34$export$58f152936f209932)(aur !== null && aur !== void 0 ? aur : pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $48b5fe4903818be0$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $hHq4F.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $48b5fe4903818be0$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $48b5fe4903818be0$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($48b5fe4903818be0$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $e2bfdac6c7112ded$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $ea5d4ae7756c835c$exports = {};\n\nvar $ea5d4ae7756c835c$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $ea5d4ae7756c835c$var$__createBinding = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ea5d4ae7756c835c$var$__setModuleDefault = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ea5d4ae7756c835c$var$__importStar = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ea5d4ae7756c835c$var$__createBinding(result, mod, k);\n }\n $ea5d4ae7756c835c$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ea5d4ae7756c835c$var$__awaiter = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $ea5d4ae7756c835c$var$__importDefault = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($ea5d4ae7756c835c$exports, \"__esModule\", {\n value: true\n});\n$ea5d4ae7756c835c$exports.evaluateVersions = $ea5d4ae7756c835c$exports.isExplicitVersion = $ea5d4ae7756c835c$exports.findFromManifest = $ea5d4ae7756c835c$exports.getManifestFromRepo = $ea5d4ae7756c835c$exports.findAllVersions = $ea5d4ae7756c835c$exports.find = $ea5d4ae7756c835c$exports.cacheFile = $ea5d4ae7756c835c$exports.cacheDir = $ea5d4ae7756c835c$exports.extractZip = $ea5d4ae7756c835c$exports.extractXar = $ea5d4ae7756c835c$exports.extractTar = $ea5d4ae7756c835c$exports.extract7z = $ea5d4ae7756c835c$exports.downloadTool = $ea5d4ae7756c835c$exports.HTTPError = void 0;\n\nconst $ea5d4ae7756c835c$var$core = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"1o3Gj\")));\n\nconst $ea5d4ae7756c835c$var$io = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"zdagz\")));\n\nconst $ea5d4ae7756c835c$var$fs = $ea5d4ae7756c835c$var$__importStar($4umf8$fs);\n\nconst $ea5d4ae7756c835c$var$mm = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"gn8Si\")));\n\nconst $ea5d4ae7756c835c$var$os = $ea5d4ae7756c835c$var$__importStar($4umf8$os);\n\nconst $ea5d4ae7756c835c$var$path = $ea5d4ae7756c835c$var$__importStar($4umf8$path);\n\nconst $ea5d4ae7756c835c$var$httpm = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"eamjo\")));\n\nconst $ea5d4ae7756c835c$var$semver = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"0306Y\")));\n\nconst $ea5d4ae7756c835c$var$stream = $ea5d4ae7756c835c$var$__importStar($4umf8$stream);\n\nconst $ea5d4ae7756c835c$var$util = $ea5d4ae7756c835c$var$__importStar($4umf8$util);\n\n\nconst $ea5d4ae7756c835c$var$v4_1 = $ea5d4ae7756c835c$var$__importDefault((parcelRequire(\"GX8zo\")));\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\nvar $fe17038d658b1003$exports = {};\n\"use strict\";\nvar $fe17038d658b1003$var$__createBinding = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $fe17038d658b1003$var$__setModuleDefault = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $fe17038d658b1003$var$__importStar = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $fe17038d658b1003$var$__createBinding(result, mod, k);\n }\n $fe17038d658b1003$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $fe17038d658b1003$var$__awaiter = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($fe17038d658b1003$exports, \"__esModule\", {\n value: true\n});\n$fe17038d658b1003$exports.RetryHelper = void 0;\n\nconst $fe17038d658b1003$var$core = $fe17038d658b1003$var$__importStar((parcelRequire(\"1o3Gj\")));\n/**\n * Internal class for retries\n */ class $fe17038d658b1003$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $fe17038d658b1003$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $fe17038d658b1003$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $fe17038d658b1003$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $fe17038d658b1003$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$fe17038d658b1003$exports.RetryHelper = $fe17038d658b1003$var$RetryHelper;\n\n\nclass $ea5d4ae7756c835c$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$ea5d4ae7756c835c$exports.HTTPError = $ea5d4ae7756c835c$var$HTTPError;\nconst $ea5d4ae7756c835c$var$IS_WINDOWS = process.platform === \"win32\";\nconst $ea5d4ae7756c835c$var$IS_MAC = process.platform === \"darwin\";\nconst $ea5d4ae7756c835c$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $ea5d4ae7756c835c$var$downloadTool(url, dest, auth, headers) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getTempDirectory(), $ea5d4ae7756c835c$var$v4_1.default());\n yield $ea5d4ae7756c835c$var$io.mkdirP($ea5d4ae7756c835c$var$path.dirname(dest));\n $ea5d4ae7756c835c$var$core.debug(`Downloading ${url}`);\n $ea5d4ae7756c835c$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $fe17038d658b1003$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n return yield $ea5d4ae7756c835c$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $ea5d4ae7756c835c$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$ea5d4ae7756c835c$exports.downloadTool = $ea5d4ae7756c835c$var$downloadTool;\nfunction $ea5d4ae7756c835c$var$downloadToolAttempt(url, dest, auth, headers) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if ($ea5d4ae7756c835c$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $ea5d4ae7756c835c$var$httpm.HttpClient($ea5d4ae7756c835c$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $ea5d4ae7756c835c$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $ea5d4ae7756c835c$var$HTTPError(response.message.statusCode);\n $ea5d4ae7756c835c$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $ea5d4ae7756c835c$var$util.promisify($ea5d4ae7756c835c$var$stream.pipeline);\n const responseMessageFactory = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $ea5d4ae7756c835c$var$fs.createWriteStream(dest));\n $ea5d4ae7756c835c$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $ea5d4ae7756c835c$var$core.debug(\"download failed\");\n try {\n yield $ea5d4ae7756c835c$var$io.rmRF(dest);\n } catch (err) {\n $ea5d4ae7756c835c$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extract7z(file, dest, _7zPath) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok($ea5d4ae7756c835c$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $4umf8$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $ea5d4ae7756c835c$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $bHzmH.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $ea5d4ae7756c835c$var$io.which(\"powershell\", true);\n yield $bHzmH.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extract7z = $ea5d4ae7756c835c$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractTar(file, dest, flags = \"xz\") {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $ea5d4ae7756c835c$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $bHzmH.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $ea5d4ae7756c835c$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($ea5d4ae7756c835c$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($ea5d4ae7756c835c$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $bHzmH.exec(`tar`, args);\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractTar = $ea5d4ae7756c835c$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractXar(file, dest, flags = []) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok($ea5d4ae7756c835c$var$IS_MAC, \"extractXar() not supported on current OS\");\n $4umf8$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($ea5d4ae7756c835c$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $ea5d4ae7756c835c$var$io.which(\"xar\", true);\n yield $bHzmH.exec(`\"${xarPath}\"`, $ea5d4ae7756c835c$var$_unique(args));\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractXar = $ea5d4ae7756c835c$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractZip(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n if ($ea5d4ae7756c835c$var$IS_WINDOWS) yield $ea5d4ae7756c835c$var$extractZipWin(file, dest);\n else yield $ea5d4ae7756c835c$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractZip = $ea5d4ae7756c835c$var$extractZip;\nfunction $ea5d4ae7756c835c$var$extractZipWin(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $ea5d4ae7756c835c$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $ea5d4ae7756c835c$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $bHzmH.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $ea5d4ae7756c835c$var$io.which(\"powershell\", true);\n $ea5d4ae7756c835c$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $bHzmH.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $ea5d4ae7756c835c$var$extractZipNix(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $ea5d4ae7756c835c$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$ea5d4ae7756c835c$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $bHzmH.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ea5d4ae7756c835c$var$cacheDir(sourceDir, tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n version = $ea5d4ae7756c835c$var$semver.clean(version) || version;\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n $ea5d4ae7756c835c$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ea5d4ae7756c835c$var$core.debug(`source dir: ${sourceDir}`);\n if (!$ea5d4ae7756c835c$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $ea5d4ae7756c835c$var$fs.readdirSync(sourceDir)){\n const s = $ea5d4ae7756c835c$var$path.join(sourceDir, itemName);\n yield $ea5d4ae7756c835c$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$ea5d4ae7756c835c$exports.cacheDir = $ea5d4ae7756c835c$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ea5d4ae7756c835c$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n version = $ea5d4ae7756c835c$var$semver.clean(version) || version;\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n $ea5d4ae7756c835c$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ea5d4ae7756c835c$var$core.debug(`source file: ${sourceFile}`);\n if (!$ea5d4ae7756c835c$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $ea5d4ae7756c835c$var$path.join(destFolder, targetFile);\n $ea5d4ae7756c835c$var$core.debug(`destination file ${destPath}`);\n yield $ea5d4ae7756c835c$var$io.cp(sourceFile, destPath);\n // write .complete\n $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$ea5d4ae7756c835c$exports.cacheFile = $ea5d4ae7756c835c$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ea5d4ae7756c835c$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n // attempt to resolve an explicit version\n if (!$ea5d4ae7756c835c$var$isExplicitVersion(versionSpec)) {\n const localVersions = $ea5d4ae7756c835c$var$findAllVersions(toolName, arch);\n const match = $ea5d4ae7756c835c$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $ea5d4ae7756c835c$var$semver.clean(versionSpec) || \"\";\n const cachePath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $ea5d4ae7756c835c$var$core.debug(`checking cache: ${cachePath}`);\n if ($ea5d4ae7756c835c$var$fs.existsSync(cachePath) && $ea5d4ae7756c835c$var$fs.existsSync(`${cachePath}.complete`)) {\n $ea5d4ae7756c835c$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $ea5d4ae7756c835c$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$ea5d4ae7756c835c$exports.find = $ea5d4ae7756c835c$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ea5d4ae7756c835c$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n const toolPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), toolName);\n if ($ea5d4ae7756c835c$var$fs.existsSync(toolPath)) {\n const children = $ea5d4ae7756c835c$var$fs.readdirSync(toolPath);\n for (const child of children)if ($ea5d4ae7756c835c$var$isExplicitVersion(child)) {\n const fullPath = $ea5d4ae7756c835c$var$path.join(toolPath, child, arch || \"\");\n if ($ea5d4ae7756c835c$var$fs.existsSync(fullPath) && $ea5d4ae7756c835c$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$ea5d4ae7756c835c$exports.findAllVersions = $ea5d4ae7756c835c$var$findAllVersions;\nfunction $ea5d4ae7756c835c$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $ea5d4ae7756c835c$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $ea5d4ae7756c835c$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $ea5d4ae7756c835c$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$ea5d4ae7756c835c$exports.getManifestFromRepo = $ea5d4ae7756c835c$var$getManifestFromRepo;\nfunction $ea5d4ae7756c835c$var$findFromManifest(versionSpec, stable, manifest, archFilter = $ea5d4ae7756c835c$var$os.arch()) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $ea5d4ae7756c835c$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$ea5d4ae7756c835c$exports.findFromManifest = $ea5d4ae7756c835c$var$findFromManifest;\nfunction $ea5d4ae7756c835c$var$_createExtractFolder(dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getTempDirectory(), $ea5d4ae7756c835c$var$v4_1.default());\n yield $ea5d4ae7756c835c$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), tool, $ea5d4ae7756c835c$var$semver.clean(version) || version, arch || \"\");\n $ea5d4ae7756c835c$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $ea5d4ae7756c835c$var$io.rmRF(folderPath);\n yield $ea5d4ae7756c835c$var$io.rmRF(markerPath);\n yield $ea5d4ae7756c835c$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch) {\n const folderPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), tool, $ea5d4ae7756c835c$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $ea5d4ae7756c835c$var$fs.writeFileSync(markerPath, \"\");\n $ea5d4ae7756c835c$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $ea5d4ae7756c835c$var$isExplicitVersion(versionSpec) {\n const c = $ea5d4ae7756c835c$var$semver.clean(versionSpec) || \"\";\n $ea5d4ae7756c835c$var$core.debug(`isExplicit: ${c}`);\n const valid = $ea5d4ae7756c835c$var$semver.valid(c) != null;\n $ea5d4ae7756c835c$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$ea5d4ae7756c835c$exports.isExplicitVersion = $ea5d4ae7756c835c$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $ea5d4ae7756c835c$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $ea5d4ae7756c835c$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($ea5d4ae7756c835c$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $ea5d4ae7756c835c$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $ea5d4ae7756c835c$var$core.debug(`matched: ${version}`);\n else $ea5d4ae7756c835c$var$core.debug(\"match not found\");\n return version;\n}\n$ea5d4ae7756c835c$exports.evaluateVersions = $ea5d4ae7756c835c$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $ea5d4ae7756c835c$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $4umf8$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $ea5d4ae7756c835c$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $4umf8$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $ea5d4ae7756c835c$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $ea5d4ae7756c835c$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $zdagz = parcelRequire(\"zdagz\");\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\n\n\n\n\n\n\n\nfunction $9a4a93f779a8f772$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $1533841bc1073d6a$var$sevenZip;\nasync function $1533841bc1073d6a$export$eecfe186811d4a20(file, dest) {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(await $1533841bc1073d6a$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $bf272871df54e58d$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $1533841bc1073d6a$var$getSevenZip() {\n if ($1533841bc1073d6a$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $9a4a93f779a8f772$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $1533841bc1073d6a$var$sevenZip = \"7z\";\n }\n return $1533841bc1073d6a$var$sevenZip;\n}\nfunction $1533841bc1073d6a$export$7949938b2681a4f0(file, dest) {\n return $1533841bc1073d6a$export$eecfe186811d4a20(file, dest);\n}\nfunction $1533841bc1073d6a$export$6411c5cbab21135b(file, dest) {\n return $1533841bc1073d6a$export$eecfe186811d4a20(file, dest);\n}\nasync function $1533841bc1073d6a$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $zdagz.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $hHq4F.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $bf272871df54e58d$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\nvar $9f7bb4006737291a$exports = {};\n\"use strict\";\nObject.defineProperty($9f7bb4006737291a$exports, \"__esModule\", {\n value: true\n});\n$9f7bb4006737291a$exports.retryAsPromised = $9f7bb4006737291a$exports.TimeoutError = void 0;\nclass $9f7bb4006737291a$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$9f7bb4006737291a$exports.TimeoutError = $9f7bb4006737291a$var$TimeoutError;\nfunction $9f7bb4006737291a$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $9f7bb4006737291a$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $9f7bb4006737291a$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $9f7bb4006737291a$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $9f7bb4006737291a$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $9f7bb4006737291a$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$9f7bb4006737291a$exports.retryAsPromised = $9f7bb4006737291a$var$retryAsPromised;\n$9f7bb4006737291a$exports.default = $9f7bb4006737291a$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $d14c914d00b0f583$var$didInit = false;\nasync function $d14c914d00b0f583$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $hHq4F.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n var _process_env_RUNNER_TEMP;\n process.env.RUNNER_TEMP = (_process_env_RUNNER_TEMP = process.env.RUNNER_TEMP) !== null && _process_env_RUNNER_TEMP !== void 0 ? _process_env_RUNNER_TEMP : (0, $4umf8$os.tmpdir)();\n var _process_env_RUNNER_TOOL_CACHE;\n process.env.RUNNER_TOOL_CACHE = (_process_env_RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE) !== null && _process_env_RUNNER_TOOL_CACHE !== void 0 ? _process_env_RUNNER_TOOL_CACHE : (0, $eAXk4.join)((0, $4umf8$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n const dir = (0, $ea5d4ae7756c835c$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $eAXk4.join)(dir, extractedFolderName);\n const binDir = (0, $eAXk4.join)(installDir, binRelativeDir);\n if (await (0, $6t4SD.pathExists)((0, $eAXk4.join)(binDir, binFileName))) {\n (0, $hHq4F.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $eAXk4.join)(setupDir, extractedFolderName);\n const binDir = (0, $eAXk4.join)(installDir, binRelativeDir);\n const binFile = (0, $eAXk4.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $6t4SD.pathExists)(binDir),\n (0, $6t4SD.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $hHq4F.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($9f7bb4006737291a$exports)))(()=>{\n return (0, $ea5d4ae7756c835c$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $hHq4F.info)(err)\n });\n if (!$d14c914d00b0f583$var$didInit) {\n (0, $hHq4F.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $d14c914d00b0f583$var$didInit = true;\n }\n (0, $hHq4F.info)(`Extracting ${downloaded} to ${setupDir}`);\n await (extractFunction === null || extractFunction === void 0 ? void 0 : extractFunction(downloaded, setupDir));\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $hHq4F.info)(`Add ${binDir} to PATH`);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $dAuy6.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $ea5d4ae7756c835c$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $6ca1cdfc8544c646$var$getCmakePackageInfo(version, platform, arch) {\n var _semverCoerce;\n const semVersion = (_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $6ca1cdfc8544c646$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"cmake\", version, $6ca1cdfc8544c646$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $4d02233aed1c3ded$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $4d02233aed1c3ded$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $4d02233aed1c3ded$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $4d02233aed1c3ded$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $4d02233aed1c3ded$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$4d02233aed1c3ded$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $4d02233aed1c3ded$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $4d02233aed1c3ded$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $4d02233aed1c3ded$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $4d02233aed1c3ded$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $4d02233aed1c3ded$var$cloneArray(this.keys),\n size: this.size,\n values: $4d02233aed1c3ded$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $4d02233aed1c3ded$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($4d02233aed1c3ded$var$isMemoized(fn)) return $4d02233aed1c3ded$export$2e2bcd8739ae039(fn.fn, $4d02233aed1c3ded$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $4d02233aed1c3ded$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $4d02233aed1c3ded$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $4d02233aed1c3ded$var$getCustomOptions(options));\n var cache = new $4d02233aed1c3ded$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $4d02233aed1c3ded$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $4d02233aed1c3ded$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $e0476fe98dd1f841$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $4umf8$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $4umf8$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $4umf8$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $4umf8$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $3ceeb88c547a6051$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $4umf8$path.dirname)(path);\n const opts = {\n ...(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $3ceeb88c547a6051$export$fa6f1b792dc805a5(path, opts, $3ceeb88c547a6051$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $3ceeb88c547a6051$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $3ceeb88c547a6051$export$96a3a6083628c9d8(parent, opts).then((made)=>$3ceeb88c547a6051$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $3ceeb88c547a6051$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461(opts, (0, $4umf8$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $43e5a3ee8e5c5324$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $43e5a3ee8e5c5324$export$5bbea51519185a10(opts, (0, $4umf8$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $ec3e5ed46dd66a1a$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $43e5a3ee8e5c5324$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $3ceeb88c547a6051$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $ec3e5ed46dd66a1a$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $a172c31fe55ce100$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $a172c31fe55ce100$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $4umf8$path.resolve)(path);\n if ($a172c31fe55ce100$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $4umf8$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $80435a4f5171e068$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $80435a4f5171e068$var$versArr = $80435a4f5171e068$var$version.replace(/^v/, \"\").split(\".\");\nconst $80435a4f5171e068$var$hasNative = +$80435a4f5171e068$var$versArr[0] > 10 || +$80435a4f5171e068$var$versArr[0] === 10 && +$80435a4f5171e068$var$versArr[1] >= 12;\nconst $80435a4f5171e068$export$f32201cb36e5654a = !$80435a4f5171e068$var$hasNative ? ()=>false : (opts)=>(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $4umf8$fs.mkdirSync);\nconst $80435a4f5171e068$export$875f149e5ea533c1 = Object.assign(!$80435a4f5171e068$var$hasNative ? ()=>false : (opts)=>(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts).mkdir === (0, $4umf8$fs.mkdir), {\n sync: $80435a4f5171e068$export$f32201cb36e5654a\n});\n\n\nconst $554b85e4d1826b8d$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $a172c31fe55ce100$export$84f52eb1a6059876)(path);\n const resolved = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts);\n return (0, $80435a4f5171e068$export$f32201cb36e5654a)(resolved) ? (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d)(path, resolved) : (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $554b85e4d1826b8d$export$92d6409d68f0739a = $554b85e4d1826b8d$export$f5e50515bfceb13b;\nconst $554b85e4d1826b8d$export$d5db38ffe1f43b01 = (0, $3ceeb88c547a6051$export$96a3a6083628c9d8);\nconst $554b85e4d1826b8d$export$36e1c11973ff5d6a = (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5);\nconst $554b85e4d1826b8d$export$e199e4a0c0335c4f = (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34);\nconst $554b85e4d1826b8d$export$dd70f1af61563969 = (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d);\nconst $554b85e4d1826b8d$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $a172c31fe55ce100$export$84f52eb1a6059876)(path);\n const resolved = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts);\n return (0, $80435a4f5171e068$export$875f149e5ea533c1)(resolved) ? (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34)(path, resolved) : (0, $3ceeb88c547a6051$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $554b85e4d1826b8d$export$f5e50515bfceb13b,\n mkdirpNative: $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $ec3e5ed46dd66a1a$export$abcdbcf229aec40d,\n mkdirpManual: $3ceeb88c547a6051$export$96a3a6083628c9d8,\n mkdirpManualSync: $3ceeb88c547a6051$export$fa6f1b792dc805a5,\n sync: $554b85e4d1826b8d$export$f5e50515bfceb13b,\n native: (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34),\n nativeSync: (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d),\n manual: (0, $3ceeb88c547a6051$export$96a3a6083628c9d8),\n manualSync: (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5),\n useNative: $80435a4f5171e068$export$875f149e5ea533c1,\n useNativeSync: $80435a4f5171e068$export$f32201cb36e5654a\n});\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $bHzmH = parcelRequire(\"bHzmH\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n// src/modules/https-utils.ts\n\n\nfunction $930bb3ec7bf38c88$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $930bb3ec7bf38c88$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $4umf8$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($930bb3ec7bf38c88$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $930bb3ec7bf38c88$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $4umf8$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $930bb3ec7bf38c88$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $930bb3ec7bf38c88$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $930bb3ec7bf38c88$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $930bb3ec7bf38c88$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $930bb3ec7bf38c88$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\nfunction $d9c16e431e014540$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($jDqfd)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $d9c16e431e014540$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $d9c16e431e014540$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $d9c16e431e014540$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $d9c16e431e014540$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $d9c16e431e014540$export$5b54ecc7386538f(file, versionRegex = $d9c16e431e014540$export$d7ab5e2d33b06cd5) {\n try {\n var _version_output_trim_match;\n const execout = await (0, $bHzmH.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = (_version_output_trim_match = version_output.trim().match(versionRegex)) === null || _version_output_trim_match === void 0 ? void 0 : _version_output_trim_match[1];\n var _semverCoerce;\n return (_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $d9c16e431e014540$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $d9c16e431e014540$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $d9c16e431e014540$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($jDqfd)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $d9c16e431e014540$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version);\n if (coercedVersion !== null) {\n (0, $hHq4F.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $d9c16e431e014540$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $d9c16e431e014540$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $2e2fe846dc92ab85$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $a1e1d3689a86c9cd$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $a1e1d3689a86c9cd$export$5fb1985a02d8f66f = {\n llvm: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n clangtidy: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n clangformat: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $a1e1d3689a86c9cd$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $a1e1d3689a86c9cd$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $8e03016ecb3dd99e$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $8e03016ecb3dd99e$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($4umf8$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $8e03016ecb3dd99e$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $8e03016ecb3dd99e$var$setupPipx(foundPython);\n await $8e03016ecb3dd99e$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$setupPipx(foundPython) {\n try {\n if (!await (0, $13d538bb32b1caca$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $13d538bb32b1caca$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $8e03016ecb3dd99e$var$setupWheel(foundPython) {\n try {\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $8e03016ecb3dd99e$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $eAXk4.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $dAuy6.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $hHq4F.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"fEioR\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n const binDir = (0, $eAXk4.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $hHq4F.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $8e03016ecb3dd99e$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $8e03016ecb3dd99e$var$findPython(setupDir);\n const binDir = (0, $eAXk4.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $eAXk4.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $8e03016ecb3dd99e$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $eAXk4.join)(binDir, (0, $eAXk4.addExeExt)(candidate));\n if (await (0, $6t4SD.pathExists)(pythonBinPath)) {\n if (await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pythonBinPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n var _ref;\n const pythonBinPaths = (_ref = await (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports)))(candidate, {\n nothrow: true,\n all: true\n })) !== null && _ref !== void 0 ? _ref : [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pythonBinPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$findOrSetupPip(foundPython) {\n const maybePip = await $8e03016ecb3dd99e$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $hHq4F.info)(\"pip was not found. Installing pip\");\n await $8e03016ecb3dd99e$var$setupPip(foundPython);\n return $8e03016ecb3dd99e$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $8e03016ecb3dd99e$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $8e03016ecb3dd99e$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$isPipUptoDate(pip) {\n try {\n var _ref;\n const pipPaths = (_ref = await (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports)))(pip, {\n nothrow: true,\n all: true\n })) !== null && _ref !== void 0 ? _ref : [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pipPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$setupPip(foundPython) {\n const upgraded = await $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $13d538bb32b1caca$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $hHq4F.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $hHq4F.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $8e03016ecb3dd99e$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $bHzmH.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $eAXk4.join)(base_exec_prefix, \"Scripts\"), (0, $eAXk4.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $eAXk4.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $2e2fe846dc92ab85$export$7a5d5c156e7dc406)(dirs);\n}\nconst $8e03016ecb3dd99e$export$4bf645347c3b7001 = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($8e03016ecb3dd99e$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $8555a825dc64b9bc$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($8555a825dc64b9bc$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $a1e1d3689a86c9cd$export$1bb63c984aa6e760)) return $8555a825dc64b9bc$var$getDefaultLinuxVersion(osVersion, (0, $a1e1d3689a86c9cd$export$1bb63c984aa6e760)[name]);\n else if ($8555a825dc64b9bc$var$isVersionDefault(version) && name in (0, $a1e1d3689a86c9cd$export$5fb1985a02d8f66f)) return (0, $a1e1d3689a86c9cd$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version !== null && version !== void 0 ? version : \"\";\n}\nfunction $8555a825dc64b9bc$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $8555a825dc64b9bc$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $8555a825dc64b9bc$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$8555a825dc64b9bc$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $4bcf814693711658$exports = {};\n\"use strict\";\nObject.defineProperty($4bcf814693711658$exports, \"__esModule\", {\n value: true\n});\n$4bcf814693711658$exports.getUbuntuVersion = void 0;\n\nfunction $4bcf814693711658$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $4bcf814693711658$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $4umf8$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($4bcf814693711658$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $4bcf814693711658$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $4bcf814693711658$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$4bcf814693711658$exports.getUbuntuVersion = $4bcf814693711658$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $1c6f48b06ad43808$var$ubuntuVersion_raw() {\n try {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $1c6f48b06ad43808$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $4bcf814693711658$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $1c6f48b06ad43808$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $hHq4F.warning)(err.toString());\n return null;\n }\n}\nconst $1c6f48b06ad43808$export$49c9cf1111dfa0ee = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($1c6f48b06ad43808$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $1c6f48b06ad43808$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($4umf8$os))) && typeof (0, ($parcel$interopDefault($4umf8$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($4umf8$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $13d538bb32b1caca$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $13d538bb32b1caca$export$7c60aea099ad1c1d(await $13d538bb32b1caca$var$getPython(), name, version, options);\n}\nasync function $13d538bb32b1caca$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $13d538bb32b1caca$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $13d538bb32b1caca$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $1o3Gj.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $13d538bb32b1caca$var$getPipxHome();\n env.PIPX_BIN_DIR = await $13d538bb32b1caca$var$getPipxBinDir();\n }\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $1o3Gj.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $13d538bb32b1caca$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $13d538bb32b1caca$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $8e03016ecb3dd99e$export$4bf645347c3b7001)(givenPython);\n const binDir = await $13d538bb32b1caca$var$findBinDir(execPaths, name);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $13d538bb32b1caca$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $24f062d29362ada6$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $13d538bb32b1caca$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $6t4SD.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"trash\"));\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"shared\"));\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $13d538bb32b1caca$var$getPipxHome = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $13d538bb32b1caca$var$getPipxBinDir = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$getPython_raw() {\n const pythonBin = (await (0, $8e03016ecb3dd99e$export$2b0b68e9df3d4a02)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $13d538bb32b1caca$var$getPython = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPython_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$pipHasPackage(python, name) {\n const result = await (0, $24f062d29362ada6$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $13d538bb32b1caca$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $6t4SD.pathExists)((0, $eAXk4.join)(dir, (0, $eAXk4.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync((0, $eAXk4.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $eAXk4.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $13d538bb32b1caca$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $1o3Gj.info)(`Installing ${name} via the system package manager`);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $7fad98b8fc122c7f$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $287d43a812660c62$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $287d43a812660c62$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $287d43a812660c62$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\nasync function $84a50e6b88ef38c7$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"graphviz\", version);\n return $84a50e6b88ef38c7$var$activateGraphviz();\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $84a50e6b88ef38c7$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\n\n\n\n\nconst $c57761d5955de886$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $c57761d5955de886$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($4umf8$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $c57761d5955de886$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $982d84fff580fbb5$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $c57761d5955de886$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $982d84fff580fbb5$export$b16fc932ee62ae86 = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($982d84fff580fbb5$var$macosVersion_raw);\n\n\n\n\n\nasync function $b529bcde81561b30$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"aWBYj\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $4umf8$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $befd38d449a1dd77$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $b529bcde81561b30$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $befd38d449a1dd77$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($9f7bb4006737291a$exports)))(()=>{\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $hHq4F.info)(err)\n });\n const binDir = await $befd38d449a1dd77$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $982d84fff580fbb5$export$b16fc932ee62ae86)()[0] > 11) await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() || (0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"doxygen\", version, $befd38d449a1dd77$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $hHq4F.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $befd38d449a1dd77$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $6t4SD.pathExists)((0, $eAXk4.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nasync function $b1bd4a63b941b63a$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $bHzmH.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $hHq4F.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $hHq4F.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $3f19caa876428bf4$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $3f19caa876428bf4$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $3f19caa876428bf4$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $3f19caa876428bf4$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $1533841bc1073d6a$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $3f19caa876428bf4$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"g++\", version, $3f19caa876428bf4$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $3f19caa876428bf4$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $hHq4F.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $3f19caa876428bf4$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $3f19caa876428bf4$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $3f19caa876428bf4$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $3f19caa876428bf4$var$setupChocoMingw(version, arch) {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n var _process_env_ChocolateyInstall, _process_env_ChocolateyInstall1;\n if (arch === \"x64\" && await (0, $6t4SD.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $6t4SD.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $6t4SD.pathExists)(`${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${(_process_env_ChocolateyInstall1 = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall1 !== void 0 ? _process_env_ChocolateyInstall1 : \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $3f19caa876428bf4$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", (0, $eAXk4.addExeExt)(`${binDir}/gcc`)), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", (0, $eAXk4.addExeExt)(`${binDir}/g++`)));\n else {\n var _semverCoerce;\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($lORAA)))((_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : version);\n if (majorVersion >= 5) {\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) promises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) promises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $b1bd4a63b941b63a$export$28f5fd35e3005b7a)());\n if (0, $dAuy6.GITHUB_ACTIONS) await $3f19caa876428bf4$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $3f19caa876428bf4$var$addGccLoggingMatcher() {\n const matcherPath = (0, $eAXk4.join)($3f19caa876428bf4$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\n\nfunction $88e2c066ab70c051$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $88e2c066ab70c051$export$2a0488baf2a20c0f() {\n return (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $88e2c066ab70c051$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($lORAA)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $33611b5480e1148e$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $33611b5480e1148e$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $33611b5480e1148e$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $33611b5480e1148e$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"ninja\", version, $33611b5480e1148e$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $b57152bab0b5e0d6$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/kcov\");\nfunction $b57152bab0b5e0d6$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $eAXk4.addExeExt)(\"kcov\"),\n extractFunction: (0, $1533841bc1073d6a$export$2ab07ac150064014)\n };\n}\nfunction $b57152bab0b5e0d6$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $eAXk4.addExeExt)(\"kcov\"),\n extractFunction: $b57152bab0b5e0d6$var$buildKcov\n };\n}\nasync function $b57152bab0b5e0d6$var$buildKcov(file, dest) {\n const out = await (0, $1533841bc1073d6a$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $b57152bab0b5e0d6$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $eAXk4.join)($b57152bab0b5e0d6$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $hHq4F.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $eAXk4.join)(out, \"build\");\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $b57152bab0b5e0d6$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $6ca1cdfc8544c646$export$c28663a621f418ce)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), (0, $eAXk4.join)((0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $eAXk4.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $33611b5480e1148e$export$e6190f4bfe2ef71)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), (0, $eAXk4.join)((0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $b57152bab0b5e0d6$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $hHq4F.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $d9c16e431e014540$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $d9c16e431e014540$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"kcov\", version, $b57152bab0b5e0d6$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"kcov\", version, $b57152bab0b5e0d6$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nclass $a133e2b2f2bba81b$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $a133e2b2f2bba81b$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $a133e2b2f2bba81b$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $a133e2b2f2bba81b$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $a133e2b2f2bba81b$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $a133e2b2f2bba81b$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $a133e2b2f2bba81b$var$getDOMException(reason);\n};\nfunction $a133e2b2f2bba81b$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($a133e2b2f2bba81b$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($a133e2b2f2bba81b$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $a133e2b2f2bba81b$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message !== null && message !== void 0 ? message : `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $f4af675fd1cc6e59$export$3c7cae5a162b1458;\nvar $f4af675fd1cc6e59$export$704f0be24425353b;\nvar $f4af675fd1cc6e59$export$f49c12d2898d28cb;\nvar $f4af675fd1cc6e59$export$a6a3bfb882356813;\nvar $f4af675fd1cc6e59$export$443b8bb890f5027e;\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\n\n\nconst $f4af675fd1cc6e59$var$PROGRAM_FILES_X86 = $4umf8$process.env[\"ProgramFiles(x86)\"];\nconst $f4af675fd1cc6e59$var$PROGRAM_FILES = [\n $4umf8$process.env[\"ProgramFiles(x86)\"],\n $4umf8$process.env[\"ProgramFiles\"]\n];\nconst $f4af675fd1cc6e59$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $f4af675fd1cc6e59$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $f4af675fd1cc6e59$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $f4af675fd1cc6e59$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($f4af675fd1cc6e59$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $f4af675fd1cc6e59$var$VsYearVersion) return $f4af675fd1cc6e59$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$f4af675fd1cc6e59$export$3c7cae5a162b1458 = $f4af675fd1cc6e59$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $f4af675fd1cc6e59$var$vsversion_to_year(vsversion) {\n if (Object.keys($f4af675fd1cc6e59$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($f4af675fd1cc6e59$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$f4af675fd1cc6e59$export$704f0be24425353b = $f4af675fd1cc6e59$var$vsversion_to_year;\nconst $f4af675fd1cc6e59$var$VSWHERE_PATH = `${$f4af675fd1cc6e59$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $f4af675fd1cc6e59$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $4umf8$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $1o3Gj.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$f4af675fd1cc6e59$export$f49c12d2898d28cb = $f4af675fd1cc6e59$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $f4af675fd1cc6e59$var$findVcvarsall(vsversion) {\n const vsversion_number = $f4af675fd1cc6e59$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $f4af675fd1cc6e59$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found with vswhere: ${path}`);\n return path;\n }\n $1o3Gj.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $f4af675fd1cc6e59$var$vsversion_to_year(vsversion)\n ] : $f4af675fd1cc6e59$var$YEARS;\n for (const prog_files of $f4af675fd1cc6e59$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $f4af675fd1cc6e59$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $1o3Gj.info(`Trying standard location: ${path}`);\n if ($4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $1o3Gj.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$f4af675fd1cc6e59$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found VS 2015: ${path}`);\n return path;\n }\n $1o3Gj.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$f4af675fd1cc6e59$export$a6a3bfb882356813 = $f4af675fd1cc6e59$var$findVcvarsall;\nfunction $f4af675fd1cc6e59$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $f4af675fd1cc6e59$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $f4af675fd1cc6e59$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($4umf8$process.platform != \"win32\") {\n $1o3Gj.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $4umf8$process.env.PATH += $4umf8$path.delimiter + $f4af675fd1cc6e59$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$f4af675fd1cc6e59$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $1o3Gj.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $4umf8$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $1o3Gj.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $1o3Gj.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($f4af675fd1cc6e59$var$isPathVariable(name)) new_value = $f4af675fd1cc6e59$var$filterPathValue(new_value);\n $1o3Gj.exportVariable(name, new_value);\n }\n }\n $1o3Gj.endGroup();\n $1o3Gj.info(`Configured Developer Command Prompt`);\n}\n$f4af675fd1cc6e59$export$443b8bb890f5027e = $f4af675fd1cc6e59$var$setupMSVCDevCmd;\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nfunction $95f7608dc9d76dc5$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $95f7608dc9d76dc5$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $6t4SD.pathExists)(VCTargetsPath)) {\n (0, $hHq4F.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $f4af675fd1cc6e59$export$443b8bb890f5027e)($95f7608dc9d76dc5$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $f6eafce5b5cfae6d$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb) {\n (0, $1o3Gj.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $a133e2b2f2bba81b$export$2e2bcd8739ae039)($f6eafce5b5cfae6d$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $hHq4F.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $1o3Gj.endGroup)();\n return hasLLVM;\n}\nasync function $f6eafce5b5cfae6d$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $5991c91eacfada05$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $eAXk4.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $a7d52bc5591bf6e8$var$readFile, writeFile: $a7d52bc5591bf6e8$var$writeFile, chmod: $a7d52bc5591bf6e8$var$chmod } = (0, $4umf8$fs.promises);\nvar $a7d52bc5591bf6e8$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($a7d52bc5591bf6e8$export$35fa309210df3df6 || ($a7d52bc5591bf6e8$export$35fa309210df3df6 = {}));\nasync function $a7d52bc5591bf6e8$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $a7d52bc5591bf6e8$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)(neededPackages);\n await $a7d52bc5591bf6e8$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb)\n });\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $a7d52bc5591bf6e8$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $a7d52bc5591bf6e8$var$readFile(path, \"utf-8\");\n script = $a7d52bc5591bf6e8$var$debugScript(script);\n script = $a7d52bc5591bf6e8$var$nonInteractiveScript(script);\n script = $a7d52bc5591bf6e8$var$choosePackages(packages, script, majorVersion);\n script = await $a7d52bc5591bf6e8$var$removeConflictingPackages(script);\n script = $a7d52bc5591bf6e8$var$useNalaScript(script);\n await $a7d52bc5591bf6e8$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $a7d52bc5591bf6e8$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $a7d52bc5591bf6e8$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $4574e4c050df58da$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $4umf8$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $4574e4c050df58da$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\n\nconst $f8b442c18c88c2f2$export$aa5307f1aca77413 = (0, $d9c16e431e014540$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $f8b442c18c88c2f2$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $f8b442c18c88c2f2$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $f8b442c18c88c2f2$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $f8b442c18c88c2f2$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $f8b442c18c88c2f2$var$getDarwinUrl(version) {\n if ($f8b442c18c88c2f2$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\")) return $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n else return $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $f8b442c18c88c2f2$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $f8b442c18c88c2f2$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$f8b442c18c88c2f2$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $d9c16e431e014540$export$deb1064c8260c54c)($f8b442c18c88c2f2$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP) linuxVersion = $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP[$f8b442c18c88c2f2$var$MAX_UBUNTU];\n (0, $hHq4F.warning)(`Falling back to LLVM version ${$f8b442c18c88c2f2$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\")) return $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n else return $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $f8b442c18c88c2f2$var$getWin32Url(version) {\n if ($f8b442c18c88c2f2$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $f8b442c18c88c2f2$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $f8b442c18c88c2f2$var$getDarwinUrl(version);\n case \"linux\":\n return $f8b442c18c88c2f2$export$ae24f9682a44836b(version);\n case \"win32\":\n return $f8b442c18c88c2f2$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $f8b442c18c88c2f2$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $d9c16e431e014540$export$4e4d3581f69a6d71)($f8b442c18c88c2f2$export$aa5307f1aca77413, platform, version, $f8b442c18c88c2f2$export$94df0e59ebebf4a7);\n (0, $hHq4F.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $eAXk4.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $1533841bc1073d6a$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $1533841bc1073d6a$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $6953eb5c011ad8ed$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/llvm\");\nasync function $6953eb5c011ad8ed$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $6953eb5c011ad8ed$var$setupLLVMWithoutActivation(version, setupDir, arch);\n var _installationInfo_installDir;\n await $6953eb5c011ad8ed$export$6238b5ebfd6640e7((_installationInfo_installDir = installationInfo.installDir) !== null && _installationInfo_installDir !== void 0 ? _installationInfo_installDir : setupDir);\n return installationInfo;\n}\nasync function $6953eb5c011ad8ed$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch),\n $6953eb5c011ad8ed$var$setupLLVMDeps(arch),\n $6953eb5c011ad8ed$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $6953eb5c011ad8ed$var$setupLLVMWithoutActivation = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $6953eb5c011ad8ed$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch, (0, $a7d52bc5591bf6e8$export$35fa309210df3df6).ClangFormat);\n}\nfunction $6953eb5c011ad8ed$export$814ccfc953503728(version, setupDir, arch) {\n return $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $a7d52bc5591bf6e8$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $d9c16e431e014540$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return await (0, $a7d52bc5591bf6e8$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"llvm\", version, (0, $f8b442c18c88c2f2$export$f203993d12226a27), setupDir, arch);\n await $6953eb5c011ad8ed$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $6953eb5c011ad8ed$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $6953eb5c011ad8ed$var$llvmBinaryDeps = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $6953eb5c011ad8ed$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $3f19caa876428bf4$export$405fab3de79b77b)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $6953eb5c011ad8ed$var$setupLLVMDeps = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $6953eb5c011ad8ed$export$6238b5ebfd6640e7(directory) {\n var _process_env_LD_LIBRARY_PATH;\n const ld = (_process_env_LD_LIBRARY_PATH = process.env.LD_LIBRARY_PATH) !== null && _process_env_LD_LIBRARY_PATH !== void 0 ? _process_env_LD_LIBRARY_PATH : \"\";\n var _process_env_DYLD_LIBRARY_PATH;\n const dyld = (_process_env_DYLD_LIBRARY_PATH = process.env.DYLD_LIBRARY_PATH) !== null && _process_env_DYLD_LIBRARY_PATH !== void 0 ? _process_env_DYLD_LIBRARY_PATH : \"\";\n const actPromises = [\n // the output of this action\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $4umf8$path.delimiter)}${ld}`),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $4umf8$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", (0, $eAXk4.addExeExt)(`${directory}/bin/clang`)),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", (0, $eAXk4.addExeExt)(`${directory}/bin/clang++`)),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $b1bd4a63b941b63a$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $6953eb5c011ad8ed$var$addLLVMLoggingMatcher() {\n if (0, $dAuy6.GITHUB_ACTIONS) {\n const matcherPath = (0, $eAXk4.join)($6953eb5c011ad8ed$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $90d27b925e8078c3$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $66785be328e24e8f$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $ca61f3433f42990a$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/msvc\");\nasync function $ca61f3433f42990a$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $f4af675fd1cc6e59$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $hHq4F.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $f4af675fd1cc6e59$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $hHq4F.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $hHq4F.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $hHq4F.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $dAuy6.GITHUB_ACTIONS) await $ca61f3433f42990a$var$addMSVCLoggingMatcher();\n}\nasync function $ca61f3433f42990a$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $eAXk4.join)($ca61f3433f42990a$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\nlet $8ef6bee7cd8d9504$var$binDir;\nasync function $8ef6bee7cd8d9504$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $8ef6bee7cd8d9504$var$binDir === \"string\") return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $8ef6bee7cd8d9504$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $4574e4c050df58da$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $8ef6bee7cd8d9504$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n}\nfunction $8ef6bee7cd8d9504$export$2747aa8ef20f818d(script) {\n if ((0, $4574e4c050df58da$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $e30a94480cbacda6$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $e30a94480cbacda6$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $e30a94480cbacda6$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $2c142710d07a1d78$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $87794de984c43d77$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/** Get the platform name task uses in their download links */ function $3633ba871f8ac84b$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $3633ba871f8ac84b$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $3633ba871f8ac84b$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $3633ba871f8ac84b$var$getTaskPlatform(platform);\n const taskArch = $3633ba871f8ac84b$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $1533841bc1073d6a$export$6411c5cbab21135b) : (0, $1533841bc1073d6a$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $3633ba871f8ac84b$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"task\", version, $3633ba871f8ac84b$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\nlet $937e45ed2ed39257$var$hasVCPKG = false;\nasync function $937e45ed2ed39257$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$937e45ed2ed39257$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $6t4SD.pathExists)((0, $eAXk4.join)(setupDir, (0, $eAXk4.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $eAXk4.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $hHq4F.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $24f062d29362ada6$export$28823a701bb5a12d)((0, $eAXk4.addShExt)((0, $eAXk4.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $bf272871df54e58d$export$4718e061a205eab)(setupDir);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $937e45ed2ed39257$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $eAXk4.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $5991c91eacfada05$export$18a3521ac7306af4 = {\n nala: (0, $8ef6bee7cd8d9504$export$d73cbe8caeff03c5),\n cmake: (0, $6ca1cdfc8544c646$export$c28663a621f418ce),\n ninja: (0, $33611b5480e1148e$export$e6190f4bfe2ef71),\n python: (0, $8e03016ecb3dd99e$export$2b0b68e9df3d4a02),\n vcpkg: (0, $937e45ed2ed39257$export$490bdba4ef3e3f82),\n bazel: (0, $671d2451576f7242$export$a66bc93580b0a849),\n conan: (0, $7fad98b8fc122c7f$export$249d0c7d779d362f),\n meson: (0, $66785be328e24e8f$export$f73905553f087748),\n gcovr: (0, $88e2c066ab70c051$export$b98d69f362caf61f),\n opencppcoverage: (0, $e30a94480cbacda6$export$6aa28a97600a8ae3),\n llvm: (0, $6953eb5c011ad8ed$export$3016de7ae9d14988),\n gcc: (0, $3f19caa876428bf4$export$405fab3de79b77b),\n choco: (0, $fd45706685edd4a7$export$b804d731cdad7ef9),\n brew: (0, $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e),\n powershell: (0, $2c142710d07a1d78$export$1ff6ad96ee130aba),\n ccache: (0, $e2bfdac6c7112ded$export$111263621bbb0768),\n sccache: (0, $87794de984c43d77$export$b963b67cda80fdc),\n doxygen: (0, $befd38d449a1dd77$export$b6e6613a954051ee),\n graphviz: (0, $84a50e6b88ef38c7$export$b885bd977caaafb9),\n cppcheck: (0, $287d43a812660c62$export$13d77464c548b5d3),\n clangtidy: (0, $6953eb5c011ad8ed$export$814ccfc953503728),\n clangformat: (0, $6953eb5c011ad8ed$export$1cf2d186cecf1f54),\n msvc: (0, $ca61f3433f42990a$export$a91ef0362c1a7298),\n vcvarsall: (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369),\n kcov: (0, $b57152bab0b5e0d6$export$abb7c2ff987b1f6b),\n make: (0, $90d27b925e8078c3$export$b0a9411329e2916),\n task: (0, $3633ba871f8ac84b$export$4456b3a3d3540077),\n sevenzip: (0, $9a4a93f779a8f772$export$5fc39629e14c8173)\n};\nconst $5991c91eacfada05$export$904054328df186b = Object.keys($5991c91eacfada05$export$18a3521ac7306af4);\nconst $5991c91eacfada05$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$5991c91eacfada05$export$904054328df186b\n];\n\n\nfunction $5e34b9b876d96316$export$7300a92932ee17a3(args) {\n return (0, $6973f06ebfc9a33d$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $5991c91eacfada05$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $5991c91eacfada05$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $5e34b9b876d96316$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $5e34b9b876d96316$export$f57ebcae4da846e4() {\n (0, $hHq4F.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $5e34b9b876d96316$export$fc4ce4d885cb1082(key) {\n const value = (0, $1o3Gj.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $5e34b9b876d96316$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\n\n\n\n\n\n\nfunction $378d5e7e39d04cd9$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $hHq4F.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $378d5e7e39d04cd9$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $378d5e7e39d04cd9$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $1o3Gj.startGroup)(`Installing ${compiler} ${version !== null && version !== void 0 ? version : \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $6953eb5c011ad8ed$export$3016de7ae9d14988)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $4umf8$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $88e2c066ab70c051$export$2a0488baf2a20c0f)();\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $3f19caa876428bf4$export$f115c01d224b9e9a)(gccVersion, (0, $4umf8$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $3f19caa876428bf4$export$405fab3de79b77b)(gccVersion, (0, $4umf8$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $88e2c066ab70c051$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $ca61f3433f42990a$export$a91ef0362c1a7298)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $4umf8$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $1o3Gj.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $hHq4F.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $1o3Gj.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $1ae0f1c1ace0f6af$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $dAuy6.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $c67d54237e946289$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $5e34b9b876d96316$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $5e34b9b876d96316$export$f57ebcae4da846e4)();\n var _opts_architecture;\n // cpu architecture\n const arch = (_opts_architecture = opts.architecture) !== null && _opts_architecture !== void 0 ? _opts_architecture : process.arch;\n var _process_env_SETUP_CPP_DIR;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = (_process_env_SETUP_CPP_DIR = process.env.SETUP_CPP_DIR) !== null && _process_env_SETUP_CPP_DIR !== void 0 ? _process_env_SETUP_CPP_DIR : (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $d8d049814738d806$exports.create({\n autoloadLocales: true\n });\n $d8d049814738d806$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($320f558e5d3a9246$exports))));\n $6OFKY.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($4af6780aae15e7aa$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $8555a825dc64b9bc$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $hHq4F.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $hHq4F.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $5991c91eacfada05$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $dAuy6.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n var _opts_timeout;\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $f6eafce5b5cfae6d$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat((_opts_timeout = opts.timeout) !== null && _opts_timeout !== void 0 ? _opts_timeout : \"20\") * 60000);\n time2 = Date.now();\n (0, $hHq4F.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $378d5e7e39d04cd9$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $hHq4F.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $fcca2ee3cb52e97b$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $hHq4F.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $hHq4F.success)(tool));\n errorMessages.forEach((tool)=>(0, $hHq4F.error)(tool));\n (0, $hHq4F.info)(\"setup-cpp finished\");\n if (!(0, $dAuy6.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $hHq4F.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $hHq4F.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$1ae0f1c1ace0f6af$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $hHq4F.error)(\"main() panicked!\");\n (0, $hHq4F.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.1abb15a9.js\"))).then(() => parcelRequire('8L9T2'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.09e25805.js\"))).then(() => parcelRequire('1PWvB'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await setupCppInProfile()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFileSync, readFile, readFileSync, writeFileSync } from \"fs\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n if (options.shouldAddOnlyIfNotDefined) {\n appendFileSync(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n }\n }\n\n // source cpprc in bashrc/profile\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = readFileSync(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = readFileSync(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = readFileSync(cpprc_path, \"utf-8\").split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n writeFileSync(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAAS,CAAAC,EAAOR,CAAI,CAAEC,CAAO,CAAEC,CAAE,EAM/B,GALuB,YAAnB,MAAO,CAAAD,CAAA,GACTC,CAAA,CAAKD,CAAA,CACLA,CAAA,CAAU,CAAC,GAGT,CAACC,CAAA,CAAI,CACP,GAAI,UAAmB,EAAnB,MAAO,CAAAO,OAAA,CACT,KAAM,CAAAC,SAAI,CAAU,yBAGtB,MAAO,IAAI,CAAAD,OAAA,CAAQ,SAAUP,CAAO,CAAEC,CAAM,EAC1CK,CAAA,CAAMR,CAAA,CAAMC,CAAA,EAAW,CAAC,EAAG,SAAUD,CAAE,CAAEC,CAAE,EACrCD,CAAA,CACFG,CAAA,CAAOH,CAAA,EAEPE,CAAA,CAAQD,CAAA,CAEZ,GACF,GACF,EAEAU,EAAA,CAAKX,CAAA,CAAMC,CAAA,EAAW,CAAC,EAAG,SAAUD,CAAE,CAAEG,CAAE,EAEpCH,CAAA,GACE,QAAY,GAAZA,CAAA,CAAGY,IAAI,EAAiBX,CAAA,EAAWA,CAAA,CAAQY,YAAY,CAAZ,GAC7Cb,CAAA,CAAK,KACLG,CAAA,CAAK,IAGTD,CAAA,CAAGF,CAAA,CAAIG,CAAA,CACT,GACF,EFrCA,QAAS,CAAAW,EAAsBd,CAAM,CAAEC,CAAc,KAiB7C,CAAAC,CAAA,CAhBJ,GAAM,CAAAC,CAAA,CAAMH,CAAA,CAAOe,OAAO,CAACC,GAAG,EAAIC,OAAA,CAAQD,GAAG,CACvCZ,CAAA,CAAMa,OAAA,CAAQC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AA,CAAS,OACT,GAEML,EAAA,CAAS,GACFD,EAAA,CAAS,GEbTO,EAAA,CAAQ,CACrB,CACArgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,kBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,gCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,iCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,sBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CACA,oEACAC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,UACPC,WAAA,CAAY,WACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,SACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,gDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,qDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,oBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,eACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,QACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,gBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,C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SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAGK2hB,EAAA,CAA6B,GAAI,CAAApT,GAAA,CAAI,CAAC,SAAU,SAAU,SAAU,SAAS,EAG7EsT,EAAA,CAAiB,GAAI,CAAAtT,GAAA,CAAI,CAC7B,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SAGA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAOKuT,EAAA,CAAiC,GAAI,CAAAygB,GAAA,GAQrCtgB,EAAA,CAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,eACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,sBAAuB,gBACvB,sBAAuB,gBACvB,SAAU,gBACV,sBAAuB,gBACvB,SAAU,gBAEV,SAAU,UACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,eACZ,EAGMC,EAAA,CAAqB,S,0CN3J3B,KAAM,CAAAG,EAAA,CAA6BxL,EAAA,CAAQ0L,EAAA,CAAgC,CAAErL,SAAA,CAAW,EAAK,GA8CvF4L,EAAA,CAAiBjM,EAAA,CAAQkM,EAAA,CAAoB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,CAAAsV,EAAA,CAAS,OAAQxV,CAAA,CAAS+jB,EAAA,CAAoB9jB,CAAA,CAAUC,CAAA,CACjE,GxFUEogD,QAAA,CAAUtsC,EACZ,EAKawS,EAAA,CAAQzkB,MAAA,CAAOuB,IAAI,CAACyd,EAAA,EAMpBmE,EAAA,CAAwB,CAAC,WAAY,eAAgB,aAAcsB,EAAA,CAAM,C,6C7DqFtFlC,EAAA,CAAKrjB,OAAA,CAAQs/C,IAAI,EACd12C,IAAI,CAAC7J,CAAC,GACLiB,OAAA,CAAQkG,QAAQ,CAAGnH,CACrB,IACCoV,KAAK,CAACpV,CAAC,GACN,GAAA4K,EAAA,CAAA3E,KAAI,EAAE,oBACN,GAAA2E,EAAA,CAAA3E,KAAI,EAAEjG,CAAA,EACNiB,OAAA,CAAQkG,QAAQ,CAAG,CACrB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rH","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rG","sync","command","path","rq","pathExt","n3","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iO","file","original","h","rF","ri","spawn","rY","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ru","execPath","URL","rp","fileURLToPath","rl","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r4","getBufferedLength","r1","MAX_LENGTH","bufferedData","getBufferedValue","om","on","ov","x","oq","oP","oN","oB","ou","rc","ChildProcess","oA","reject","iz","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","oC","oc","op","kill","or","bind","cancel","oa","rQ","exitCode","signal","oR","oV","aborted","failed","ox","ob","oh","b","oy","spawnSync","input","status","S","getuid","call","CI","r$","nothrow","I","oW","oL","O","T","R","map","A","SUDO_USER","n6","statSync","isDirectory","C","n4","homedir","replace","oK","$","next","throw","done","value","then","apply","_","return","label","ops","pop","trys","sent","Symbol","iterator","P","r5","pkg","nm","rR","warning","message","stack","N","Array","isArray","L","D","k","U","sN","sb","sS","s_","sr","sE","o0","sy","st","sn","o3","o7","sm","sL","sp","sd","ss","j","stdio","F","sU","nE","ny","shouldEscapeSpace","rI","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nv","info","exportVariable","G","setFailed","M","sj","some","test","PATH","split","includes","addPath","B","H","rP","appendFile","sF","sM","q","X","V","ng","pathExists","readFile","z","Set","writeFile","W","Q","name","version","DEBIAN_FRONTEND","sB","J","sH","Z","flatMap","repositories","Y","sq","binDir","K","nw","default","trim","et","ee","er","en","toString","sG","ei","startsWith","eo","nb","dirname","tmpdir","nS","mkdirP","readFileSync","NONINTERACTIVE","es","ea","sV","arch","el","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","ec","sX","TMP","TEMP","Path","extendEnv","eu","ep","ed","ef","sz","sW","eh","matchAll","sK","em","s0","s1","ex","sJ","existsSync","readdirSync","ey","ev","eb","s8","sQ","eg","s4","clean","sY","debug","rmRF","eE","writeFileSync","valid","ew","sort","gt","satisfies","RUNNER_TOOL_CACHE","rt","ok","RUNNER_TEMP","eS","ry","eI","eR","eO","eT","eA","eC","e$","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","at","current","catch","RegExp","Math","pow","e_","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nI","installDir","nF","downloadTool","ar","cacheDir","eP","nU","nj","addExeExt","extractTar","eN","eL","nG","eD","ek","eU","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nM","nB","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","ej","n9","request","method","statusCode","end","eF","from","filter","nV","localeCompare","eM","nq","has","JSON","stringify","eG","aE","n_","getExecOutput","console","eB","eH","eq","ez","bin","eQ","eV","eX","te","e7","upgrade","usePipx","ts","isLibrary","eK","setupActionsPython","rb","eW","eY","aw","python","eJ","e0","eZ","pip","e1","e2","e4","e3","ax","parseInt","ay","e6","execFile","encoding","shell","e8","e5","nz","getUbuntuVersion","e9","aO","user","ti","PIPX_HOME","aI","PIPX_BIN_DIR","aR","ab","to","tt","ag","tr","tn","aS","findIndex","ta","tl","tc","tu","tp","ArchiveHdi","read","extract","td","tf","th","aA","notice","tm","tv","aC","releaseName","fileSuffix","tg","ty","tw","tE","nW","tx","nK","tb","tS","tI","tR","tO","tT","nY","tA","tC","aj","t$","execSync","entries","aU","aD","ak","aL","t_","nZ","tP","aM","startGroup","milliseconds","fallback","customTimers","sign","aN","addEventListener","Number","POSITIVE_INFINITY","a$","finally","clear","tN","endGroup","a0","t3","tL","tD","aH","aG","NODE_DEBUG","tk","aB","rE","tU","tj","tF","aV","tM","aX","az","get","aq","aW","aK","tG","tB","aY","tz","tH","tq","aJ","tW","n0","All","nX","aQ","tV","tX","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","n1","tK","tY","nQ","nJ","tQ","n2","tJ","tZ","t0","t1","t2","t4","aZ","addShExt","addShRelativePrefix","t6","compiler","t8","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","a2","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rA","create","autoloadLocales","addLocale","rC","rO","rT","forEach","cppcheck","gcovr","a1","isCI","now","parseFloat","format","success","t5","t9","rL","rD","rk","rU","rV","rX","rZ","r2","r3","r8","r7","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nd","nf","nh","nH","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","appendFileSync","random","rng","n8","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n5","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t7","connect","localAddress","defaultPort","rr","inherits","re","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","rm","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","rn","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","ro","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rs","HandleTimeout","rS","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","r_","n7","it","ie","ir","groups","getgroups","rN","ii","ia","io","is","il","_ISEXE_TEST_PLATFORM_","ic","isexe","iu","posix","ip","ih","source","im","iv","pathEnv","pathExtExe","ig","iE","rj","rM","iy","OSTYPE","iw","rB","ix","ib","colon","iS","iI","rz","rW","rK","openSync","readSync","closeSync","iR","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iT","getOwnPropertyDescriptor","iA","iC","getPrototypeOf","i$","i_","Function","iP","iN","iL","WeakMap","iD","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","ik","iF","ij","iU","number","action","description","standard","iM","forced","iG","iB","signals","rd","supported","iH","iq","iV","iX","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iW","iK","iY","iQ","reallyExit","pid","iJ","iZ","i0","i1","i2","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i4","i8","i6","oe","i9","rJ","equal","i5","alwaysLast","unload","i3","ot","i7","oi","os","unref","forceKillAfterTimeout","oo","SIGTERM","isFinite","ol","killSignal","race","cleanup","detached","od","of","createWriteStream","pipeStdout","pipeStderr","pipeAll","rf","rh","PassThrough","array","objectMode","setEncoding","pipeline","r0","buffer","MaxBufferError","r6","readable","isEmpty","og","oE","inputFile","ow","createReadStream","oS","oI","oO","oT","o$","o_","oD","ra","isBuffer","oU","templates","expressions","template","oj","oF","debuglog","enabled","oM","padStart","oG","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oH","preferLocal","localDir","stripFinalNewline","windowsHide","oX","oz","rv","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r9","padEnd","isTTY","shouldNotifyInNpmScript","oY","oQ","release","oJ","oZ","o1","o2","o4","o6","o8","o9","o5","se","si","so","sa","sl","sc","su","sf","sh","sv","sg","sw","sx","sI","sR","sO","sT","sA","sC","s$","sP","sD","sk","nx","nA","sZ","s2","s3","s6","n$","s5","nD","nP","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s9","httpStatusCode","new","target","HTTPError","s7","ae","nC","authorization","statusMessage","extract7z","nR","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","an","fs","mkdirAsync","statAsync","ai","ao","as","aa","al","ac","au","__TESTING_MKDIRP_PLATFORM__","ap","root","ad","__TESTING_MKDIRP_NODE_VERSION__","af","ah","am","av","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rg","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aT","a_","aP","globalThis","DOMException","reason","ProgramFiles","aF","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-3dfbc2a3f5a258f9.js","../../node_modules/@parcel/runtime-js/lib/runtime-5ad8534f7f57082c.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $4umf8$os = require(\"os\");\nvar $4umf8$path = require(\"path\");\nvar $4umf8$fs = require(\"fs\");\nvar $4umf8$crypto = require(\"crypto\");\nvar $4umf8$http = require(\"http\");\nvar $4umf8$https = require(\"https\");\nrequire(\"net\");\nvar $4umf8$tls = require(\"tls\");\nvar $4umf8$events = require(\"events\");\nvar $4umf8$assert = require(\"assert\");\nvar $4umf8$util = require(\"util\");\nvar $4umf8$nodefs = require(\"node:fs\");\nvar $4umf8$child_process = require(\"child_process\");\nvar $4umf8$string_decoder = require(\"string_decoder\");\nvar $4umf8$timers = require(\"timers\");\nvar $4umf8$nodebuffer = require(\"node:buffer\");\nvar $4umf8$nodepath = require(\"node:path\");\nvar $4umf8$nodechild_process = require(\"node:child_process\");\nvar $4umf8$nodeprocess = require(\"node:process\");\nvar $4umf8$nodeurl = require(\"node:url\");\nvar $4umf8$nodeos = require(\"node:os\");\nvar $4umf8$buffer = require(\"buffer\");\nvar $4umf8$stream = require(\"stream\");\nvar $4umf8$nodeutil = require(\"node:util\");\nvar $4umf8$process = require(\"process\");\nvar $4umf8$url = require(\"url\");\nvar $4umf8$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"dAuy6\", function(module, exports) {\n\"use strict\";\n\nvar $5vZJI = parcelRequire(\"5vZJI\");\nconst $9e46558a3f40ee97$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $5vZJI.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$5vZJI.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $9e46558a3f40ee97$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$9e46558a3f40ee97$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $9e46558a3f40ee97$var$env && $9e46558a3f40ee97$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$9e46558a3f40ee97$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $9e46558a3f40ee97$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($9e46558a3f40ee97$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($9e46558a3f40ee97$var$env.BUILD_ID || // Jenkins, Cloudbees\n$9e46558a3f40ee97$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$9e46558a3f40ee97$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$9e46558a3f40ee97$var$env.CI_APP_ID || // Appflow\n$9e46558a3f40ee97$var$env.CI_BUILD_ID || // Appflow\n$9e46558a3f40ee97$var$env.CI_BUILD_NUMBER || // Appflow\n$9e46558a3f40ee97$var$env.CI_NAME || // Codeship and others\n$9e46558a3f40ee97$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$9e46558a3f40ee97$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $9e46558a3f40ee97$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$9e46558a3f40ee97$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $9e46558a3f40ee97$var$env[obj.env] && $9e46558a3f40ee97$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$9e46558a3f40ee97$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $9e46558a3f40ee97$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"5vZJI\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"hHq4F\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $0c53d1c71c9db41f$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $0c53d1c71c9db41f$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $0c53d1c71c9db41f$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $0c53d1c71c9db41f$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $0c53d1c71c9db41f$export$a80b3bd66acc52ff);\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\nfunction $0c53d1c71c9db41f$export$a3bc9b8ed74fc(err) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$491112666e282270(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$b31f6ae88848cf15(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $0c53d1c71c9db41f$export$a80b3bd66acc52ff(msg) {\n return (0, $dAuy6.GITHUB_ACTIONS) ? $1o3Gj.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"1o3Gj\", function(module, exports) {\n\"use strict\";\nvar $102ae369f312a547$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $102ae369f312a547$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $102ae369f312a547$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $102ae369f312a547$var$__createBinding(result, mod, k);\n }\n $102ae369f312a547$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $102ae369f312a547$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $1g3mY = parcelRequire(\"1g3mY\");\n\nvar $8prV6 = parcelRequire(\"8prV6\");\n\nvar $5nnws = parcelRequire(\"5nnws\");\n\nconst $102ae369f312a547$var$os = $102ae369f312a547$var$__importStar($4umf8$os);\n\nconst $102ae369f312a547$var$path = $102ae369f312a547$var$__importStar($4umf8$path);\n\nvar $dU1e3 = parcelRequire(\"dU1e3\");\n/**\n * The code to exit an action\n */ var $102ae369f312a547$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($102ae369f312a547$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$exportVariable(name, val) {\n const convertedVal = $5nnws.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"ENV\", $8prV6.prepareKeyValueMessage(name, val));\n $1g3mY.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $102ae369f312a547$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $102ae369f312a547$var$setSecret(secret) {\n $1g3mY.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $102ae369f312a547$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $102ae369f312a547$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $8prV6.issueFileCommand(\"PATH\", inputPath);\n else $1g3mY.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$102ae369f312a547$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $102ae369f312a547$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $102ae369f312a547$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $102ae369f312a547$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $102ae369f312a547$var$getMultilineInput(name, options) {\n const inputs = $102ae369f312a547$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $102ae369f312a547$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $102ae369f312a547$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $102ae369f312a547$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $102ae369f312a547$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"OUTPUT\", $8prV6.prepareKeyValueMessage(name, value));\n process.stdout.write($102ae369f312a547$var$os.EOL);\n $1g3mY.issueCommand(\"set-output\", {\n name: name\n }, $5nnws.toCommandValue(value));\n}\nmodule.exports.setOutput = $102ae369f312a547$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $102ae369f312a547$var$setCommandEcho(enabled) {\n $1g3mY.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $102ae369f312a547$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $102ae369f312a547$var$setFailed(message) {\n process.exitCode = $102ae369f312a547$var$ExitCode.Failure;\n $102ae369f312a547$var$error(message);\n}\nmodule.exports.setFailed = $102ae369f312a547$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $102ae369f312a547$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $102ae369f312a547$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $102ae369f312a547$var$debug(message) {\n $1g3mY.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $102ae369f312a547$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$error(message, properties = {}) {\n $1g3mY.issueCommand(\"error\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $102ae369f312a547$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$warning(message, properties = {}) {\n $1g3mY.issueCommand(\"warning\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $102ae369f312a547$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $102ae369f312a547$var$notice(message, properties = {}) {\n $1g3mY.issueCommand(\"notice\", $5nnws.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $102ae369f312a547$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $102ae369f312a547$var$info(message) {\n process.stdout.write(message + $102ae369f312a547$var$os.EOL);\n}\nmodule.exports.info = $102ae369f312a547$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $102ae369f312a547$var$startGroup(name) {\n $1g3mY.issue(\"group\", name);\n}\nmodule.exports.startGroup = $102ae369f312a547$var$startGroup;\n/**\n * End an output group.\n */ function $102ae369f312a547$var$endGroup() {\n $1g3mY.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $102ae369f312a547$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $102ae369f312a547$var$group(name, fn) {\n return $102ae369f312a547$var$__awaiter(this, void 0, void 0, function*() {\n $102ae369f312a547$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $102ae369f312a547$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $102ae369f312a547$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $102ae369f312a547$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $8prV6.issueFileCommand(\"STATE\", $8prV6.prepareKeyValueMessage(name, value));\n $1g3mY.issueCommand(\"save-state\", {\n name: name\n }, $5nnws.toCommandValue(value));\n}\nmodule.exports.saveState = $102ae369f312a547$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $102ae369f312a547$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $102ae369f312a547$var$getState;\nfunction $102ae369f312a547$var$getIDToken(aud) {\n return $102ae369f312a547$var$__awaiter(this, void 0, void 0, function*() {\n return yield $dU1e3.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $102ae369f312a547$var$getIDToken;\n\nvar $dV9Cu = parcelRequire(\"dV9Cu\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $dV9Cu.summary;\n }\n});\n\nvar $dV9Cu = parcelRequire(\"dV9Cu\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $dV9Cu.markdownSummary;\n }\n});\n\nvar $9i0tI = parcelRequire(\"9i0tI\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $9i0tI.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"1g3mY\", function(module, exports) {\n\"use strict\";\nvar $0ea9e630a7cef9e6$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0ea9e630a7cef9e6$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0ea9e630a7cef9e6$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0ea9e630a7cef9e6$var$__createBinding(result, mod, k);\n }\n $0ea9e630a7cef9e6$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $0ea9e630a7cef9e6$var$os = $0ea9e630a7cef9e6$var$__importStar($4umf8$os);\n\nvar $5nnws = parcelRequire(\"5nnws\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $0ea9e630a7cef9e6$var$issueCommand(command, properties, message) {\n const cmd = new $0ea9e630a7cef9e6$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $0ea9e630a7cef9e6$var$os.EOL);\n}\nmodule.exports.issueCommand = $0ea9e630a7cef9e6$var$issueCommand;\nfunction $0ea9e630a7cef9e6$var$issue(name, message = \"\") {\n $0ea9e630a7cef9e6$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $0ea9e630a7cef9e6$var$issue;\nconst $0ea9e630a7cef9e6$var$CMD_STRING = \"::\";\nclass $0ea9e630a7cef9e6$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $0ea9e630a7cef9e6$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$0ea9e630a7cef9e6$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$0ea9e630a7cef9e6$var$CMD_STRING}${$0ea9e630a7cef9e6$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $0ea9e630a7cef9e6$var$escapeData(s) {\n return $5nnws.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $0ea9e630a7cef9e6$var$escapeProperty(s) {\n return $5nnws.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"5nnws\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $3ea158d1b71ecb6c$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $3ea158d1b71ecb6c$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $3ea158d1b71ecb6c$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $3ea158d1b71ecb6c$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"8prV6\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $61f650dde32acca8$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $61f650dde32acca8$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $61f650dde32acca8$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $61f650dde32acca8$var$__createBinding(result, mod, k);\n }\n $61f650dde32acca8$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $61f650dde32acca8$var$fs = $61f650dde32acca8$var$__importStar($4umf8$fs);\n\nconst $61f650dde32acca8$var$os = $61f650dde32acca8$var$__importStar($4umf8$os);\n\nvar $1Un9O = parcelRequire(\"1Un9O\");\n\nvar $5nnws = parcelRequire(\"5nnws\");\nfunction $61f650dde32acca8$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$61f650dde32acca8$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $61f650dde32acca8$var$fs.appendFileSync(filePath, `${$5nnws.toCommandValue(message)}${$61f650dde32acca8$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $61f650dde32acca8$var$issueFileCommand;\nfunction $61f650dde32acca8$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$1Un9O.default()}`;\n const convertedValue = $5nnws.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$61f650dde32acca8$var$os.EOL}${convertedValue}${$61f650dde32acca8$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $61f650dde32acca8$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"1Un9O\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $163cfbef58865d16$export$2e2bcd8739ae039);\n\nvar $jyKkd = parcelRequire(\"jyKkd\");\n\nvar $4DdbA = parcelRequire(\"4DdbA\");\nfunction $163cfbef58865d16$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $jyKkd.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $4DdbA.default)(rnds);\n}\nvar $163cfbef58865d16$export$2e2bcd8739ae039 = $163cfbef58865d16$var$v4;\n\n});\nparcelRegister(\"jyKkd\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $e3d520772be72ad6$export$2e2bcd8739ae039);\n\nconst $e3d520772be72ad6$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $e3d520772be72ad6$var$poolPtr = $e3d520772be72ad6$var$rnds8Pool.length;\nfunction $e3d520772be72ad6$export$2e2bcd8739ae039() {\n if ($e3d520772be72ad6$var$poolPtr > $e3d520772be72ad6$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($4umf8$crypto))).randomFillSync($e3d520772be72ad6$var$rnds8Pool);\n $e3d520772be72ad6$var$poolPtr = 0;\n }\n return $e3d520772be72ad6$var$rnds8Pool.slice($e3d520772be72ad6$var$poolPtr, $e3d520772be72ad6$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"4DdbA\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $35f5085d44821234$export$2e2bcd8739ae039);\n\nvar $4XBHo = parcelRequire(\"4XBHo\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $35f5085d44821234$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$35f5085d44821234$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $35f5085d44821234$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($35f5085d44821234$var$byteToHex[arr[offset + 0]] + $35f5085d44821234$var$byteToHex[arr[offset + 1]] + $35f5085d44821234$var$byteToHex[arr[offset + 2]] + $35f5085d44821234$var$byteToHex[arr[offset + 3]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 4]] + $35f5085d44821234$var$byteToHex[arr[offset + 5]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 6]] + $35f5085d44821234$var$byteToHex[arr[offset + 7]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 8]] + $35f5085d44821234$var$byteToHex[arr[offset + 9]] + \"-\" + $35f5085d44821234$var$byteToHex[arr[offset + 10]] + $35f5085d44821234$var$byteToHex[arr[offset + 11]] + $35f5085d44821234$var$byteToHex[arr[offset + 12]] + $35f5085d44821234$var$byteToHex[arr[offset + 13]] + $35f5085d44821234$var$byteToHex[arr[offset + 14]] + $35f5085d44821234$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $4XBHo.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $35f5085d44821234$export$2e2bcd8739ae039 = $35f5085d44821234$var$stringify;\n\n});\nparcelRegister(\"4XBHo\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $39c9ea59ce04fda7$export$2e2bcd8739ae039);\n\nvar $dcWu5 = parcelRequire(\"dcWu5\");\nfunction $39c9ea59ce04fda7$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $dcWu5.default).test(uuid);\n}\nvar $39c9ea59ce04fda7$export$2e2bcd8739ae039 = $39c9ea59ce04fda7$var$validate;\n\n});\nparcelRegister(\"dcWu5\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $99d9c315b99dd3a1$export$2e2bcd8739ae039);\nvar $99d9c315b99dd3a1$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"dU1e3\", function(module, exports) {\n\"use strict\";\nvar $a1f174b1cdd8a4a7$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $eamjo = parcelRequire(\"eamjo\");\n\nvar $h6tQO = parcelRequire(\"h6tQO\");\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\nclass $a1f174b1cdd8a4a7$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $eamjo.HttpClient(\"actions/oidc-client\", [\n new $h6tQO.BearerCredentialHandler($a1f174b1cdd8a4a7$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $a1f174b1cdd8a4a7$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $a1f174b1cdd8a4a7$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $a1f174b1cdd8a4a7$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $a1f174b1cdd8a4a7$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $1o3Gj.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $a1f174b1cdd8a4a7$var$OidcClient.getCall(id_token_url);\n $1o3Gj.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $a1f174b1cdd8a4a7$var$OidcClient;\n\n});\nparcelRegister(\"eamjo\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $02a957f9cba5526c$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $02a957f9cba5526c$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $02a957f9cba5526c$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $02a957f9cba5526c$var$__createBinding(result, mod, k);\n }\n $02a957f9cba5526c$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $02a957f9cba5526c$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $02a957f9cba5526c$var$http = $02a957f9cba5526c$var$__importStar($4umf8$http);\n\nconst $02a957f9cba5526c$var$https = $02a957f9cba5526c$var$__importStar($4umf8$https);\n\nconst $02a957f9cba5526c$var$pm = $02a957f9cba5526c$var$__importStar((parcelRequire(\"jnrYh\")));\n\nconst $02a957f9cba5526c$var$tunnel = $02a957f9cba5526c$var$__importStar((parcelRequire(\"3RDK7\")));\nvar $02a957f9cba5526c$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($02a957f9cba5526c$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $02a957f9cba5526c$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($02a957f9cba5526c$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $02a957f9cba5526c$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($02a957f9cba5526c$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $02a957f9cba5526c$var$getProxyUrl(serverUrl) {\n const proxyUrl = $02a957f9cba5526c$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $02a957f9cba5526c$var$getProxyUrl;\nconst $02a957f9cba5526c$var$HttpRedirectCodes = [\n $02a957f9cba5526c$var$HttpCodes.MovedPermanently,\n $02a957f9cba5526c$var$HttpCodes.ResourceMoved,\n $02a957f9cba5526c$var$HttpCodes.SeeOther,\n $02a957f9cba5526c$var$HttpCodes.TemporaryRedirect,\n $02a957f9cba5526c$var$HttpCodes.PermanentRedirect\n];\nconst $02a957f9cba5526c$var$HttpResponseRetryCodes = [\n $02a957f9cba5526c$var$HttpCodes.BadGateway,\n $02a957f9cba5526c$var$HttpCodes.ServiceUnavailable,\n $02a957f9cba5526c$var$HttpCodes.GatewayTimeout\n];\nconst $02a957f9cba5526c$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $02a957f9cba5526c$var$ExponentialBackoffCeiling = 10;\nconst $02a957f9cba5526c$var$ExponentialBackoffTimeSlice = 5;\nclass $02a957f9cba5526c$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $02a957f9cba5526c$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $02a957f9cba5526c$var$HttpClientError;\nclass $02a957f9cba5526c$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $02a957f9cba5526c$var$HttpClientResponse;\nfunction $02a957f9cba5526c$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $02a957f9cba5526c$var$isHttps;\nclass $02a957f9cba5526c$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$02a957f9cba5526c$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.Accept, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n additionalHeaders[$02a957f9cba5526c$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $02a957f9cba5526c$var$Headers.ContentType, $02a957f9cba5526c$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $02a957f9cba5526c$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $02a957f9cba5526c$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $02a957f9cba5526c$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$02a957f9cba5526c$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $02a957f9cba5526c$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $02a957f9cba5526c$var$https : $02a957f9cba5526c$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $02a957f9cba5526c$var$lowercaseKeys(this.requestOptions.headers), $02a957f9cba5526c$var$lowercaseKeys(headers || {}));\n return $02a957f9cba5526c$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $02a957f9cba5526c$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $02a957f9cba5526c$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $02a957f9cba5526c$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $02a957f9cba5526c$var$tunnel.httpsOverHttps : $02a957f9cba5526c$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $02a957f9cba5526c$var$tunnel.httpOverHttps : $02a957f9cba5526c$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $02a957f9cba5526c$var$https.Agent(options) : new $02a957f9cba5526c$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $02a957f9cba5526c$var$https.globalAgent : $02a957f9cba5526c$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($02a957f9cba5526c$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $02a957f9cba5526c$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$02a957f9cba5526c$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $02a957f9cba5526c$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $02a957f9cba5526c$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $02a957f9cba5526c$var$HttpClient;\nconst $02a957f9cba5526c$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"jnrYh\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $e1b5dcd4d3bc6d63$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($e1b5dcd4d3bc6d63$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $e1b5dcd4d3bc6d63$var$getProxyUrl;\nfunction $e1b5dcd4d3bc6d63$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($e1b5dcd4d3bc6d63$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $e1b5dcd4d3bc6d63$var$checkBypass;\nfunction $e1b5dcd4d3bc6d63$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"3RDK7\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"jZQ4B\"));\n\n});\nparcelRegister(\"jZQ4B\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $e8ec1b78916bb724$export$25cbd437c61a3835, (v) => $e8ec1b78916bb724$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $e8ec1b78916bb724$export$c06e3df7111bae43, (v) => $e8ec1b78916bb724$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $e8ec1b78916bb724$export$5d50e36ef656139f, (v) => $e8ec1b78916bb724$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $e8ec1b78916bb724$export$212d6605025321cc, (v) => $e8ec1b78916bb724$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $e8ec1b78916bb724$export$1c9f709888824e05, (v) => $e8ec1b78916bb724$export$1c9f709888824e05 = v);\nvar $e8ec1b78916bb724$export$25cbd437c61a3835;\nvar $e8ec1b78916bb724$export$c06e3df7111bae43;\nvar $e8ec1b78916bb724$export$5d50e36ef656139f;\nvar $e8ec1b78916bb724$export$212d6605025321cc;\nvar $e8ec1b78916bb724$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$e8ec1b78916bb724$export$25cbd437c61a3835 = $e8ec1b78916bb724$var$httpOverHttp;\n$e8ec1b78916bb724$export$c06e3df7111bae43 = $e8ec1b78916bb724$var$httpsOverHttp;\n$e8ec1b78916bb724$export$5d50e36ef656139f = $e8ec1b78916bb724$var$httpOverHttps;\n$e8ec1b78916bb724$export$212d6605025321cc = $e8ec1b78916bb724$var$httpsOverHttps;\nfunction $e8ec1b78916bb724$var$httpOverHttp(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$http.request;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpsOverHttp(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$http.request;\n agent.createSocket = $e8ec1b78916bb724$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpOverHttps(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$https.request;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$httpsOverHttps(options) {\n var agent = new $e8ec1b78916bb724$var$TunnelingAgent(options);\n agent.request = $4umf8$https.request;\n agent.createSocket = $e8ec1b78916bb724$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $e8ec1b78916bb724$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $4umf8$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $e8ec1b78916bb724$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$4umf8$util.inherits($e8ec1b78916bb724$var$TunnelingAgent, $4umf8$events.EventEmitter);\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $e8ec1b78916bb724$var$mergeOptions({\n request: req\n }, self.options, $e8ec1b78916bb724$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $e8ec1b78916bb724$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $e8ec1b78916bb724$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $e8ec1b78916bb724$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $e8ec1b78916bb724$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $e8ec1b78916bb724$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $e8ec1b78916bb724$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$e8ec1b78916bb724$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $e8ec1b78916bb724$var$createSecureSocket(options, cb) {\n var self = this;\n $e8ec1b78916bb724$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $e8ec1b78916bb724$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $4umf8$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $e8ec1b78916bb724$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $e8ec1b78916bb724$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $e8ec1b78916bb724$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $e8ec1b78916bb724$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $e8ec1b78916bb724$var$debug = function() {};\n$e8ec1b78916bb724$export$1c9f709888824e05 = $e8ec1b78916bb724$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"h6tQO\", function(module, exports) {\n\"use strict\";\nvar $c73a26f8594778ef$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $c73a26f8594778ef$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $c73a26f8594778ef$var$BasicCredentialHandler;\nclass $c73a26f8594778ef$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $c73a26f8594778ef$var$BearerCredentialHandler;\nclass $c73a26f8594778ef$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $c73a26f8594778ef$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $c73a26f8594778ef$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"dV9Cu\", function(module, exports) {\n\"use strict\";\nvar $a2280f869d17820a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $a2280f869d17820a$var$access, appendFile: $a2280f869d17820a$var$appendFile, writeFile: $a2280f869d17820a$var$writeFile } = $4umf8$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $a2280f869d17820a$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $a2280f869d17820a$var$access(pathFromEnv, $4umf8$fs.constants.R_OK | $4umf8$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $a2280f869d17820a$var$writeFile : $a2280f869d17820a$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $a2280f869d17820a$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($4umf8$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $a2280f869d17820a$var$_summary = new $a2280f869d17820a$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $a2280f869d17820a$var$_summary;\nmodule.exports.summary = $a2280f869d17820a$var$_summary;\n\n});\n\nparcelRegister(\"9i0tI\", function(module, exports) {\n\"use strict\";\nvar $6c362a75924285b0$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $6c362a75924285b0$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $6c362a75924285b0$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $6c362a75924285b0$var$__createBinding(result, mod, k);\n }\n $6c362a75924285b0$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $6c362a75924285b0$var$path = $6c362a75924285b0$var$__importStar($4umf8$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $6c362a75924285b0$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $6c362a75924285b0$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $6c362a75924285b0$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $6c362a75924285b0$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $6c362a75924285b0$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $6c362a75924285b0$var$path.sep);\n}\nmodule.exports.toPlatformPath = $6c362a75924285b0$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"kswPT\", function(module, exports) {\n\nvar $ee4fe4bbd8d821d9$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($ee4fe4bbd8d821d9$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"foOBZ\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $6OFKY = parcelRequire(\"6OFKY\");\n\nvar $5GOZM = parcelRequire(\"5GOZM\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $b3605b587cf7d4a3$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $b3605b587cf7d4a3$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $b3605b587cf7d4a3$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $b3605b587cf7d4a3$var$timeDeltaFactory,\n addLocale: $b3605b587cf7d4a3$var$addLocale,\n defaultConfig: $b3605b587cf7d4a3$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $b3605b587cf7d4a3$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $b3605b587cf7d4a3$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $b3605b587cf7d4a3$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $b3605b587cf7d4a3$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $b3605b587cf7d4a3$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $b3605b587cf7d4a3$var$format(firstDate, secondDate, config) {\n $b3605b587cf7d4a3$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $b3605b587cf7d4a3$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($b3605b587cf7d4a3$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $b3605b587cf7d4a3$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($b3605b587cf7d4a3$var$hasLocale(locale)) return;\n if ($5GOZM && autoload) $b3605b587cf7d4a3$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $b3605b587cf7d4a3$var$hasLocale(localeId) {\n return Boolean($b3605b587cf7d4a3$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $b3605b587cf7d4a3$var$requireLocale(localeId) {\n try {\n $b3605b587cf7d4a3$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $b3605b587cf7d4a3$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $b3605b587cf7d4a3$var$pluralize(unit, value, config) {\n const unitTypeData = $b3605b587cf7d4a3$var$getLocaleDataForUnitType(config);\n const unitString = $6OFKY.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$getLocaleDataForUnitType(config) {\n const localeData = $b3605b587cf7d4a3$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $b3605b587cf7d4a3$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $b3605b587cf7d4a3$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"6OFKY\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"kswPT\"));\n\n});\n\nparcelRegister(\"5GOZM\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"2Bbmx\", function(module, exports) {\n\n$parcel$export(module.exports, \"appendFile\", () => $9b99f2c333371baa$export$31f54b44f813a103);\n$parcel$export(module.exports, \"chmod\", () => $9b99f2c333371baa$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $9b99f2c333371baa$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $9b99f2c333371baa$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $9b99f2c333371baa$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $9b99f2c333371baa$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readFile\", () => $9b99f2c333371baa$export$72c04af63de9061a);\n$parcel$export(module.exports, \"readlink\", () => $9b99f2c333371baa$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $9b99f2c333371baa$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $9b99f2c333371baa$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $9b99f2c333371baa$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $9b99f2c333371baa$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $9b99f2c333371baa$export$a1f77f18af3aebd5);\n\n\nvar $9b99f2c333371baa$export$2e2bcd8739ae039 = $4umf8$fs.promises;\nconst { access: $9b99f2c333371baa$export$9bb0e144ba4929ca, appendFile: $9b99f2c333371baa$export$31f54b44f813a103, chmod: $9b99f2c333371baa$export$fe07cae62e774a05, chown: $9b99f2c333371baa$export$86560bc0b866a003, copyFile: $9b99f2c333371baa$export$c763efb2c06e223f, lchmod: $9b99f2c333371baa$export$4d4374c7ea08c49f, lchown: $9b99f2c333371baa$export$b34a65c440b523a2, link: $9b99f2c333371baa$export$9c30223ca0a664fb, lstat: $9b99f2c333371baa$export$c29f07eab13966a4, mkdir: $9b99f2c333371baa$export$d9fa9670717a639d, mkdtemp: $9b99f2c333371baa$export$bb440dc863a3b46a, open: $9b99f2c333371baa$export$3ce6949f20cea765, readdir: $9b99f2c333371baa$export$b1e07c405f785337, readFile: $9b99f2c333371baa$export$72c04af63de9061a, readlink: $9b99f2c333371baa$export$3d3ca76659ee9f39, realpath: $9b99f2c333371baa$export$9f2c45015a422c45, rename: $9b99f2c333371baa$export$7ac989ec0c9c279, rmdir: $9b99f2c333371baa$export$3f660f6332b9a01d, stat: $9b99f2c333371baa$export$f82f04a91eb6144a, symlink: $9b99f2c333371baa$export$ed42c6f39f07f97, truncate: $9b99f2c333371baa$export$6a506b36fdea397d, unlink: $9b99f2c333371baa$export$5e0808041271ce04, utimes: $9b99f2c333371baa$export$d85d919a687a608f, writeFile: $9b99f2c333371baa$export$552bfb764b5cd2b4 } = $4umf8$fs.promises;\nconst $9b99f2c333371baa$export$a1f77f18af3aebd5 = \"rm\" in $4umf8$fs.promises ? $4umf8$fs.promises.rm : (0, $4umf8$util.promisify)($4umf8$fs.unlink);\n\n});\n\nparcelRegister(\"8nJMC\", function(module, exports) {\nmodule.exports = $61a3fc466617a20f$var$isexe;\n$61a3fc466617a20f$var$isexe.sync = $61a3fc466617a20f$var$sync;\n\nfunction $61a3fc466617a20f$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $61a3fc466617a20f$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $61a3fc466617a20f$var$checkPathExt(path, options);\n}\nfunction $61a3fc466617a20f$var$isexe(path, options, cb) {\n $4umf8$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $61a3fc466617a20f$var$checkStat(stat, path, options));\n });\n}\nfunction $61a3fc466617a20f$var$sync(path, options) {\n return $61a3fc466617a20f$var$checkStat($4umf8$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"lo7XV\", function(module, exports) {\nmodule.exports = $f92204a92aa246f8$var$isexe;\n$f92204a92aa246f8$var$isexe.sync = $f92204a92aa246f8$var$sync;\n\nfunction $f92204a92aa246f8$var$isexe(path, options, cb) {\n $4umf8$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $f92204a92aa246f8$var$checkStat(stat, options));\n });\n}\nfunction $f92204a92aa246f8$var$sync(path, options) {\n return $f92204a92aa246f8$var$checkStat($4umf8$fs.statSync(path), options);\n}\nfunction $f92204a92aa246f8$var$checkStat(stat, options) {\n return stat.isFile() && $f92204a92aa246f8$var$checkMode(stat, options);\n}\nfunction $f92204a92aa246f8$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"dVIKq\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"coVwk\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $dAM2Q = parcelRequire(\"dAM2Q\");\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\nvar $3Ixw1 = parcelRequire(\"3Ixw1\");\n\nvar $5r5vN = parcelRequire(\"5r5vN\");\n\nvar $bDrwm = parcelRequire(\"bDrwm\");\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $2Lh6z = parcelRequire(\"2Lh6z\");\n\nvar $73KaH = parcelRequire(\"73KaH\");\n\nvar $j5Xr5 = parcelRequire(\"j5Xr5\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n\nvar $2QKGl = parcelRequire(\"2QKGl\");\n\nvar $3puHo = parcelRequire(\"3puHo\");\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\n\nvar $hZ1Xd = parcelRequire(\"hZ1Xd\");\n\nvar $3YOIj = parcelRequire(\"3YOIj\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $lTmeS = parcelRequire(\"lTmeS\");\n\nvar $jzqBf = parcelRequire(\"jzqBf\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $84iFB = parcelRequire(\"84iFB\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $4zfp3 = parcelRequire(\"4zfp3\");\n\nvar $ga5uZ = parcelRequire(\"ga5uZ\");\n\nvar $lPGVL = parcelRequire(\"lPGVL\");\n\nvar $1I8AA = parcelRequire(\"1I8AA\");\n\nvar $dBtft = parcelRequire(\"dBtft\");\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\n\nvar $eK4my = parcelRequire(\"eK4my\");\n\nvar $eNXBI = parcelRequire(\"eNXBI\");\n\nvar $kHzUo = parcelRequire(\"kHzUo\");\n\nvar $1x2XZ = parcelRequire(\"1x2XZ\");\n\nvar $hTYir = parcelRequire(\"hTYir\");\nmodule.exports = {\n parse: $cHnHr,\n valid: $2kZmC,\n clean: $3Ixw1,\n inc: $5r5vN,\n diff: $bDrwm,\n major: $lORAA,\n minor: $2Lh6z,\n patch: $73KaH,\n prerelease: $j5Xr5,\n compare: $jDqfd,\n rcompare: $2QKGl,\n compareLoose: $3puHo,\n compareBuild: $7qrQi,\n sort: $hZ1Xd,\n rsort: $3YOIj,\n gt: $cOpcP,\n lt: $58P10,\n eq: $lTmeS,\n neq: $jzqBf,\n gte: $3XWvL,\n lte: $hlfY9,\n cmp: $84iFB,\n coerce: $6v1Be,\n Comparator: $1bxhC,\n Range: $bswWF,\n satisfies: $42oIR,\n toComparators: $4zfp3,\n maxSatisfying: $ga5uZ,\n minSatisfying: $lPGVL,\n minVersion: $1I8AA,\n validRange: $dBtft,\n outside: $83Sp2,\n gtr: $eK4my,\n ltr: $eNXBI,\n intersects: $kHzUo,\n simplifyRange: $1x2XZ,\n subset: $hTYir,\n SemVer: $8cXe9,\n re: $hhSwF.re,\n src: $hhSwF.src,\n tokens: $hhSwF.t,\n SEMVER_SPEC_VERSION: $iXsaM.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $iXsaM.RELEASE_TYPES,\n compareIdentifiers: $dAM2Q.compareIdentifiers,\n rcompareIdentifiers: $dAM2Q.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"hhSwF\", function(module, exports) {\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH = $iXsaM.MAX_SAFE_COMPONENT_LENGTH;\nvar $c95e51e8df9eefc0$require$MAX_SAFE_BUILD_LENGTH = $iXsaM.MAX_SAFE_BUILD_LENGTH;\nvar $c95e51e8df9eefc0$require$MAX_LENGTH = $iXsaM.MAX_LENGTH;\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $c95e51e8df9eefc0$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $c95e51e8df9eefc0$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $jl9Uf(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$c95e51e8df9eefc0$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"iXsaM\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $dcd3973635072855$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $dcd3973635072855$var$MAX_LENGTH = 256;\nconst $dcd3973635072855$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $dcd3973635072855$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $dcd3973635072855$var$MAX_SAFE_BUILD_LENGTH = $dcd3973635072855$var$MAX_LENGTH - 6;\nconst $dcd3973635072855$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $dcd3973635072855$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $dcd3973635072855$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $dcd3973635072855$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $dcd3973635072855$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $dcd3973635072855$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $dcd3973635072855$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"jl9Uf\", function(module, exports) {\nconst $e147a9a67455c3ba$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $e147a9a67455c3ba$var$debug;\n\n});\n\n\nparcelRegister(\"8cXe9\", function(module, exports) {\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $5f9d6307b0a50114$require$MAX_LENGTH = $iXsaM.MAX_LENGTH;\nvar $5f9d6307b0a50114$require$MAX_SAFE_INTEGER = $iXsaM.MAX_SAFE_INTEGER;\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $5f9d6307b0a50114$require$re = $hhSwF.safeRe;\nvar $5f9d6307b0a50114$require$t = $hhSwF.t;\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $dAM2Q = parcelRequire(\"dAM2Q\");\nvar $5f9d6307b0a50114$require$compareIdentifiers = $dAM2Q.compareIdentifiers;\nclass $5f9d6307b0a50114$var$SemVer {\n constructor(version, options){\n options = $5v8m5(options);\n if (version instanceof $5f9d6307b0a50114$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $5f9d6307b0a50114$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$5f9d6307b0a50114$require$MAX_LENGTH} characters`);\n $jl9Uf(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $5f9d6307b0a50114$require$re[$5f9d6307b0a50114$require$t.LOOSE] : $5f9d6307b0a50114$require$re[$5f9d6307b0a50114$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $5f9d6307b0a50114$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $5f9d6307b0a50114$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $jl9Uf(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n return $5f9d6307b0a50114$require$compareIdentifiers(this.major, other.major) || $5f9d6307b0a50114$require$compareIdentifiers(this.minor, other.minor) || $5f9d6307b0a50114$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $jl9Uf(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $5f9d6307b0a50114$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $5f9d6307b0a50114$var$SemVer)) other = new $5f9d6307b0a50114$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $jl9Uf(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $5f9d6307b0a50114$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($5f9d6307b0a50114$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $5f9d6307b0a50114$var$SemVer;\n\n});\nparcelRegister(\"5v8m5\", function(module, exports) {\n// parse out just the options we care about\nconst $4016542f96e2ba13$var$looseOption = Object.freeze({\n loose: true\n});\nconst $4016542f96e2ba13$var$emptyOpts = Object.freeze({});\nconst $4016542f96e2ba13$var$parseOptions = (options)=>{\n if (!options) return $4016542f96e2ba13$var$emptyOpts;\n if (typeof options !== \"object\") return $4016542f96e2ba13$var$looseOption;\n return options;\n};\nmodule.exports = $4016542f96e2ba13$var$parseOptions;\n\n});\n\nparcelRegister(\"dAM2Q\", function(module, exports) {\nconst $9e53e7e486c62584$var$numeric = /^[0-9]+$/;\nconst $9e53e7e486c62584$var$compareIdentifiers = (a, b)=>{\n const anum = $9e53e7e486c62584$var$numeric.test(a);\n const bnum = $9e53e7e486c62584$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $9e53e7e486c62584$var$rcompareIdentifiers = (a, b)=>$9e53e7e486c62584$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $9e53e7e486c62584$var$compareIdentifiers,\n rcompareIdentifiers: $9e53e7e486c62584$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"cHnHr\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $93ebe26cfabaa188$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $8cXe9) return version;\n try {\n return new $8cXe9(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $93ebe26cfabaa188$var$parse;\n\n});\n\nparcelRegister(\"2kZmC\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $1b3d0c95842a233f$var$valid = (version, options)=>{\n const v = $cHnHr(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $1b3d0c95842a233f$var$valid;\n\n});\n\nparcelRegister(\"3Ixw1\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $2b4f7aa592c5a64a$var$clean = (version, options)=>{\n const s = $cHnHr(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $2b4f7aa592c5a64a$var$clean;\n\n});\n\nparcelRegister(\"5r5vN\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $3f53bfe76a8eb8ff$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $8cXe9(version instanceof $8cXe9 ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $3f53bfe76a8eb8ff$var$inc;\n\n});\n\nparcelRegister(\"bDrwm\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $8788af559a97c313$var$diff = (version1, version2)=>{\n const v1 = $cHnHr(version1, null, true);\n const v2 = $cHnHr(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $8788af559a97c313$var$diff;\n\n});\n\nparcelRegister(\"lORAA\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $fe27d62e7e33fa19$var$major = (a, loose)=>new $8cXe9(a, loose).major;\nmodule.exports = $fe27d62e7e33fa19$var$major;\n\n});\n\nparcelRegister(\"2Lh6z\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $202d3d42e88f3c28$var$minor = (a, loose)=>new $8cXe9(a, loose).minor;\nmodule.exports = $202d3d42e88f3c28$var$minor;\n\n});\n\nparcelRegister(\"73KaH\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $523ca0e80014f7d8$var$patch = (a, loose)=>new $8cXe9(a, loose).patch;\nmodule.exports = $523ca0e80014f7d8$var$patch;\n\n});\n\nparcelRegister(\"j5Xr5\", function(module, exports) {\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\nconst $de6c96b3ae4bd129$var$prerelease = (version, options)=>{\n const parsed = $cHnHr(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $de6c96b3ae4bd129$var$prerelease;\n\n});\n\nparcelRegister(\"jDqfd\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $e4b6046aca61f3e2$var$compare = (a, b, loose)=>new $8cXe9(a, loose).compare(new $8cXe9(b, loose));\nmodule.exports = $e4b6046aca61f3e2$var$compare;\n\n});\n\nparcelRegister(\"2QKGl\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $2134a6255f13ad9b$var$rcompare = (a, b, loose)=>$jDqfd(b, a, loose);\nmodule.exports = $2134a6255f13ad9b$var$rcompare;\n\n});\n\nparcelRegister(\"3puHo\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $27bb850ff97b303d$var$compareLoose = (a, b)=>$jDqfd(a, b, true);\nmodule.exports = $27bb850ff97b303d$var$compareLoose;\n\n});\n\nparcelRegister(\"7qrQi\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\nconst $56808f0c5eb5cb5f$var$compareBuild = (a, b, loose)=>{\n const versionA = new $8cXe9(a, loose);\n const versionB = new $8cXe9(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $56808f0c5eb5cb5f$var$compareBuild;\n\n});\n\nparcelRegister(\"hZ1Xd\", function(module, exports) {\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\nconst $d179a636da11b2a4$var$sort = (list, loose)=>list.sort((a, b)=>$7qrQi(a, b, loose));\nmodule.exports = $d179a636da11b2a4$var$sort;\n\n});\n\nparcelRegister(\"3YOIj\", function(module, exports) {\n\nvar $7qrQi = parcelRequire(\"7qrQi\");\nconst $2e5e506179661275$var$rsort = (list, loose)=>list.sort((a, b)=>$7qrQi(b, a, loose));\nmodule.exports = $2e5e506179661275$var$rsort;\n\n});\n\nparcelRegister(\"cOpcP\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $953db4ebd516041a$var$gt = (a, b, loose)=>$jDqfd(a, b, loose) > 0;\nmodule.exports = $953db4ebd516041a$var$gt;\n\n});\n\nparcelRegister(\"58P10\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $3be545aa6e792823$var$lt = (a, b, loose)=>$jDqfd(a, b, loose) < 0;\nmodule.exports = $3be545aa6e792823$var$lt;\n\n});\n\nparcelRegister(\"lTmeS\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $fefffc38ac57fde3$var$eq = (a, b, loose)=>$jDqfd(a, b, loose) === 0;\nmodule.exports = $fefffc38ac57fde3$var$eq;\n\n});\n\nparcelRegister(\"jzqBf\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $e3f5eb5780814ac5$var$neq = (a, b, loose)=>$jDqfd(a, b, loose) !== 0;\nmodule.exports = $e3f5eb5780814ac5$var$neq;\n\n});\n\nparcelRegister(\"3XWvL\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $2e3444e9310d8b16$var$gte = (a, b, loose)=>$jDqfd(a, b, loose) >= 0;\nmodule.exports = $2e3444e9310d8b16$var$gte;\n\n});\n\nparcelRegister(\"hlfY9\", function(module, exports) {\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nconst $ca00c8fc5d60d2c3$var$lte = (a, b, loose)=>$jDqfd(a, b, loose) <= 0;\nmodule.exports = $ca00c8fc5d60d2c3$var$lte;\n\n});\n\nparcelRegister(\"84iFB\", function(module, exports) {\n\nvar $lTmeS = parcelRequire(\"lTmeS\");\n\nvar $jzqBf = parcelRequire(\"jzqBf\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\nconst $5dfd2de80d18eb59$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $lTmeS(a, b, loose);\n case \"!=\":\n return $jzqBf(a, b, loose);\n case \">\":\n return $cOpcP(a, b, loose);\n case \">=\":\n return $3XWvL(a, b, loose);\n case \"<\":\n return $58P10(a, b, loose);\n case \"<=\":\n return $hlfY9(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $5dfd2de80d18eb59$var$cmp;\n\n});\n\nparcelRegister(\"6v1Be\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $cHnHr = parcelRequire(\"cHnHr\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $4bb6e0f4a4724cfe$require$re = $hhSwF.safeRe;\nvar $4bb6e0f4a4724cfe$require$t = $hhSwF.t;\nconst $4bb6e0f4a4724cfe$var$coerce = (version, options)=>{\n if (version instanceof $8cXe9) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCEFULL] : $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCERTLFULL] : $4bb6e0f4a4724cfe$require$re[$4bb6e0f4a4724cfe$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $cHnHr(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $4bb6e0f4a4724cfe$var$coerce;\n\n});\n\nparcelRegister(\"1bxhC\", function(module, exports) {\nconst $0dd0a2e3ba1f64c7$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $0dd0a2e3ba1f64c7$var$Comparator {\n static get ANY() {\n return $0dd0a2e3ba1f64c7$var$ANY;\n }\n constructor(comp, options){\n options = $5v8m5(options);\n if (comp instanceof $0dd0a2e3ba1f64c7$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $jl9Uf(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $0dd0a2e3ba1f64c7$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $jl9Uf(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $0dd0a2e3ba1f64c7$require$re[$0dd0a2e3ba1f64c7$require$t.COMPARATORLOOSE] : $0dd0a2e3ba1f64c7$require$re[$0dd0a2e3ba1f64c7$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $0dd0a2e3ba1f64c7$var$ANY;\n else this.semver = new $8cXe9(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $jl9Uf(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $0dd0a2e3ba1f64c7$var$ANY || version === $0dd0a2e3ba1f64c7$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $8cXe9(version, this.options);\n } catch (er) {\n return false;\n }\n return $84iFB(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $0dd0a2e3ba1f64c7$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $bswWF(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $bswWF(this.value, options).test(comp.semver);\n }\n options = $5v8m5(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($84iFB(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($84iFB(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $0dd0a2e3ba1f64c7$var$Comparator;\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $0dd0a2e3ba1f64c7$require$re = $hhSwF.safeRe;\nvar $0dd0a2e3ba1f64c7$require$t = $hhSwF.t;\n\nvar $84iFB = parcelRequire(\"84iFB\");\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\n});\nparcelRegister(\"bswWF\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $857bdd786d7ea570$var$Range {\n constructor(range, options){\n options = $5v8m5(options);\n if (range instanceof $857bdd786d7ea570$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $857bdd786d7ea570$var$Range(range.raw, options);\n }\n if (range instanceof $1bxhC) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$857bdd786d7ea570$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $857bdd786d7ea570$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $857bdd786d7ea570$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $857bdd786d7ea570$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $857bdd786d7ea570$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.HYPHENRANGELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.HYPHENRANGE];\n range = range.replace(hr, $857bdd786d7ea570$var$hyphenReplace(this.options.includePrerelease));\n $jl9Uf(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.COMPARATORTRIM], $857bdd786d7ea570$require$comparatorTrimReplace);\n $jl9Uf(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDETRIM], $857bdd786d7ea570$require$tildeTrimReplace);\n $jl9Uf(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARETTRIM], $857bdd786d7ea570$require$caretTrimReplace);\n $jl9Uf(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$857bdd786d7ea570$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$857bdd786d7ea570$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $jl9Uf(\"loose invalid filter\", comp, this.options);\n return !!comp.match($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.COMPARATORLOOSE]);\n });\n $jl9Uf(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $1bxhC(comp, this.options));\n for (const comp of comparators){\n if ($857bdd786d7ea570$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $857bdd786d7ea570$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $857bdd786d7ea570$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $857bdd786d7ea570$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $857bdd786d7ea570$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $8cXe9(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($857bdd786d7ea570$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $857bdd786d7ea570$var$Range;\n\nvar $31A6g = parcelRequire(\"31A6g\");\nconst $857bdd786d7ea570$var$cache = new $31A6g({\n max: 1000\n});\n\nvar $5v8m5 = parcelRequire(\"5v8m5\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\n\nvar $jl9Uf = parcelRequire(\"jl9Uf\");\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $hhSwF = parcelRequire(\"hhSwF\");\nvar $857bdd786d7ea570$require$re = $hhSwF.safeRe;\nvar $857bdd786d7ea570$require$t = $hhSwF.t;\nvar $857bdd786d7ea570$require$comparatorTrimReplace = $hhSwF.comparatorTrimReplace;\nvar $857bdd786d7ea570$require$tildeTrimReplace = $hhSwF.tildeTrimReplace;\nvar $857bdd786d7ea570$require$caretTrimReplace = $hhSwF.caretTrimReplace;\n\nvar $iXsaM = parcelRequire(\"iXsaM\");\nvar $857bdd786d7ea570$require$FLAG_INCLUDE_PRERELEASE = $iXsaM.FLAG_INCLUDE_PRERELEASE;\nvar $857bdd786d7ea570$require$FLAG_LOOSE = $iXsaM.FLAG_LOOSE;\nconst $857bdd786d7ea570$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $857bdd786d7ea570$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $857bdd786d7ea570$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $857bdd786d7ea570$var$parseComparator = (comp, options)=>{\n $jl9Uf(\"comp\", comp, options);\n comp = $857bdd786d7ea570$var$replaceCarets(comp, options);\n $jl9Uf(\"caret\", comp);\n comp = $857bdd786d7ea570$var$replaceTildes(comp, options);\n $jl9Uf(\"tildes\", comp);\n comp = $857bdd786d7ea570$var$replaceXRanges(comp, options);\n $jl9Uf(\"xrange\", comp);\n comp = $857bdd786d7ea570$var$replaceStars(comp, options);\n $jl9Uf(\"stars\", comp);\n return comp;\n};\nconst $857bdd786d7ea570$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $857bdd786d7ea570$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceTilde(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $jl9Uf(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($857bdd786d7ea570$var$isX(M)) ret = \"\";\n else if ($857bdd786d7ea570$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $jl9Uf(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $jl9Uf(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $857bdd786d7ea570$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceCaret(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceCaret = (comp, options)=>{\n $jl9Uf(\"caret\", comp, options);\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARETLOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $jl9Uf(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($857bdd786d7ea570$var$isX(M)) ret = \"\";\n else if ($857bdd786d7ea570$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $jl9Uf(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $jl9Uf(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $jl9Uf(\"caret return\", ret);\n return ret;\n });\n};\nconst $857bdd786d7ea570$var$replaceXRanges = (comp, options)=>{\n $jl9Uf(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$857bdd786d7ea570$var$replaceXRange(c, options)).join(\" \");\n};\nconst $857bdd786d7ea570$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.XRANGELOOSE] : $857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $jl9Uf(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $857bdd786d7ea570$var$isX(M);\n const xm = xM || $857bdd786d7ea570$var$isX(m);\n const xp = xm || $857bdd786d7ea570$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $jl9Uf(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $857bdd786d7ea570$var$replaceStars = (comp, options)=>{\n $jl9Uf(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($857bdd786d7ea570$require$re[$857bdd786d7ea570$require$t.STAR], \"\");\n};\nconst $857bdd786d7ea570$var$replaceGTE0 = (comp, options)=>{\n $jl9Uf(\"replaceGTE0\", comp, options);\n return comp.trim().replace($857bdd786d7ea570$require$re[options.includePrerelease ? $857bdd786d7ea570$require$t.GTE0PRE : $857bdd786d7ea570$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $857bdd786d7ea570$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($857bdd786d7ea570$var$isX(fM)) from = \"\";\n else if ($857bdd786d7ea570$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($857bdd786d7ea570$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($857bdd786d7ea570$var$isX(tM)) to = \"\";\n else if ($857bdd786d7ea570$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($857bdd786d7ea570$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $857bdd786d7ea570$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $jl9Uf(set[i].semver);\n if (set[i].semver === $1bxhC.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"31A6g\", function(module, exports) {\n\"use strict\";\n\nvar $i08Cw = parcelRequire(\"i08Cw\");\nconst $233d77d4742ed838$var$MAX = Symbol(\"max\");\nconst $233d77d4742ed838$var$LENGTH = Symbol(\"length\");\nconst $233d77d4742ed838$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $233d77d4742ed838$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $233d77d4742ed838$var$MAX_AGE = Symbol(\"maxAge\");\nconst $233d77d4742ed838$var$DISPOSE = Symbol(\"dispose\");\nconst $233d77d4742ed838$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $233d77d4742ed838$var$LRU_LIST = Symbol(\"lruList\");\nconst $233d77d4742ed838$var$CACHE = Symbol(\"cache\");\nconst $233d77d4742ed838$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $233d77d4742ed838$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $233d77d4742ed838$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$233d77d4742ed838$var$MAX] = options.max || Infinity;\n const lc = options.length || $233d77d4742ed838$var$naiveLength;\n this[$233d77d4742ed838$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $233d77d4742ed838$var$naiveLength : lc;\n this[$233d77d4742ed838$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$233d77d4742ed838$var$MAX_AGE] = options.maxAge || 0;\n this[$233d77d4742ed838$var$DISPOSE] = options.dispose;\n this[$233d77d4742ed838$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$233d77d4742ed838$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$233d77d4742ed838$var$MAX] = mL || Infinity;\n $233d77d4742ed838$var$trim(this);\n }\n get max() {\n return this[$233d77d4742ed838$var$MAX];\n }\n set allowStale(allowStale) {\n this[$233d77d4742ed838$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$233d77d4742ed838$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$233d77d4742ed838$var$MAX_AGE] = mA;\n $233d77d4742ed838$var$trim(this);\n }\n get maxAge() {\n return this[$233d77d4742ed838$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $233d77d4742ed838$var$naiveLength;\n if (lC !== this[$233d77d4742ed838$var$LENGTH_CALCULATOR]) {\n this[$233d77d4742ed838$var$LENGTH_CALCULATOR] = lC;\n this[$233d77d4742ed838$var$LENGTH] = 0;\n this[$233d77d4742ed838$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$233d77d4742ed838$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$233d77d4742ed838$var$LENGTH] += hit.length;\n });\n }\n $233d77d4742ed838$var$trim(this);\n }\n get lengthCalculator() {\n return this[$233d77d4742ed838$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$233d77d4742ed838$var$LENGTH];\n }\n get itemCount() {\n return this[$233d77d4742ed838$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$233d77d4742ed838$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $233d77d4742ed838$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$233d77d4742ed838$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $233d77d4742ed838$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$233d77d4742ed838$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$233d77d4742ed838$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$233d77d4742ed838$var$DISPOSE] && this[$233d77d4742ed838$var$LRU_LIST] && this[$233d77d4742ed838$var$LRU_LIST].length) this[$233d77d4742ed838$var$LRU_LIST].forEach((hit)=>this[$233d77d4742ed838$var$DISPOSE](hit.key, hit.value));\n this[$233d77d4742ed838$var$CACHE] = new Map() // hash of items by key\n ;\n this[$233d77d4742ed838$var$LRU_LIST] = new $i08Cw() // list of items in order of use recency\n ;\n this[$233d77d4742ed838$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$233d77d4742ed838$var$LRU_LIST].map((hit)=>$233d77d4742ed838$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$233d77d4742ed838$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$233d77d4742ed838$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$233d77d4742ed838$var$LENGTH_CALCULATOR](value, key);\n if (this[$233d77d4742ed838$var$CACHE].has(key)) {\n if (len > this[$233d77d4742ed838$var$MAX]) {\n $233d77d4742ed838$var$del(this, this[$233d77d4742ed838$var$CACHE].get(key));\n return false;\n }\n const node = this[$233d77d4742ed838$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$233d77d4742ed838$var$DISPOSE]) {\n if (!this[$233d77d4742ed838$var$NO_DISPOSE_ON_SET]) this[$233d77d4742ed838$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$233d77d4742ed838$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $233d77d4742ed838$var$trim(this);\n return true;\n }\n const hit = new $233d77d4742ed838$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$233d77d4742ed838$var$MAX]) {\n if (this[$233d77d4742ed838$var$DISPOSE]) this[$233d77d4742ed838$var$DISPOSE](key, value);\n return false;\n }\n this[$233d77d4742ed838$var$LENGTH] += hit.length;\n this[$233d77d4742ed838$var$LRU_LIST].unshift(hit);\n this[$233d77d4742ed838$var$CACHE].set(key, this[$233d77d4742ed838$var$LRU_LIST].head);\n $233d77d4742ed838$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$233d77d4742ed838$var$CACHE].has(key)) return false;\n const hit = this[$233d77d4742ed838$var$CACHE].get(key).value;\n return !$233d77d4742ed838$var$isStale(this, hit);\n }\n get(key) {\n return $233d77d4742ed838$var$get(this, key, true);\n }\n peek(key) {\n return $233d77d4742ed838$var$get(this, key, false);\n }\n pop() {\n const node = this[$233d77d4742ed838$var$LRU_LIST].tail;\n if (!node) return null;\n $233d77d4742ed838$var$del(this, node);\n return node.value;\n }\n del(key) {\n $233d77d4742ed838$var$del(this, this[$233d77d4742ed838$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$233d77d4742ed838$var$CACHE].forEach((value, key)=>$233d77d4742ed838$var$get(this, key, false));\n }\n}\nconst $233d77d4742ed838$var$get = (self, key, doUse)=>{\n const node = self[$233d77d4742ed838$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($233d77d4742ed838$var$isStale(self, hit)) {\n $233d77d4742ed838$var$del(self, node);\n if (!self[$233d77d4742ed838$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$233d77d4742ed838$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$233d77d4742ed838$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $233d77d4742ed838$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$233d77d4742ed838$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$233d77d4742ed838$var$MAX_AGE] && diff > self[$233d77d4742ed838$var$MAX_AGE];\n};\nconst $233d77d4742ed838$var$trim = (self)=>{\n if (self[$233d77d4742ed838$var$LENGTH] > self[$233d77d4742ed838$var$MAX]) for(let walker = self[$233d77d4742ed838$var$LRU_LIST].tail; self[$233d77d4742ed838$var$LENGTH] > self[$233d77d4742ed838$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $233d77d4742ed838$var$del(self, walker);\n walker = prev;\n }\n};\nconst $233d77d4742ed838$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$233d77d4742ed838$var$DISPOSE]) self[$233d77d4742ed838$var$DISPOSE](hit.key, hit.value);\n self[$233d77d4742ed838$var$LENGTH] -= hit.length;\n self[$233d77d4742ed838$var$CACHE].delete(hit.key);\n self[$233d77d4742ed838$var$LRU_LIST].removeNode(node);\n }\n};\nclass $233d77d4742ed838$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $233d77d4742ed838$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($233d77d4742ed838$var$isStale(self, hit)) {\n $233d77d4742ed838$var$del(self, node);\n if (!self[$233d77d4742ed838$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $233d77d4742ed838$var$LRUCache;\n\n});\nparcelRegister(\"i08Cw\", function(module, exports) {\n\"use strict\";\nmodule.exports = $d1aee9e840285ba3$var$Yallist;\n$d1aee9e840285ba3$var$Yallist.Node = $d1aee9e840285ba3$var$Node;\n$d1aee9e840285ba3$var$Yallist.create = $d1aee9e840285ba3$var$Yallist;\nfunction $d1aee9e840285ba3$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $d1aee9e840285ba3$var$Yallist)) self = new $d1aee9e840285ba3$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$d1aee9e840285ba3$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$d1aee9e840285ba3$var$push(this, arguments[i]);\n return this.length;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$d1aee9e840285ba3$var$unshift(this, arguments[i]);\n return this.length;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$d1aee9e840285ba3$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$d1aee9e840285ba3$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $d1aee9e840285ba3$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $d1aee9e840285ba3$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $d1aee9e840285ba3$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $d1aee9e840285ba3$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $d1aee9e840285ba3$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$d1aee9e840285ba3$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $d1aee9e840285ba3$var$insert(self, node, value) {\n var inserted = node === self.head ? new $d1aee9e840285ba3$var$Node(value, null, node, self) : new $d1aee9e840285ba3$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $d1aee9e840285ba3$var$push(self, item) {\n self.tail = new $d1aee9e840285ba3$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $d1aee9e840285ba3$var$unshift(self, item) {\n self.head = new $d1aee9e840285ba3$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $d1aee9e840285ba3$var$Node(value, prev, next, list) {\n if (!(this instanceof $d1aee9e840285ba3$var$Node)) return new $d1aee9e840285ba3$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"5MZUR\"))($d1aee9e840285ba3$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"5MZUR\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"42oIR\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $2f0a86b5a65258ab$var$satisfies = (version, range, options)=>{\n try {\n range = new $bswWF(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $2f0a86b5a65258ab$var$satisfies;\n\n});\n\nparcelRegister(\"4zfp3\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\n// Mostly just for testing and legacy API reasons\nconst $3536610e76dfa838$var$toComparators = (range, options)=>new $bswWF(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $3536610e76dfa838$var$toComparators;\n\n});\n\nparcelRegister(\"ga5uZ\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $bc41d878d052b110$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $bswWF(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $8cXe9(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $bc41d878d052b110$var$maxSatisfying;\n\n});\n\nparcelRegister(\"lPGVL\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $fe4fa984faf344fb$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $bswWF(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $8cXe9(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $fe4fa984faf344fb$var$minSatisfying;\n\n});\n\nparcelRegister(\"1I8AA\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\nconst $13f0901f38b9c38e$var$minVersion = (range, loose)=>{\n range = new $bswWF(range, loose);\n let minver = new $8cXe9(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $8cXe9(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $8cXe9(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cOpcP(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cOpcP(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $13f0901f38b9c38e$var$minVersion;\n\n});\n\nparcelRegister(\"dBtft\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $028e47ec34506e56$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $bswWF(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $028e47ec34506e56$var$validRange;\n\n});\n\nparcelRegister(\"83Sp2\", function(module, exports) {\n\nvar $8cXe9 = parcelRequire(\"8cXe9\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\nconst { ANY: $5de8cdd25b195029$var$ANY } = $1bxhC;\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $cOpcP = parcelRequire(\"cOpcP\");\n\nvar $58P10 = parcelRequire(\"58P10\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $3XWvL = parcelRequire(\"3XWvL\");\nconst $5de8cdd25b195029$var$outside = (version, range, hilo, options)=>{\n version = new $8cXe9(version, options);\n range = new $bswWF(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cOpcP;\n ltefn = $hlfY9;\n ltfn = $58P10;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $58P10;\n ltefn = $3XWvL;\n ltfn = $cOpcP;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($42oIR(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $5de8cdd25b195029$var$ANY) comparator = new $1bxhC(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $5de8cdd25b195029$var$outside;\n\n});\n\nparcelRegister(\"eK4my\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\nconst $abb8bee76fa63cbc$var$gtr = (version, range, options)=>$83Sp2(version, range, \">\", options);\nmodule.exports = $abb8bee76fa63cbc$var$gtr;\n\n});\n\nparcelRegister(\"eNXBI\", function(module, exports) {\n\nvar $83Sp2 = parcelRequire(\"83Sp2\");\n// Determine if version is less than all the versions possible in the range\nconst $ac73e10f90b51c3e$var$ltr = (version, range, options)=>$83Sp2(version, range, \"<\", options);\nmodule.exports = $ac73e10f90b51c3e$var$ltr;\n\n});\n\nparcelRegister(\"kHzUo\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\nconst $f123ad78b38d1607$var$intersects = (r1, r2, options)=>{\n r1 = new $bswWF(r1, options);\n r2 = new $bswWF(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $f123ad78b38d1607$var$intersects;\n\n});\n\nparcelRegister(\"1x2XZ\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$jDqfd(a, b, options));\n for (const version of v){\n const included = $42oIR(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"hTYir\", function(module, exports) {\n\nvar $bswWF = parcelRequire(\"bswWF\");\n\nvar $1bxhC = parcelRequire(\"1bxhC\");\nconst { ANY: $d086585c4d9c3926$var$ANY } = $1bxhC;\n\nvar $42oIR = parcelRequire(\"42oIR\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $d086585c4d9c3926$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $bswWF(sub, options);\n dom = new $bswWF(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $d086585c4d9c3926$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $d086585c4d9c3926$var$minimumVersionWithPreRelease = [\n new $1bxhC(\">=0.0.0-0\")\n];\nconst $d086585c4d9c3926$var$minimumVersion = [\n new $1bxhC(\">=0.0.0\")\n];\nconst $d086585c4d9c3926$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $d086585c4d9c3926$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $d086585c4d9c3926$var$ANY) return true;\n else if (options.includePrerelease) sub = $d086585c4d9c3926$var$minimumVersionWithPreRelease;\n else sub = $d086585c4d9c3926$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $d086585c4d9c3926$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $d086585c4d9c3926$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $d086585c4d9c3926$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $d086585c4d9c3926$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $jDqfd(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$42oIR(eq, String(gt), options)) return null;\n if (lt && !$42oIR(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$42oIR(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $d086585c4d9c3926$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$42oIR(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $d086585c4d9c3926$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$42oIR(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $d086585c4d9c3926$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $jDqfd(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $d086585c4d9c3926$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $jDqfd(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $d086585c4d9c3926$var$subset;\n\n});\n\n\nparcelRegister(\"6t4SD\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $4b593c9b16f6bd98$export$f8b9fb4db095815b);\n\nasync function $4b593c9b16f6bd98$export$f8b9fb4db095815b(path) {\n try {\n await (0, $4umf8$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $4b593c9b16f6bd98$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($4umf8$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"8CJZb\", function(module, exports) {\n\"use strict\";\nvar $64758b2fa15e88f6$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($64758b2fa15e88f6$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"eAXk4\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $3d8ba83a43ccecc4$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $3d8ba83a43ccecc4$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $3d8ba83a43ccecc4$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $4umf8$path.dirname);\n$parcel$export(module.exports, \"join\", () => $4umf8$path.join);\n\n\nvar $f44Uw = parcelRequire(\"f44Uw\");\n\nvar $fBJE3 = parcelRequire(\"fBJE3\");\nfunction $3d8ba83a43ccecc4$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $3d8ba83a43ccecc4$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $3d8ba83a43ccecc4$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $4umf8$path.basename)(e) : (0, $4umf8$path.basename)(e, (0, $4umf8$path.extname)(e));\n}\nfunction $3d8ba83a43ccecc4$export$873fead74fe2f1ff(e) {\n return (0, $4umf8$path.normalize)(e).replace(RegExp((0, $f44Uw.default)((0, $4umf8$path.sep)) + \"$\"), \"\");\n}\nfunction $3d8ba83a43ccecc4$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3d8ba83a43ccecc4$export$3e333f8cb13439c(e, a) {\n const r = (0, $4umf8$path.extname)(e), s = `${a}${(0, $4umf8$path.basename)(e, r)}${r}`;\n return (0, $4umf8$path.join)((0, $4umf8$path.dirname)(e), s);\n}\nfunction $3d8ba83a43ccecc4$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $4umf8$path.extname)(e), s = `${(0, $4umf8$path.basename)(e, r)}${a}${r}`;\n return (0, $4umf8$path.join)((0, $4umf8$path.dirname)(e), s);\n}\nfunction $3d8ba83a43ccecc4$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3d8ba83a43ccecc4$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $3d8ba83a43ccecc4$export$19c5468f88f6e968(e) {\n const a = (0, $4umf8$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $3d8ba83a43ccecc4$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($fBJE3)))(e, a);\n}\nfunction $3d8ba83a43ccecc4$export$7d0573375890d05c(e, a) {\n const r = (0, $4umf8$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $4umf8$path.sep)) || r === (0, $4umf8$path.resolve)(e));\n}\nvar $3d8ba83a43ccecc4$var$O = {}, $3d8ba83a43ccecc4$var$R = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$R, \"name\", ()=>$3d8ba83a43ccecc4$export$a8ff84c12d48cfa6);\nvar $3d8ba83a43ccecc4$var$A = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$A, \"normalizeTrim\", ()=>$3d8ba83a43ccecc4$export$873fead74fe2f1ff);\nvar $3d8ba83a43ccecc4$var$I = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$I, \"addExeExt\", ()=>$3d8ba83a43ccecc4$export$2d20c564cade3c93);\nvar $3d8ba83a43ccecc4$var$T = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$T, \"addNamePrefix\", ()=>$3d8ba83a43ccecc4$export$3e333f8cb13439c);\nvar $3d8ba83a43ccecc4$var$_ = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$_, \"addNameSuffix\", ()=>$3d8ba83a43ccecc4$export$3b60a3e9bd1aef9d);\nvar $3d8ba83a43ccecc4$var$k = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$k, \"addShExt\", ()=>$3d8ba83a43ccecc4$export$609be29b80b555e1);\nvar $3d8ba83a43ccecc4$var$M = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$M, \"addShRelativePrefix\", ()=>$3d8ba83a43ccecc4$export$e1f23f8d3e53fe6);\nvar $3d8ba83a43ccecc4$var$W = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$W, \"removeExt\", ()=>$3d8ba83a43ccecc4$export$19c5468f88f6e968);\nvar $3d8ba83a43ccecc4$var$q = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$q, \"replaceExt\", ()=>$3d8ba83a43ccecc4$export$e9c34737ac8e53d2);\nvar $3d8ba83a43ccecc4$var$B = {};\n$3d8ba83a43ccecc4$var$a($3d8ba83a43ccecc4$var$B, \"isPathInside\", ()=>$3d8ba83a43ccecc4$export$7d0573375890d05c), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$R), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$A), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$I), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$T), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$_), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$k), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$M), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$W), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$q), $3d8ba83a43ccecc4$var$e($3d8ba83a43ccecc4$var$O, $3d8ba83a43ccecc4$var$B);\n\n});\nparcelRegister(\"f44Uw\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $af7b09e757bea83c$export$2e2bcd8739ae039);\nfunction $af7b09e757bea83c$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"fBJE3\", function(module, exports) {\n\"use strict\";\n\nfunction $b5cdb7e29045d953$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $4umf8$path.basename(npath, $4umf8$path.extname(npath)) + ext;\n var nFilepath = $4umf8$path.join($4umf8$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($b5cdb7e29045d953$var$startsWithSingleDot(npath)) return \".\" + $4umf8$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $b5cdb7e29045d953$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $4umf8$path.sep || first2chars === \"./\";\n}\nmodule.exports = $b5cdb7e29045d953$var$replaceExt;\n\n});\n\n\nparcelRegister(\"zdagz\", function(module, exports) {\n\"use strict\";\nvar $069d7b36246212b5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $069d7b36246212b5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $069d7b36246212b5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $069d7b36246212b5$var$__createBinding(result, mod, k);\n }\n $069d7b36246212b5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $069d7b36246212b5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $069d7b36246212b5$var$path = $069d7b36246212b5$var$__importStar($4umf8$path);\n\nconst $069d7b36246212b5$var$ioUtil = $069d7b36246212b5$var$__importStar((parcelRequire(\"fwMQK\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $069d7b36246212b5$var$cp(source, dest, options = {}) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $069d7b36246212b5$var$readCopyOptions(options);\n const destStat = (yield $069d7b36246212b5$var$ioUtil.exists(dest)) ? yield $069d7b36246212b5$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $069d7b36246212b5$var$path.join(dest, $069d7b36246212b5$var$path.basename(source)) : dest;\n if (!(yield $069d7b36246212b5$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $069d7b36246212b5$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $069d7b36246212b5$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($069d7b36246212b5$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $069d7b36246212b5$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $069d7b36246212b5$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $069d7b36246212b5$var$mv(source, dest, options = {}) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $069d7b36246212b5$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $069d7b36246212b5$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $069d7b36246212b5$var$path.join(dest, $069d7b36246212b5$var$path.basename(source));\n destExists = yield $069d7b36246212b5$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $069d7b36246212b5$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $069d7b36246212b5$var$mkdirP($069d7b36246212b5$var$path.dirname(dest));\n yield $069d7b36246212b5$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $069d7b36246212b5$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $069d7b36246212b5$var$rmRF(inputPath) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $069d7b36246212b5$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $069d7b36246212b5$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $069d7b36246212b5$var$mkdirP(fsPath) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok(fsPath, \"a path argument must be provided\");\n yield $069d7b36246212b5$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $069d7b36246212b5$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $069d7b36246212b5$var$which(tool, check) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $069d7b36246212b5$var$which(tool, false);\n if (!result) {\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $069d7b36246212b5$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $069d7b36246212b5$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $069d7b36246212b5$var$findInPath(tool) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($069d7b36246212b5$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($069d7b36246212b5$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($069d7b36246212b5$var$ioUtil.isRooted(tool)) {\n const filePath = yield $069d7b36246212b5$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($069d7b36246212b5$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($069d7b36246212b5$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $069d7b36246212b5$var$ioUtil.tryGetExecutablePath($069d7b36246212b5$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $069d7b36246212b5$var$findInPath;\nfunction $069d7b36246212b5$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $069d7b36246212b5$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $069d7b36246212b5$var$mkdirP(destDir);\n const files = yield $069d7b36246212b5$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $069d7b36246212b5$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $069d7b36246212b5$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $069d7b36246212b5$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $069d7b36246212b5$var$ioUtil.chmod(destDir, (yield $069d7b36246212b5$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $069d7b36246212b5$var$copyFile(srcFile, destFile, force) {\n return $069d7b36246212b5$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $069d7b36246212b5$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $069d7b36246212b5$var$ioUtil.lstat(destFile);\n yield $069d7b36246212b5$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $069d7b36246212b5$var$ioUtil.chmod(destFile, \"0666\");\n yield $069d7b36246212b5$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $069d7b36246212b5$var$ioUtil.readlink(srcFile);\n yield $069d7b36246212b5$var$ioUtil.symlink(symlinkFull, destFile, $069d7b36246212b5$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $069d7b36246212b5$var$ioUtil.exists(destFile)) || force) yield $069d7b36246212b5$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"fwMQK\", function(module, exports) {\n\"use strict\";\nvar $b4dfbcbe65695fe8$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $b4dfbcbe65695fe8$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $b4dfbcbe65695fe8$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $b4dfbcbe65695fe8$var$__createBinding(result, mod, k);\n }\n $b4dfbcbe65695fe8$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $b4dfbcbe65695fe8$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $b4dfbcbe65695fe8$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $b4dfbcbe65695fe8$var$fs = $b4dfbcbe65695fe8$var$__importStar($4umf8$fs);\n\nconst $b4dfbcbe65695fe8$var$path = $b4dfbcbe65695fe8$var$__importStar($4umf8$path);\n$b4dfbcbe65695fe8$var$_a = $b4dfbcbe65695fe8$var$fs.promises, module.exports.chmod = $b4dfbcbe65695fe8$var$_a.chmod, module.exports.copyFile = $b4dfbcbe65695fe8$var$_a.copyFile, module.exports.lstat = $b4dfbcbe65695fe8$var$_a.lstat, module.exports.mkdir = $b4dfbcbe65695fe8$var$_a.mkdir, module.exports.open = $b4dfbcbe65695fe8$var$_a.open, module.exports.readdir = $b4dfbcbe65695fe8$var$_a.readdir, module.exports.readlink = $b4dfbcbe65695fe8$var$_a.readlink, module.exports.rename = $b4dfbcbe65695fe8$var$_a.rename, module.exports.rm = $b4dfbcbe65695fe8$var$_a.rm, module.exports.rmdir = $b4dfbcbe65695fe8$var$_a.rmdir, module.exports.stat = $b4dfbcbe65695fe8$var$_a.stat, module.exports.symlink = $b4dfbcbe65695fe8$var$_a.symlink, module.exports.unlink = $b4dfbcbe65695fe8$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $b4dfbcbe65695fe8$var$fs.constants.O_RDONLY;\nfunction $b4dfbcbe65695fe8$var$exists(fsPath) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $b4dfbcbe65695fe8$var$exists;\nfunction $b4dfbcbe65695fe8$var$isDirectory(fsPath, useStat = false) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $b4dfbcbe65695fe8$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $b4dfbcbe65695fe8$var$isRooted(p) {\n p = $b4dfbcbe65695fe8$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $b4dfbcbe65695fe8$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $b4dfbcbe65695fe8$var$tryGetExecutablePath(filePath, extensions) {\n return $b4dfbcbe65695fe8$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $b4dfbcbe65695fe8$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($b4dfbcbe65695fe8$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $b4dfbcbe65695fe8$var$path.dirname(filePath);\n const upperName = $b4dfbcbe65695fe8$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $b4dfbcbe65695fe8$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($b4dfbcbe65695fe8$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $b4dfbcbe65695fe8$var$tryGetExecutablePath;\nfunction $b4dfbcbe65695fe8$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $b4dfbcbe65695fe8$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $b4dfbcbe65695fe8$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $b4dfbcbe65695fe8$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"gn8Si\", function(module, exports) {\n\"use strict\";\nvar $beb5ada45dfdd93d$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $beb5ada45dfdd93d$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $beb5ada45dfdd93d$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $beb5ada45dfdd93d$var$__createBinding(result, mod, k);\n }\n $beb5ada45dfdd93d$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $beb5ada45dfdd93d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $beb5ada45dfdd93d$var$semver = $beb5ada45dfdd93d$var$__importStar((parcelRequire(\"0306Y\")));\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\n\nfunction $beb5ada45dfdd93d$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $beb5ada45dfdd93d$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $4umf8$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $1o3Gj.debug(`check ${version} satisfies ${versionSpec}`);\n if ($beb5ada45dfdd93d$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $1o3Gj.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $beb5ada45dfdd93d$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $1o3Gj.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $beb5ada45dfdd93d$var$_findMatch;\nfunction $beb5ada45dfdd93d$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $4umf8$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $4umf8$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $beb5ada45dfdd93d$var$_getOsVersion;\nfunction $beb5ada45dfdd93d$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($4umf8$fs.existsSync(lsbReleaseFile)) contents = $4umf8$fs.readFileSync(lsbReleaseFile).toString();\n else if ($4umf8$fs.existsSync(osReleaseFile)) contents = $4umf8$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $beb5ada45dfdd93d$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"0306Y\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"GX8zo\", function(module, exports) {\n\nvar $7qQbq = parcelRequire(\"7qQbq\");\n\nvar $c22IK = parcelRequire(\"c22IK\");\nfunction $0811cbc79176afae$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $7qQbq)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $c22IK(rnds);\n}\nmodule.exports = $0811cbc79176afae$var$v4;\n\n});\nparcelRegister(\"7qQbq\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $4umf8$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"c22IK\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $8c27c83ef5b4f27e$var$byteToHex = [];\nfor(var $8c27c83ef5b4f27e$var$i = 0; $8c27c83ef5b4f27e$var$i < 256; ++$8c27c83ef5b4f27e$var$i)$8c27c83ef5b4f27e$var$byteToHex[$8c27c83ef5b4f27e$var$i] = ($8c27c83ef5b4f27e$var$i + 0x100).toString(16).substr(1);\nfunction $8c27c83ef5b4f27e$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $8c27c83ef5b4f27e$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $8c27c83ef5b4f27e$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"bHzmH\", function(module, exports) {\n\"use strict\";\nvar $884f249efde1efb4$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $884f249efde1efb4$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $884f249efde1efb4$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $884f249efde1efb4$var$__createBinding(result, mod, k);\n }\n $884f249efde1efb4$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $884f249efde1efb4$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $884f249efde1efb4$var$tr = $884f249efde1efb4$var$__importStar((parcelRequire(\"iYbsa\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $884f249efde1efb4$var$exec(commandLine, args, options) {\n return $884f249efde1efb4$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $884f249efde1efb4$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $884f249efde1efb4$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $884f249efde1efb4$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $884f249efde1efb4$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $884f249efde1efb4$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $4umf8$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $4umf8$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $884f249efde1efb4$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $884f249efde1efb4$var$getExecOutput;\n\n});\nparcelRegister(\"iYbsa\", function(module, exports) {\n\"use strict\";\nvar $dcf6b6fa3b8725c1$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $dcf6b6fa3b8725c1$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $dcf6b6fa3b8725c1$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $dcf6b6fa3b8725c1$var$__createBinding(result, mod, k);\n }\n $dcf6b6fa3b8725c1$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $dcf6b6fa3b8725c1$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $dcf6b6fa3b8725c1$var$os = $dcf6b6fa3b8725c1$var$__importStar($4umf8$os);\n\nconst $dcf6b6fa3b8725c1$var$events = $dcf6b6fa3b8725c1$var$__importStar($4umf8$events);\n\nconst $dcf6b6fa3b8725c1$var$child = $dcf6b6fa3b8725c1$var$__importStar($4umf8$child_process);\n\nconst $dcf6b6fa3b8725c1$var$path = $dcf6b6fa3b8725c1$var$__importStar($4umf8$path);\n\nconst $dcf6b6fa3b8725c1$var$io = $dcf6b6fa3b8725c1$var$__importStar((parcelRequire(\"zdagz\")));\n\nconst $dcf6b6fa3b8725c1$var$ioUtil = $dcf6b6fa3b8725c1$var$__importStar((parcelRequire(\"fwMQK\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $dcf6b6fa3b8725c1$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $dcf6b6fa3b8725c1$var$ToolRunner extends $dcf6b6fa3b8725c1$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($dcf6b6fa3b8725c1$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $dcf6b6fa3b8725c1$var$os.EOL.length);\n n = s.indexOf($dcf6b6fa3b8725c1$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($dcf6b6fa3b8725c1$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $dcf6b6fa3b8725c1$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$dcf6b6fa3b8725c1$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $dcf6b6fa3b8725c1$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $dcf6b6fa3b8725c1$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $dcf6b6fa3b8725c1$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$dcf6b6fa3b8725c1$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $dcf6b6fa3b8725c1$var$os.EOL);\n const state = new $dcf6b6fa3b8725c1$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $dcf6b6fa3b8725c1$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $dcf6b6fa3b8725c1$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $dcf6b6fa3b8725c1$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $dcf6b6fa3b8725c1$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $dcf6b6fa3b8725c1$var$argStringToArray;\nclass $dcf6b6fa3b8725c1$var$ExecState extends $dcf6b6fa3b8725c1$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $4umf8$timers.setTimeout($dcf6b6fa3b8725c1$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"fEioR\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.1abb15a9.js\")).then(()=>parcelRequire(\"8L9T2\"));\n\n});\n\nparcelRegister(\"aWBYj\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.09e25805.js\")).then(()=>parcelRequire(\"1PWvB\"));\n\n});\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6OFKY = parcelRequire(\"6OFKY\");\nvar $4af6780aae15e7aa$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"kswPT\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($4af6780aae15e7aa$exports);\n\n\nvar $d8d049814738d806$exports = {};\n\n$d8d049814738d806$exports = (parcelRequire(\"foOBZ\"));\n\n\nvar $320f558e5d3a9246$exports = {};\n$320f558e5d3a9246$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $71cfef4812d1fa23$exports = {};\nvar $8af98396df2af8bc$exports = {};\n\n$parcel$export($8af98396df2af8bc$exports, \"isexe\", () => $8af98396df2af8bc$export$35888d6059c232d4);\n$parcel$export($8af98396df2af8bc$exports, \"sync\", () => $8af98396df2af8bc$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $2Bbmx = parcelRequire(\"2Bbmx\");\nconst $8af98396df2af8bc$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $8af98396df2af8bc$var$checkStat(await (0, $2Bbmx.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $8af98396df2af8bc$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $8af98396df2af8bc$var$checkStat((0, $4umf8$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $8af98396df2af8bc$var$checkStat = (stat, options)=>stat.isFile() && $8af98396df2af8bc$var$checkMode(stat, options);\nconst $8af98396df2af8bc$var$checkMode = (stat, options)=>{\n var _process_getuid, _process, _process_getgroups, _process1, _process_getgid, _process2;\n var _options_uid;\n const myUid = (_options_uid = options.uid) !== null && _options_uid !== void 0 ? _options_uid : (_process_getuid = (_process = process).getuid) === null || _process_getuid === void 0 ? void 0 : _process_getuid.call(_process);\n var _options_groups, _ref;\n const myGroups = (_ref = (_options_groups = options.groups) !== null && _options_groups !== void 0 ? _options_groups : (_process_getgroups = (_process1 = process).getgroups) === null || _process_getgroups === void 0 ? void 0 : _process_getgroups.call(_process1)) !== null && _ref !== void 0 ? _ref : [];\n var _options_gid, _ref1;\n const myGid = (_ref1 = (_options_gid = options.gid) !== null && _options_gid !== void 0 ? _options_gid : (_process_getgid = (_process2 = process).getgid) === null || _process_getgid === void 0 ? void 0 : _process_getgid.call(_process2)) !== null && _ref1 !== void 0 ? _ref1 : myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $846949ba2799f237$exports = {};\n\n$parcel$export($846949ba2799f237$exports, \"isexe\", () => $846949ba2799f237$export$35888d6059c232d4);\n$parcel$export($846949ba2799f237$exports, \"sync\", () => $846949ba2799f237$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $2Bbmx = parcelRequire(\"2Bbmx\");\nconst $846949ba2799f237$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $846949ba2799f237$var$checkStat(await (0, $2Bbmx.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $846949ba2799f237$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $846949ba2799f237$var$checkStat((0, $4umf8$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $846949ba2799f237$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $846949ba2799f237$var$checkStat = (stat, path, options)=>stat.isFile() && $846949ba2799f237$var$checkPathExt(path, options);\n\n\n\n\nconst $946052d434158cfa$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $946052d434158cfa$var$impl = $946052d434158cfa$var$platform === \"win32\" ? $846949ba2799f237$exports : $8af98396df2af8bc$exports;\nconst $946052d434158cfa$export$35888d6059c232d4 = $946052d434158cfa$var$impl.isexe;\nconst $946052d434158cfa$export$92d6409d68f0739a = $946052d434158cfa$var$impl.sync;\n\n\nvar $71cfef4812d1fa23$require$isexe = $946052d434158cfa$export$35888d6059c232d4;\nvar $71cfef4812d1fa23$require$isexeSync = $946052d434158cfa$export$92d6409d68f0739a;\n\nvar $71cfef4812d1fa23$require$join = $4umf8$path.join;\nvar $71cfef4812d1fa23$require$delimiter = $4umf8$path.delimiter;\nvar $71cfef4812d1fa23$require$sep = $4umf8$path.sep;\nvar $71cfef4812d1fa23$require$posix = $4umf8$path.posix;\nconst $71cfef4812d1fa23$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $71cfef4812d1fa23$var$rSlash = new RegExp(`[${$71cfef4812d1fa23$require$posix.sep}${$71cfef4812d1fa23$require$sep === $71cfef4812d1fa23$require$posix.sep ? \"\" : $71cfef4812d1fa23$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $71cfef4812d1fa23$var$rRel = new RegExp(`^\\\\.${$71cfef4812d1fa23$var$rSlash.source}`);\nconst $71cfef4812d1fa23$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $71cfef4812d1fa23$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $71cfef4812d1fa23$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($71cfef4812d1fa23$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$71cfef4812d1fa23$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($71cfef4812d1fa23$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $71cfef4812d1fa23$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $71cfef4812d1fa23$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $71cfef4812d1fa23$require$join(pathPart, cmd);\n};\nconst $71cfef4812d1fa23$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $71cfef4812d1fa23$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $71cfef4812d1fa23$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $71cfef4812d1fa23$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $71cfef4812d1fa23$var$getNotFoundError(cmd);\n};\nconst $71cfef4812d1fa23$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $71cfef4812d1fa23$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $71cfef4812d1fa23$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $71cfef4812d1fa23$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $71cfef4812d1fa23$var$getNotFoundError(cmd);\n};\n$71cfef4812d1fa23$exports = $71cfef4812d1fa23$var$which;\n$71cfef4812d1fa23$var$which.sync = $71cfef4812d1fa23$var$whichSync;\n\n\n\n\n\n\nvar $f22b5c1f790abcb5$exports = {};\n\"use strict\";\n\nvar $8c1978633592301d$exports = {};\n\"use strict\";\n\nvar $b2fe26769d516fdd$exports = {};\n\"use strict\";\n\nvar $677fb043cca6421d$exports = {};\nconst $677fb043cca6421d$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $677fb043cca6421d$var$COLON = $677fb043cca6421d$var$isWindows ? \";\" : \":\";\nvar $e24c7282838da7f2$exports = {};\n\nvar $e24c7282838da7f2$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $e24c7282838da7f2$var$core = (parcelRequire(\"8nJMC\"));\nelse $e24c7282838da7f2$var$core = (parcelRequire(\"lo7XV\"));\n$e24c7282838da7f2$exports = $e24c7282838da7f2$var$isexe;\n$e24c7282838da7f2$var$isexe.sync = $e24c7282838da7f2$var$sync;\nfunction $e24c7282838da7f2$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $e24c7282838da7f2$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $e24c7282838da7f2$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $e24c7282838da7f2$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $e24c7282838da7f2$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $677fb043cca6421d$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $677fb043cca6421d$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $677fb043cca6421d$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $677fb043cca6421d$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$677fb043cca6421d$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $677fb043cca6421d$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $677fb043cca6421d$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($677fb043cca6421d$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $677fb043cca6421d$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $677fb043cca6421d$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($677fb043cca6421d$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $4umf8$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $e24c7282838da7f2$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $677fb043cca6421d$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $677fb043cca6421d$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $4umf8$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $e24c7282838da7f2$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $677fb043cca6421d$var$getNotFoundError(cmd);\n};\n$677fb043cca6421d$exports = $677fb043cca6421d$var$which;\n$677fb043cca6421d$var$which.sync = $677fb043cca6421d$var$whichSync;\n\n\nvar $f1390e37bcd58ff2$exports = {};\n\"use strict\";\nconst $f1390e37bcd58ff2$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$f1390e37bcd58ff2$exports = $f1390e37bcd58ff2$var$pathKey;\n// TODO: Remove this for the next major release\n$f1390e37bcd58ff2$exports.default = $f1390e37bcd58ff2$var$pathKey;\n\n\nfunction $b2fe26769d516fdd$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $677fb043cca6421d$exports.sync(parsed.command, {\n path: env[$f1390e37bcd58ff2$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $4umf8$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $4umf8$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $b2fe26769d516fdd$var$resolveCommand(parsed) {\n return $b2fe26769d516fdd$var$resolveCommandAttempt(parsed) || $b2fe26769d516fdd$var$resolveCommandAttempt(parsed, true);\n}\n$b2fe26769d516fdd$exports = $b2fe26769d516fdd$var$resolveCommand;\n\n\nvar $93aa50921a1257d7$export$ae50443ffc990749;\nvar $93aa50921a1257d7$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $93aa50921a1257d7$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $93aa50921a1257d7$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $93aa50921a1257d7$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($93aa50921a1257d7$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$93aa50921a1257d7$export$ae50443ffc990749 = $93aa50921a1257d7$var$escapeCommand;\n$93aa50921a1257d7$export$6ea29ee575e3f5ff = $93aa50921a1257d7$var$escapeArgument;\n\n\nvar $3056528198dd0fdd$exports = {};\n\"use strict\";\n\nvar $2bb2d8045bb7ac8d$exports = {};\n\"use strict\";\nvar $5fd1064c977602bc$exports = {};\n\"use strict\";\n$5fd1064c977602bc$exports = /^#!(.*)/;\n\n\n$2bb2d8045bb7ac8d$exports = (string = \"\")=>{\n const match = string.match($5fd1064c977602bc$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $3056528198dd0fdd$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $4umf8$fs.openSync(command, \"r\");\n $4umf8$fs.readSync(fd, buffer, 0, size, 0);\n $4umf8$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $2bb2d8045bb7ac8d$exports(buffer.toString());\n}\n$3056528198dd0fdd$exports = $3056528198dd0fdd$var$readShebang;\n\n\nconst $8c1978633592301d$var$isWin = process.platform === \"win32\";\nconst $8c1978633592301d$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $8c1978633592301d$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $8c1978633592301d$var$detectShebang(parsed) {\n parsed.file = $b2fe26769d516fdd$exports(parsed);\n const shebang = parsed.file && $3056528198dd0fdd$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $b2fe26769d516fdd$exports(parsed);\n }\n return parsed.file;\n}\nfunction $8c1978633592301d$var$parseNonShell(parsed) {\n if (!$8c1978633592301d$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $8c1978633592301d$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$8c1978633592301d$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $8c1978633592301d$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $4umf8$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $93aa50921a1257d7$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$93aa50921a1257d7$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $8c1978633592301d$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $8c1978633592301d$var$parseNonShell(parsed);\n}\n$8c1978633592301d$exports = $8c1978633592301d$var$parse;\n\n\nvar $f5cfbc89fd9aa1f8$exports = {};\n\"use strict\";\nconst $f5cfbc89fd9aa1f8$var$isWin = process.platform === \"win32\";\nfunction $f5cfbc89fd9aa1f8$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $f5cfbc89fd9aa1f8$var$hookChildProcess(cp, parsed) {\n if (!$f5cfbc89fd9aa1f8$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $f5cfbc89fd9aa1f8$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $f5cfbc89fd9aa1f8$var$verifyENOENT(status, parsed) {\n if ($f5cfbc89fd9aa1f8$var$isWin && status === 1 && !parsed.file) return $f5cfbc89fd9aa1f8$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $f5cfbc89fd9aa1f8$var$verifyENOENTSync(status, parsed) {\n if ($f5cfbc89fd9aa1f8$var$isWin && status === 1 && !parsed.file) return $f5cfbc89fd9aa1f8$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$f5cfbc89fd9aa1f8$exports = {\n hookChildProcess: $f5cfbc89fd9aa1f8$var$hookChildProcess,\n verifyENOENT: $f5cfbc89fd9aa1f8$var$verifyENOENT,\n verifyENOENTSync: $f5cfbc89fd9aa1f8$var$verifyENOENTSync,\n notFoundError: $f5cfbc89fd9aa1f8$var$notFoundError\n};\n\n\nfunction $f22b5c1f790abcb5$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $8c1978633592301d$exports(command, args, options);\n // Spawn the child process\n const spawned = $4umf8$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $f5cfbc89fd9aa1f8$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $f22b5c1f790abcb5$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $8c1978633592301d$exports(command, args, options);\n // Spawn the child process\n const result = $4umf8$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $f5cfbc89fd9aa1f8$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$f22b5c1f790abcb5$exports = $f22b5c1f790abcb5$var$spawn;\n$f22b5c1f790abcb5$exports.spawn = $f22b5c1f790abcb5$var$spawn;\n$f22b5c1f790abcb5$exports.sync = $f22b5c1f790abcb5$var$spawnSync;\n$f22b5c1f790abcb5$exports._parse = $8c1978633592301d$exports;\n$f22b5c1f790abcb5$exports._enoent = $f5cfbc89fd9aa1f8$exports;\n\n\nfunction $e53d23f0d89b737e$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $30c4ee1231df0618$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $e525b4839dd67f68$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($4umf8$nodeprocess))).env[(0, $30c4ee1231df0618$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($4umf8$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($4umf8$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($4umf8$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($4umf8$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($4umf8$nodepath))).delimiter);\n}\nfunction $e525b4839dd67f68$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($4umf8$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $30c4ee1231df0618$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $e525b4839dd67f68$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $864c61f3265971fc$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$864c61f3265971fc$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $864c61f3265971fc$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $864c61f3265971fc$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $864c61f3265971fc$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $864c61f3265971fc$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $864c61f3265971fc$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $864c61f3265971fc$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $864c61f3265971fc$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $864c61f3265971fc$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$864c61f3265971fc$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $864c61f3265971fc$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$864c61f3265971fc$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $864c61f3265971fc$var$changePrototype(to, from);\n $864c61f3265971fc$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $b5bce385de6ade9f$var$calledFunctions = new WeakMap();\nconst $b5bce385de6ade9f$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $b5bce385de6ade9f$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $864c61f3265971fc$export$2e2bcd8739ae039)(onetime, function_);\n $b5bce385de6ade9f$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$b5bce385de6ade9f$var$onetime.callCount = (function_)=>{\n if (!$b5bce385de6ade9f$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $b5bce385de6ade9f$var$calledFunctions.get(function_);\n};\nvar $b5bce385de6ade9f$export$2e2bcd8739ae039 = $b5bce385de6ade9f$var$onetime;\n\n\n\n\nconst $be1c1e49c510b419$export$e221a98f4fd84d36 = ()=>{\n const length = $be1c1e49c510b419$export$dc8812f2f8882ff4 - $be1c1e49c510b419$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $be1c1e49c510b419$var$getRealtimeSignal);\n};\nconst $be1c1e49c510b419$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $be1c1e49c510b419$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $be1c1e49c510b419$var$SIGRTMIN = 34;\nconst $be1c1e49c510b419$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $849cd5404bf0c241$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $ee1bf5b9ef1a9de6$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $be1c1e49c510b419$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $849cd5404bf0c241$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($ee1bf5b9ef1a9de6$var$normalizeSignal);\n return signals;\n};\nconst $ee1bf5b9ef1a9de6$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $4umf8$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $694b1b79847eac4d$var$getSignalsByName = ()=>{\n const signals = (0, $ee1bf5b9ef1a9de6$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($694b1b79847eac4d$var$getSignalByName));\n};\nconst $694b1b79847eac4d$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $694b1b79847eac4d$export$c3fcb39d6848c78d = $694b1b79847eac4d$var$getSignalsByName();\nconst $694b1b79847eac4d$var$getSignalsByNumber = ()=>{\n const signals = (0, $ee1bf5b9ef1a9de6$export$c50078d4faa171f0)();\n const length = (0, $be1c1e49c510b419$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$694b1b79847eac4d$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $694b1b79847eac4d$var$getSignalByNumber = (number, signals)=>{\n const signal = $694b1b79847eac4d$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $694b1b79847eac4d$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $4umf8$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $694b1b79847eac4d$export$12f57f97a08d2468 = $694b1b79847eac4d$var$getSignalsByNumber();\n\n\nconst $9224ad52d9f78dbc$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $694b1b79847eac4d$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $9224ad52d9f78dbc$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $fd3489326ee71e7b$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $fd3489326ee71e7b$var$hasAlias = (options)=>$fd3489326ee71e7b$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $fd3489326ee71e7b$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $fd3489326ee71e7b$var$aliases.map((alias)=>options[alias]);\n if ($fd3489326ee71e7b$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$fd3489326ee71e7b$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $fd3489326ee71e7b$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $fd3489326ee71e7b$export$889423b478ae2ba = (options)=>{\n const stdio = $fd3489326ee71e7b$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $fe4c43f2e8a7f558$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $fe4c43f2e8a7f558$var$process = $parcel$global.process;\nconst $fe4c43f2e8a7f558$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($fe4c43f2e8a7f558$var$process)) $fe4c43f2e8a7f558$exports = function() {\n return function() {};\n};\nelse {\n var $fe4c43f2e8a7f558$var$assert = $4umf8$assert;\n var $fe4c43f2e8a7f558$var$signals = (parcelRequire(\"dVIKq\"));\n var $fe4c43f2e8a7f558$var$isWin = /^win/i.test($fe4c43f2e8a7f558$var$process.platform);\n var $fe4c43f2e8a7f558$var$EE = $4umf8$events;\n /* istanbul ignore if */ if (typeof $fe4c43f2e8a7f558$var$EE !== \"function\") $fe4c43f2e8a7f558$var$EE = $fe4c43f2e8a7f558$var$EE.EventEmitter;\n var $fe4c43f2e8a7f558$var$emitter;\n if ($fe4c43f2e8a7f558$var$process.__signal_exit_emitter__) $fe4c43f2e8a7f558$var$emitter = $fe4c43f2e8a7f558$var$process.__signal_exit_emitter__;\n else {\n $fe4c43f2e8a7f558$var$emitter = $fe4c43f2e8a7f558$var$process.__signal_exit_emitter__ = new $fe4c43f2e8a7f558$var$EE();\n $fe4c43f2e8a7f558$var$emitter.count = 0;\n $fe4c43f2e8a7f558$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$fe4c43f2e8a7f558$var$emitter.infinite) {\n $fe4c43f2e8a7f558$var$emitter.setMaxListeners(Infinity);\n $fe4c43f2e8a7f558$var$emitter.infinite = true;\n }\n $fe4c43f2e8a7f558$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return function() {};\n $fe4c43f2e8a7f558$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($fe4c43f2e8a7f558$var$loaded === false) $fe4c43f2e8a7f558$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $fe4c43f2e8a7f558$var$emitter.removeListener(ev, cb);\n if ($fe4c43f2e8a7f558$var$emitter.listeners(\"exit\").length === 0 && $fe4c43f2e8a7f558$var$emitter.listeners(\"afterexit\").length === 0) $fe4c43f2e8a7f558$var$unload();\n };\n $fe4c43f2e8a7f558$var$emitter.on(ev, cb);\n return remove;\n };\n var $fe4c43f2e8a7f558$var$unload = function unload() {\n if (!$fe4c43f2e8a7f558$var$loaded || !$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$loaded = false;\n $fe4c43f2e8a7f558$var$signals.forEach(function(sig) {\n try {\n $fe4c43f2e8a7f558$var$process.removeListener(sig, $fe4c43f2e8a7f558$var$sigListeners[sig]);\n } catch (er) {}\n });\n $fe4c43f2e8a7f558$var$process.emit = $fe4c43f2e8a7f558$var$originalProcessEmit;\n $fe4c43f2e8a7f558$var$process.reallyExit = $fe4c43f2e8a7f558$var$originalProcessReallyExit;\n $fe4c43f2e8a7f558$var$emitter.count -= 1;\n };\n $fe4c43f2e8a7f558$exports.unload = $fe4c43f2e8a7f558$var$unload;\n var $fe4c43f2e8a7f558$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($fe4c43f2e8a7f558$var$emitter.emitted[event]) return;\n $fe4c43f2e8a7f558$var$emitter.emitted[event] = true;\n $fe4c43f2e8a7f558$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $fe4c43f2e8a7f558$var$sigListeners = {};\n $fe4c43f2e8a7f558$var$signals.forEach(function(sig) {\n $fe4c43f2e8a7f558$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $fe4c43f2e8a7f558$var$process.listeners(sig);\n if (listeners.length === $fe4c43f2e8a7f558$var$emitter.count) {\n $fe4c43f2e8a7f558$var$unload();\n $fe4c43f2e8a7f558$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($fe4c43f2e8a7f558$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$process.kill($fe4c43f2e8a7f558$var$process.pid, sig);\n }\n };\n });\n $fe4c43f2e8a7f558$exports.signals = function() {\n return $fe4c43f2e8a7f558$var$signals;\n };\n var $fe4c43f2e8a7f558$var$loaded = false;\n var $fe4c43f2e8a7f558$var$load = function load() {\n if ($fe4c43f2e8a7f558$var$loaded || !$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $fe4c43f2e8a7f558$var$emitter.count += 1;\n $fe4c43f2e8a7f558$var$signals = $fe4c43f2e8a7f558$var$signals.filter(function(sig) {\n try {\n $fe4c43f2e8a7f558$var$process.on(sig, $fe4c43f2e8a7f558$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $fe4c43f2e8a7f558$var$process.emit = $fe4c43f2e8a7f558$var$processEmit;\n $fe4c43f2e8a7f558$var$process.reallyExit = $fe4c43f2e8a7f558$var$processReallyExit;\n };\n $fe4c43f2e8a7f558$exports.load = $fe4c43f2e8a7f558$var$load;\n var $fe4c43f2e8a7f558$var$originalProcessReallyExit = $fe4c43f2e8a7f558$var$process.reallyExit;\n var $fe4c43f2e8a7f558$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$fe4c43f2e8a7f558$var$processOk($parcel$global.process)) return;\n $fe4c43f2e8a7f558$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $fe4c43f2e8a7f558$var$emit(\"exit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$originalProcessReallyExit.call($fe4c43f2e8a7f558$var$process, $fe4c43f2e8a7f558$var$process.exitCode);\n };\n var $fe4c43f2e8a7f558$var$originalProcessEmit = $fe4c43f2e8a7f558$var$process.emit;\n var $fe4c43f2e8a7f558$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $fe4c43f2e8a7f558$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $fe4c43f2e8a7f558$var$process.exitCode = arg;\n var ret = $fe4c43f2e8a7f558$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"exit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ $fe4c43f2e8a7f558$var$emit(\"afterexit\", $fe4c43f2e8a7f558$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $fe4c43f2e8a7f558$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $8bad387d33525ec8$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $8bad387d33525ec8$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $8bad387d33525ec8$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $8bad387d33525ec8$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$8bad387d33525ec8$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $8bad387d33525ec8$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $8bad387d33525ec8$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$8bad387d33525ec8$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $8bad387d33525ec8$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($4umf8$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $8bad387d33525ec8$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $8bad387d33525ec8$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $8bad387d33525ec8$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $8bad387d33525ec8$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $8bad387d33525ec8$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $8bad387d33525ec8$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $8bad387d33525ec8$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $8bad387d33525ec8$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($fe4c43f2e8a7f558$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $dc0eb0b18e5448c3$export$b58a61c52edb4f66(stream) {\n return $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $dc0eb0b18e5448c3$export$ac613ff475b69d05(stream) {\n return $dc0eb0b18e5448c3$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $dc0eb0b18e5448c3$export$f92d8ccfaec172d4(stream) {\n return $dc0eb0b18e5448c3$export$b58a61c52edb4f66(stream) && $dc0eb0b18e5448c3$export$ac613ff475b69d05(stream);\n}\nfunction $dc0eb0b18e5448c3$export$3053cdc6f2e088fd(stream) {\n return $dc0eb0b18e5448c3$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $828f40abedd408ac$var$isExecaChildProcess = (target)=>target instanceof (0, $4umf8$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $828f40abedd408ac$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $4umf8$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$828f40abedd408ac$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $828f40abedd408ac$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $828f40abedd408ac$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $d2fd9e7353012e26$exports = {};\n\"use strict\";\n\nvar $d2fd9e7353012e26$require$BufferConstants = $4umf8$buffer.constants;\n\n\nvar $d2fd9e7353012e26$require$promisify = $4umf8$util.promisify;\nvar $f7957a506754edbb$exports = {};\n\"use strict\";\n\nvar $f7957a506754edbb$require$PassThroughStream = $4umf8$stream.PassThrough;\n$f7957a506754edbb$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $f7957a506754edbb$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $d2fd9e7353012e26$var$streamPipelinePromisified = $d2fd9e7353012e26$require$promisify($4umf8$stream.pipeline);\nclass $d2fd9e7353012e26$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $d2fd9e7353012e26$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $f7957a506754edbb$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $d2fd9e7353012e26$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $d2fd9e7353012e26$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $d2fd9e7353012e26$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$d2fd9e7353012e26$exports = $d2fd9e7353012e26$var$getStream;\n$d2fd9e7353012e26$exports.buffer = (stream, options)=>$d2fd9e7353012e26$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$d2fd9e7353012e26$exports.array = (stream, options)=>$d2fd9e7353012e26$var$getStream(stream, {\n ...options,\n array: true\n });\n$d2fd9e7353012e26$exports.MaxBufferError = $d2fd9e7353012e26$var$MaxBufferError;\n\n\nvar $f867eb3c20f83984$exports = {};\n\"use strict\";\n\nvar $f867eb3c20f83984$require$PassThrough = $4umf8$stream.PassThrough;\n$f867eb3c20f83984$exports = function() {\n var sources = [];\n var output = new $f867eb3c20f83984$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $7e0549772c2821d0$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $7e0549772c2821d0$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $7e0549772c2821d0$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.readFileSync)(inputFile);\n};\nconst $7e0549772c2821d0$export$7f2f9b6457412b41 = (options)=>{\n const input = $7e0549772c2821d0$var$getInputSync(options);\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $7e0549772c2821d0$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $7e0549772c2821d0$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.createReadStream)(inputFile);\n};\nconst $7e0549772c2821d0$export$412508d679148d5c = (spawned, options)=>{\n const input = $7e0549772c2821d0$var$getInput(options);\n if (input === undefined) return;\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $7e0549772c2821d0$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($f867eb3c20f83984$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $7e0549772c2821d0$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $7e0549772c2821d0$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $7e0549772c2821d0$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $7e0549772c2821d0$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $7e0549772c2821d0$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $7e0549772c2821d0$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $7e0549772c2821d0$var$getBufferedData(stdout, stdoutPromise),\n $7e0549772c2821d0$var$getBufferedData(stderr, stderrPromise),\n $7e0549772c2821d0$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $90858c67e8fd2846$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $90858c67e8fd2846$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($90858c67e8fd2846$var$nativePromisePrototype, property)\n ]);\nconst $90858c67e8fd2846$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $90858c67e8fd2846$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $90858c67e8fd2846$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $a6c91bcff0258dec$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $a6c91bcff0258dec$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $a6c91bcff0258dec$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $a6c91bcff0258dec$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $a6c91bcff0258dec$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($a6c91bcff0258dec$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $a6c91bcff0258dec$export$ab3db8fe5ebf3a1 = (file, args)=>$a6c91bcff0258dec$var$normalizeArgs(file, args).join(\" \");\nconst $a6c91bcff0258dec$export$9d3099014bd914f8 = (file, args)=>$a6c91bcff0258dec$var$normalizeArgs(file, args).map((arg)=>$a6c91bcff0258dec$var$escapeArg(arg)).join(\" \");\nconst $a6c91bcff0258dec$var$SPACES_REGEXP = / +/g;\nconst $a6c91bcff0258dec$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($a6c91bcff0258dec$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $a6c91bcff0258dec$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $4umf8$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $4umf8$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $a6c91bcff0258dec$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $a6c91bcff0258dec$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template !== null && template !== void 0 ? template : templates.raw[index];\n const templateTokens = templateString.split($a6c91bcff0258dec$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $a6c91bcff0258dec$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$a6c91bcff0258dec$var$parseExpression(expression)) : [\n $a6c91bcff0258dec$var$parseExpression(expression)\n ];\n return $a6c91bcff0258dec$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $a6c91bcff0258dec$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $a6c91bcff0258dec$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $8e8fd7c300c466ad$export$38bb3c1fbaa0bdcf = (0, $4umf8$nodeutil.debuglog)(\"execa\").enabled;\nconst $8e8fd7c300c466ad$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $8e8fd7c300c466ad$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$8e8fd7c300c466ad$var$padField(date.getHours(), 2)}:${$8e8fd7c300c466ad$var$padField(date.getMinutes(), 2)}:${$8e8fd7c300c466ad$var$padField(date.getSeconds(), 2)}.${$8e8fd7c300c466ad$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $8e8fd7c300c466ad$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($4umf8$nodeprocess))).stderr.write(`[${$8e8fd7c300c466ad$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $24f062d29362ada6$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $24f062d29362ada6$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($4umf8$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $e525b4839dd67f68$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $24f062d29362ada6$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($f22b5c1f790abcb5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $24f062d29362ada6$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $8e8fd7c300c466ad$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $24f062d29362ada6$var$getEnv(options);\n options.stdio = (0, $fd3489326ee71e7b$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($4umf8$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($4umf8$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $24f062d29362ada6$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $4umf8$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $e53d23f0d89b737e$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $24f062d29362ada6$export$db6b1668e3758717(file, args, options) {\n const parsed = $24f062d29362ada6$var$handleArguments(file, args, options);\n const command = (0, $a6c91bcff0258dec$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $a6c91bcff0258dec$export$9d3099014bd914f8)(file, args);\n (0, $8e8fd7c300c466ad$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $8bad387d33525ec8$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($4umf8$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $90858c67e8fd2846$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $90858c67e8fd2846$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $8bad387d33525ec8$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $8bad387d33525ec8$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $8bad387d33525ec8$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $8bad387d33525ec8$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $7e0549772c2821d0$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $24f062d29362ada6$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $24f062d29362ada6$var$handleOutput(parsed.options, stderrResult);\n const all = $24f062d29362ada6$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $b5bce385de6ade9f$export$2e2bcd8739ae039)(handlePromise);\n (0, $7e0549772c2821d0$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $7e0549772c2821d0$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $828f40abedd408ac$export$14becf8d91886424)(spawned);\n (0, $90858c67e8fd2846$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $24f062d29362ada6$export$28823a701bb5a12d(file, args, options) {\n const parsed = $24f062d29362ada6$var$handleArguments(file, args, options);\n const command = (0, $a6c91bcff0258dec$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $a6c91bcff0258dec$export$9d3099014bd914f8)(file, args);\n (0, $8e8fd7c300c466ad$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $7e0549772c2821d0$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $24f062d29362ada6$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $24f062d29362ada6$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $9224ad52d9f78dbc$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $24f062d29362ada6$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $24f062d29362ada6$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$24f062d29362ada6$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $24f062d29362ada6$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $24f062d29362ada6$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $a6c91bcff0258dec$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $24f062d29362ada6$export$db6b1668e3758717(file, args, $24f062d29362ada6$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $a6c91bcff0258dec$export$4a6ee54de9b0f25d)(templates, expressions);\n return $24f062d29362ada6$export$28823a701bb5a12d(file, args, $24f062d29362ada6$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $24f062d29362ada6$export$3d8c2f653ac9d0b9 = $24f062d29362ada6$var$create$();\nfunction $24f062d29362ada6$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $a6c91bcff0258dec$export$78bcee23e0849f6a)(command);\n return $24f062d29362ada6$export$db6b1668e3758717(file, args, options);\n}\nfunction $24f062d29362ada6$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $a6c91bcff0258dec$export$78bcee23e0849f6a)(command);\n return $24f062d29362ada6$export$28823a701bb5a12d(file, args, options);\n}\nfunction $24f062d29362ada6$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $fd3489326ee71e7b$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $24f062d29362ada6$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $c93e0191c47e5f34$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $c93e0191c47e5f34$export$e3140dc7d0c35e48() {\n var _process_getuid, _process;\n // TODO not all CI systems are root\n return ((_process_getuid = (_process = process).getuid) === null || _process_getuid === void 0 ? void 0 : _process_getuid.call(_process)) === 0 || Boolean(process.env.CI);\n}\nfunction $c93e0191c47e5f34$export$316200228f28b8ce() {\n return $c93e0191c47e5f34$export$e3140dc7d0c35e48() && $c93e0191c47e5f34$export$7683bf1311d8252();\n}\nfunction $c93e0191c47e5f34$export$d976d47922ae9667(command) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $c93e0191c47e5f34$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $c93e0191c47e5f34$export$58f152936f209932(program, args = [], execOptions = $c93e0191c47e5f34$export$151aeb0ade3989e1) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) {\n const command = $c93e0191c47e5f34$var$getSudoCommand(program, args);\n return (0, $24f062d29362ada6$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $24f062d29362ada6$export$28823a701bb5a12d)(program, $c93e0191c47e5f34$var$quote(args), execOptions);\n}\nfunction $c93e0191c47e5f34$export$351270479e2eef26(program, args = [], execOptions = $c93e0191c47e5f34$export$151aeb0ade3989e1) {\n if ($c93e0191c47e5f34$export$316200228f28b8ce()) {\n const command = $c93e0191c47e5f34$var$getSudoCommand(program, args);\n return (0, $24f062d29362ada6$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $24f062d29362ada6$export$db6b1668e3758717)(program, $c93e0191c47e5f34$var$quote(args), execOptions);\n}\nfunction $c93e0191c47e5f34$var$getSudoCommand(program, args) {\n return `sudo ${$c93e0191c47e5f34$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $c93e0191c47e5f34$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $d429520e97233297$var$testFltmc() {\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $d429520e97233297$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n var _process_env_systemdrive;\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n (_process_env_systemdrive = process.env.systemdrive) !== null && _process_env_systemdrive !== void 0 ? _process_env_systemdrive : \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $d429520e97233297$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $fbd369c644c7f581$export$36ad181701cee597 = (0, $d429520e97233297$export$2e2bcd8739ae039);\nconst $fbd369c644c7f581$export$2ebf12717e6b5bb8 = (0, $c93e0191c47e5f34$export$e3140dc7d0c35e48);\nfunction $fbd369c644c7f581$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $fbd369c644c7f581$export$36ad181701cee597();\n else return (0, $c93e0191c47e5f34$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $bf272871df54e58d$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $c93e0191c47e5f34$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($4umf8$fs))).statSync(path).isDirectory();\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $c93e0191c47e5f34$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $f19d14aa12f0fb90$export$3ce714bda98f65f0() {\n if ((0, $c93e0191c47e5f34$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $4umf8$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $4umf8$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $4umf8$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $f19d14aa12f0fb90$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $f19d14aa12f0fb90$export$8312d9eeba321950(path) {\n const maybeHomeDir = $f19d14aa12f0fb90$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($f19d14aa12f0fb90$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $ead794660f22ce98$exports = {};\n\"use strict\";\n\n\nvar $coVwk = parcelRequire(\"coVwk\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $ead794660f22ce98$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $ead794660f22ce98$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $ead794660f22ce98$var$packageJson = $4umf8$process.env.npm_package_json;\nvar $ead794660f22ce98$var$userAgent = $4umf8$process.env.npm_config_user_agent;\nvar $ead794660f22ce98$var$isNpm6 = Boolean($ead794660f22ce98$var$userAgent && $ead794660f22ce98$var$userAgent.startsWith(\"npm\"));\nvar $ead794660f22ce98$var$isNpm7 = Boolean($ead794660f22ce98$var$packageJson && $ead794660f22ce98$var$packageJson.endsWith(\"package.json\"));\nvar $ead794660f22ce98$var$isNpm = $ead794660f22ce98$var$isNpm6 || $ead794660f22ce98$var$isNpm7;\nvar $ead794660f22ce98$var$isYarn = Boolean($ead794660f22ce98$var$userAgent && $ead794660f22ce98$var$userAgent.startsWith(\"yarn\"));\nvar $ead794660f22ce98$var$isNpmOrYarn = $ead794660f22ce98$var$isNpm || $ead794660f22ce98$var$isYarn;\nvar $ead794660f22ce98$var$homeDirectory = $4umf8$os.homedir();\nvar $ead794660f22ce98$var$configDir = process.env.XDG_CONFIG_HOME || $4umf8$path.join($ead794660f22ce98$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $ead794660f22ce98$var$getConfigFile = function(packageName) {\n return $4umf8$path.join($ead794660f22ce98$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $ead794660f22ce98$var$createConfigDir = function() {\n if (!$4umf8$fs.existsSync($ead794660f22ce98$var$configDir)) $4umf8$fs.mkdirSync($ead794660f22ce98$var$configDir, {\n recursive: true\n });\n};\nvar $ead794660f22ce98$var$getLastUpdate = function(packageName) {\n var configFile = $ead794660f22ce98$var$getConfigFile(packageName);\n try {\n if (!$4umf8$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($4umf8$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $ead794660f22ce98$var$saveLastUpdate = function(packageName) {\n var configFile = $ead794660f22ce98$var$getConfigFile(packageName);\n $4umf8$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $ead794660f22ce98$var$getDistVersion = function(packageName, distTag) {\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $ead794660f22ce98$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $4umf8$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $ead794660f22ce98$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $ead794660f22ce98$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $ead794660f22ce98$var$createConfigDir();\n lastUpdateCheck = $ead794660f22ce98$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $ead794660f22ce98$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $ead794660f22ce98$var$saveLastUpdate(pkg.name);\n if ($coVwk.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $ead794660f22ce98$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $ead794660f22ce98$var$simpleUpdateNotifier = function(args) {\n return $ead794660f22ce98$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $ead794660f22ce98$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $ead794660f22ce98$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $ead794660f22ce98$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($ead794660f22ce98$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$ead794660f22ce98$exports = $ead794660f22ce98$var$simpleUpdateNotifier;\n\n\nvar $8de64c03a4b9ab60$exports = {};\n$8de64c03a4b9ab60$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $c67d54237e946289$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($ead794660f22ce98$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($8de64c03a4b9ab60$exports)))\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nfunction $6973f06ebfc9a33d$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $6973f06ebfc9a33d$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $6973f06ebfc9a33d$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $6973f06ebfc9a33d$var$toArr(opts.string);\n opts.boolean = $6973f06ebfc9a33d$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $6973f06ebfc9a33d$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $6973f06ebfc9a33d$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $07c9db864ea9c735$var$hasDnfCache = undefined;\nfunction $07c9db864ea9c735$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($07c9db864ea9c735$var$hasDnfCache === undefined) $07c9db864ea9c735$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $07c9db864ea9c735$var$hasDnfCache;\n}\n\n\n\nlet $64f7d4d3c6118037$var$isArchCache = undefined;\nfunction $64f7d4d3c6118037$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($64f7d4d3c6118037$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $64f7d4d3c6118037$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $64f7d4d3c6118037$var$isArchCache;\n}\n\n\n\nlet $c304217cbb6a03a7$var$isUbuntuCache = undefined;\nfunction $c304217cbb6a03a7$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($c304217cbb6a03a7$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $c304217cbb6a03a7$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $c304217cbb6a03a7$var$isUbuntuCache;\n}\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $ab523b404c27a0fe$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $ab523b404c27a0fe$var$is_posix_os = $4umf8$os.platform() !== \"win32\";\nconst $ab523b404c27a0fe$var$version = $4umf8$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $ab523b404c27a0fe$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $ab523b404c27a0fe$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$ab523b404c27a0fe$exports = function(given_path) {\n return $ab523b404c27a0fe$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $ab523b404c27a0fe$var$should_not_escape(...$ab523b404c27a0fe$var$windows_version_regex.exec($ab523b404c27a0fe$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $ebf0a72c98c686ec$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"8CJZb\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $ebf0a72c98c686ec$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($ebf0a72c98c686ec$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $f10e3e407525ada5$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $f10e3e407525ada5$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $694b1b79847eac4d$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $f10e3e407525ada5$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $7e79f889e2c85db5$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $7e79f889e2c85db5$var$hasAlias = (options)=>$7e79f889e2c85db5$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $7e79f889e2c85db5$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $7e79f889e2c85db5$var$aliases.map((alias)=>options[alias]);\n if ($7e79f889e2c85db5$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$7e79f889e2c85db5$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $7e79f889e2c85db5$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $7e79f889e2c85db5$export$889423b478ae2ba = (options)=>{\n const stdio = $7e79f889e2c85db5$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $9d60a7612741533b$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $9d60a7612741533b$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $9d60a7612741533b$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $9d60a7612741533b$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$9d60a7612741533b$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $9d60a7612741533b$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $9d60a7612741533b$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$9d60a7612741533b$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $9d60a7612741533b$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($4umf8$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $9d60a7612741533b$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $9d60a7612741533b$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $9d60a7612741533b$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $9d60a7612741533b$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $9d60a7612741533b$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $9d60a7612741533b$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $9d60a7612741533b$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $9d60a7612741533b$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($fe4c43f2e8a7f558$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $fea7e768cb964fee$var$isExecaChildProcess = (target)=>target instanceof (0, $4umf8$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $fea7e768cb964fee$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $4umf8$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$fea7e768cb964fee$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $dc0eb0b18e5448c3$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $fea7e768cb964fee$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $fea7e768cb964fee$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $9a001a5edd77b6d2$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $9a001a5edd77b6d2$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $9a001a5edd77b6d2$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.readFileSync)(inputFile);\n};\nconst $9a001a5edd77b6d2$export$7f2f9b6457412b41 = (options)=>{\n const input = $9a001a5edd77b6d2$var$getInputSync(options);\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $9a001a5edd77b6d2$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $9a001a5edd77b6d2$var$validateInputOptions(input);\n return (0, $4umf8$nodefs.createReadStream)(inputFile);\n};\nconst $9a001a5edd77b6d2$export$412508d679148d5c = (spawned, options)=>{\n const input = $9a001a5edd77b6d2$var$getInput(options);\n if (input === undefined) return;\n if ((0, $dc0eb0b18e5448c3$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $9a001a5edd77b6d2$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($f867eb3c20f83984$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $9a001a5edd77b6d2$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $9a001a5edd77b6d2$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($d2fd9e7353012e26$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $9a001a5edd77b6d2$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $9a001a5edd77b6d2$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $9a001a5edd77b6d2$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $9a001a5edd77b6d2$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $9a001a5edd77b6d2$var$getBufferedData(stdout, stdoutPromise),\n $9a001a5edd77b6d2$var$getBufferedData(stderr, stderrPromise),\n $9a001a5edd77b6d2$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $abc85486cf0fa6ab$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $abc85486cf0fa6ab$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($abc85486cf0fa6ab$var$nativePromisePrototype, property)\n ]);\nconst $abc85486cf0fa6ab$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $abc85486cf0fa6ab$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $abc85486cf0fa6ab$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $8919cf03e80b14de$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $8919cf03e80b14de$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $8919cf03e80b14de$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $8919cf03e80b14de$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $8919cf03e80b14de$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($8919cf03e80b14de$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $8919cf03e80b14de$export$ab3db8fe5ebf3a1 = (file, args)=>$8919cf03e80b14de$var$normalizeArgs(file, args).join(\" \");\nconst $8919cf03e80b14de$export$9d3099014bd914f8 = (file, args)=>$8919cf03e80b14de$var$normalizeArgs(file, args).map((arg)=>$8919cf03e80b14de$var$escapeArg(arg)).join(\" \");\nconst $8919cf03e80b14de$var$SPACES_REGEXP = / +/g;\nconst $8919cf03e80b14de$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($8919cf03e80b14de$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $8919cf03e80b14de$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $4umf8$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $4umf8$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $8919cf03e80b14de$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $8919cf03e80b14de$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template !== null && template !== void 0 ? template : templates.raw[index];\n const templateTokens = templateString.split($8919cf03e80b14de$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $8919cf03e80b14de$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$8919cf03e80b14de$var$parseExpression(expression)) : [\n $8919cf03e80b14de$var$parseExpression(expression)\n ];\n return $8919cf03e80b14de$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $8919cf03e80b14de$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $8919cf03e80b14de$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $87acfe4b15b2f9d0$export$38bb3c1fbaa0bdcf = (0, $4umf8$nodeutil.debuglog)(\"execa\").enabled;\nconst $87acfe4b15b2f9d0$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $87acfe4b15b2f9d0$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$87acfe4b15b2f9d0$var$padField(date.getHours(), 2)}:${$87acfe4b15b2f9d0$var$padField(date.getMinutes(), 2)}:${$87acfe4b15b2f9d0$var$padField(date.getSeconds(), 2)}.${$87acfe4b15b2f9d0$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $87acfe4b15b2f9d0$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($4umf8$nodeprocess))).stderr.write(`[${$87acfe4b15b2f9d0$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $c87194a583e4cc8b$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $c87194a583e4cc8b$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($4umf8$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $e525b4839dd67f68$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $c87194a583e4cc8b$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($f22b5c1f790abcb5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $c87194a583e4cc8b$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($4umf8$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $87acfe4b15b2f9d0$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $c87194a583e4cc8b$var$getEnv(options);\n options.stdio = (0, $7e79f889e2c85db5$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($4umf8$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($4umf8$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $c87194a583e4cc8b$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $4umf8$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $e53d23f0d89b737e$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $c87194a583e4cc8b$export$db6b1668e3758717(file, args, options) {\n const parsed = $c87194a583e4cc8b$var$handleArguments(file, args, options);\n const command = (0, $8919cf03e80b14de$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $8919cf03e80b14de$export$9d3099014bd914f8)(file, args);\n (0, $87acfe4b15b2f9d0$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $9d60a7612741533b$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($4umf8$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $abc85486cf0fa6ab$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $abc85486cf0fa6ab$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $9d60a7612741533b$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $9d60a7612741533b$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $9d60a7612741533b$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $9d60a7612741533b$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $9a001a5edd77b6d2$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $c87194a583e4cc8b$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $c87194a583e4cc8b$var$handleOutput(parsed.options, stderrResult);\n const all = $c87194a583e4cc8b$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $b5bce385de6ade9f$export$2e2bcd8739ae039)(handlePromise);\n (0, $9a001a5edd77b6d2$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $9a001a5edd77b6d2$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $fea7e768cb964fee$export$14becf8d91886424)(spawned);\n (0, $abc85486cf0fa6ab$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, options) {\n const parsed = $c87194a583e4cc8b$var$handleArguments(file, args, options);\n const command = (0, $8919cf03e80b14de$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $8919cf03e80b14de$export$9d3099014bd914f8)(file, args);\n (0, $87acfe4b15b2f9d0$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $9a001a5edd77b6d2$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($4umf8$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $c87194a583e4cc8b$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $c87194a583e4cc8b$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $f10e3e407525ada5$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $c87194a583e4cc8b$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $c87194a583e4cc8b$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$c87194a583e4cc8b$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $c87194a583e4cc8b$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $c87194a583e4cc8b$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $8919cf03e80b14de$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $c87194a583e4cc8b$export$db6b1668e3758717(file, args, $c87194a583e4cc8b$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $8919cf03e80b14de$export$4a6ee54de9b0f25d)(templates, expressions);\n return $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, $c87194a583e4cc8b$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $c87194a583e4cc8b$export$3d8c2f653ac9d0b9 = $c87194a583e4cc8b$var$create$();\nfunction $c87194a583e4cc8b$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $8919cf03e80b14de$export$78bcee23e0849f6a)(command);\n return $c87194a583e4cc8b$export$db6b1668e3758717(file, args, options);\n}\nfunction $c87194a583e4cc8b$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $8919cf03e80b14de$export$78bcee23e0849f6a)(command);\n return $c87194a583e4cc8b$export$28823a701bb5a12d(file, args, options);\n}\nfunction $c87194a583e4cc8b$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $7e79f889e2c85db5$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($4umf8$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $c87194a583e4cc8b$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $7826d3c45b949ee1$var$powershell;\nfunction $7826d3c45b949ee1$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $c87194a583e4cc8b$export$db6b1668e3758717($7826d3c45b949ee1$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $7826d3c45b949ee1$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $c87194a583e4cc8b$export$28823a701bb5a12d($7826d3c45b949ee1$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $7826d3c45b949ee1$export$4dfdd3964d242d20() {\n if ($7826d3c45b949ee1$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $7826d3c45b949ee1$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $7826d3c45b949ee1$var$powershell = maybePowerShell;\n }\n if ($7826d3c45b949ee1$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $7826d3c45b949ee1$var$powershell;\n}\n\n\n\nvar $2Bbmx = parcelRequire(\"2Bbmx\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nconst $fcca2ee3cb52e97b$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $fcca2ee3cb52e97b$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $fcca2ee3cb52e97b$var$defaultAddEnvOptions) {\n const options = {\n ...$fcca2ee3cb52e97b$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $fcca2ee3cb52e97b$var$escapeString(valGiven !== null && valGiven !== void 0 ? valGiven : \"\", options.shouldEscapeSpace);\n try {\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $1o3Gj.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $1o3Gj.exportVariable)(name, val);\n } catch (err) {\n (0, $hHq4F.error)(err);\n await $fcca2ee3cb52e97b$var$addEnvSystem(name, val, options);\n }\n else await $fcca2ee3cb52e97b$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $hHq4F.error)(err);\n (0, $1o3Gj.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $fcca2ee3cb52e97b$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($ab523b404c27a0fe$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($ebf0a72c98c686ec$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $fcca2ee3cb52e97b$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $fcca2ee3cb52e97b$var$isIgnoredPath(path) {\n if ($fcca2ee3cb52e97b$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n var _process_env_PATH;\n var _process_env_PATH_split;\n const paths = (_process_env_PATH_split = (_process_env_PATH = process.env.PATH) === null || _process_env_PATH === void 0 ? void 0 : _process_env_PATH.split((0, $4umf8$path.delimiter))) !== null && _process_env_PATH_split !== void 0 ? _process_env_PATH_split : [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $fcca2ee3cb52e97b$export$4c25481b843feb0b(path) {\n if ($fcca2ee3cb52e97b$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $4umf8$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n (0, $1o3Gj.addPath)(path);\n } catch (err) {\n (0, $hHq4F.error)(err);\n await $fcca2ee3cb52e97b$var$addPathSystem(path);\n }\n else await $fcca2ee3cb52e97b$var$addPathSystem(path);\n } catch (err) {\n (0, $hHq4F.error)(err);\n (0, $1o3Gj.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $fcca2ee3cb52e97b$export$1bbbc3a810c5799d = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $fcca2ee3cb52e97b$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven !== null && valGiven !== void 0 ? valGiven : \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $1o3Gj.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $7826d3c45b949ee1$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $1o3Gj.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $fcca2ee3cb52e97b$export$7536cc7938378f6c();\n if (options.shouldAddOnlyIfNotDefined) {\n await (0, $2Bbmx.appendFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $1o3Gj.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n } else {\n await (0, $2Bbmx.appendFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $1o3Gj.info)(`${name}=\"${val}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $fcca2ee3cb52e97b$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $7826d3c45b949ee1$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $1o3Gj.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $fcca2ee3cb52e97b$export$7536cc7938378f6c();\n await (0, $2Bbmx.appendFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $1o3Gj.info)(`\"${path}\" was added to \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $fcca2ee3cb52e97b$var$setupCppInProfile_called = false;\nasync function $fcca2ee3cb52e97b$export$7536cc7938378f6c() {\n if ($fcca2ee3cb52e97b$var$setupCppInProfile_called) return;\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\" ]]; then source \"${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n await Promise.all([\n $fcca2ee3cb52e97b$var$addCpprcHeader(),\n $fcca2ee3cb52e97b$var$sourceCpprcInProfile(source_cpprc_string),\n $fcca2ee3cb52e97b$var$sourceCpprcInBashrc(source_cpprc_string)\n ]);\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $fcca2ee3cb52e97b$var$setupCppInProfile_called = true;\n}\nasync function $fcca2ee3cb52e97b$var$addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $6t4SD.pathExists)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d)) {\n const cpprc_content = await (0, $2Bbmx.readFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await (0, $2Bbmx.appendFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, `\\n${cpprc_header}\\n`);\n (0, $1o3Gj.info)(`Added ${cpprc_header} to ${$fcca2ee3cb52e97b$export$1bbbc3a810c5799d}`);\n }\n }\n}\nasync function $fcca2ee3cb52e97b$var$sourceCpprcInBashrc(source_cpprc_string) {\n const bashrc_path = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $6t4SD.pathExists)(bashrc_path)) {\n const bashrcContent = await (0, $2Bbmx.readFile)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n await (0, $2Bbmx.appendFile)(bashrc_path, source_cpprc_string);\n (0, $1o3Gj.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n}\nasync function $fcca2ee3cb52e97b$var$sourceCpprcInProfile(source_cpprc_string) {\n const profile_path = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $6t4SD.pathExists)(profile_path)) {\n const profileContent = await (0, $2Bbmx.readFile)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n await (0, $2Bbmx.appendFile)(profile_path, source_cpprc_string);\n (0, $1o3Gj.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n}\nasync function $fcca2ee3cb52e97b$export$ca46151966bee7ba() {\n if (await (0, $6t4SD.pathExists)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d)) {\n const entries = (await (0, $2Bbmx.readFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, \"utf-8\")).split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n await (0, $2Bbmx.writeFile)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $bf272871df54e58d$export$4718e061a205eab)($fcca2ee3cb52e97b$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $f44Uw = parcelRequire(\"f44Uw\");\n\n\nconst { appendFile: $4574e4c050df58da$var$appendFile } = (0, $4umf8$fs.promises);\n/* eslint-disable require-atomic-updates */ let $4574e4c050df58da$var$didUpdate = false;\nlet $4574e4c050df58da$var$didInit = false;\nconst $4574e4c050df58da$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $4574e4c050df58da$export$d73dc343f5abf26(packages, update = false) {\n const apt = $4574e4c050df58da$var$getApt();\n for (const { name: name, version: version } of packages)(0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$4574e4c050df58da$var$didUpdate || update) {\n $4574e4c050df58da$var$updateRepos(apt);\n $4574e4c050df58da$var$didUpdate = true;\n }\n if (!$4574e4c050df58da$var$didInit) {\n await $4574e4c050df58da$var$initApt(apt);\n $4574e4c050df58da$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>{\n var _pack_repositories;\n return (_pack_repositories = pack.repositories) !== null && _pack_repositories !== void 0 ? _pack_repositories : [];\n }))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $4574e4c050df58da$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$4574e4c050df58da$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($4574e4c050df58da$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $hHq4F.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $4574e4c050df58da$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($4574e4c050df58da$export$e6e2160a140a491e || ($4574e4c050df58da$export$e6e2160a140a491e = {}));\nasync function $4574e4c050df58da$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $f44Uw.default)(name)}-${(0, $f44Uw.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $4574e4c050df58da$var$getAptArg(name, version) {\n const package_type = await $4574e4c050df58da$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version !== null && version !== void 0 ? version : \"\"}`);\n }\n}\nfunction $4574e4c050df58da$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $4574e4c050df58da$var$getApt() {\n let apt;\n if ($4574e4c050df58da$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $4574e4c050df58da$var$updateRepos(apt) {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $4574e4c050df58da$var$initApt(apt) {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $4574e4c050df58da$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $4574e4c050df58da$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $4574e4c050df58da$var$initGpg() {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $4574e4c050df58da$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6t4SD.pathExists)(fileName)) {\n $4574e4c050df58da$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $4574e4c050df58da$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $6t4SD.pathExists)(fileName)) {\n $4574e4c050df58da$var$initGpg();\n await $4574e4c050df58da$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $4574e4c050df58da$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $dAuy6.GITHUB_ACTIONS) return (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $fcca2ee3cb52e97b$export$7536cc7938378f6c)();\n return $4574e4c050df58da$var$appendFile((0, $fcca2ee3cb52e97b$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $4574e4c050df58da$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nvar $zdagz = parcelRequire(\"zdagz\");\n\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/* eslint-disable require-atomic-updates */ let $86d7dd00a0f99d9c$var$binDir;\nasync function $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $86d7dd00a0f99d9c$var$binDir === \"string\") return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $86d7dd00a0f99d9c$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($4umf8$path))).join((0, $4umf8$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $zdagz.mkdirP)(brewTempDirectory);\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $4umf8$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $4umf8$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $86d7dd00a0f99d9c$var$binDir = $86d7dd00a0f99d9c$export$cba19b0564b654bf();\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)($86d7dd00a0f99d9c$var$binDir);\n return {\n binDir: $86d7dd00a0f99d9c$var$binDir\n };\n}\nfunction $86d7dd00a0f99d9c$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $7ad09143f110687f$var$hasBrew = false;\nasync function $7ad09143f110687f$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $1o3Gj.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via brew`);\n if (!$7ad09143f110687f$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $7ad09143f110687f$var$hasBrew = true;\n }\n const binDir = (0, $86d7dd00a0f99d9c$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $24f062d29362ada6$export$28823a701bb5a12d)((0, $eAXk4.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nlet $fd45706685edd4a7$var$binDir;\nasync function $fd45706685edd4a7$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $fd45706685edd4a7$var$binDir === \"string\") return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $fd45706685edd4a7$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n });\n var _process_env_ChocolateyInstall;\n if (maybeChoco !== null) $fd45706685edd4a7$var$binDir = (0, $eAXk4.dirname)(maybeChoco);\n else $fd45706685edd4a7$var$binDir = `${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $6t4SD.pathExists)($fd45706685edd4a7$var$binDir)) return {\n binDir: $fd45706685edd4a7$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $9fccd3400da2cfd8$var$hasChoco = false;\nasync function $9fccd3400da2cfd8$export$9f6912bc890040b2(name, version, args = []) {\n (0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via chocolatey`);\n if (!$9fccd3400da2cfd8$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $fd45706685edd4a7$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $9fccd3400da2cfd8$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $hHq4F.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n var _process_env_ChocolateyInstall;\n const binDir = `${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nasync function $5e892f3aba3794f6$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$5e892f3aba3794f6$var$getDnfArg(pack.name, pack.version)));\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $5e892f3aba3794f6$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $hHq4F.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $671d2451576f7242$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $4574e4c050df58da$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n/* eslint-disable require-atomic-updates */ let $48b5fe4903818be0$var$didUpdate = false;\nlet $48b5fe4903818be0$var$didInit = false;\nasync function $48b5fe4903818be0$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $hHq4F.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$48b5fe4903818be0$var$didUpdate && aur !== \"yay\") {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $48b5fe4903818be0$var$didUpdate = true;\n }\n // install base-devel\n if (!$48b5fe4903818be0$var$didInit && aur !== \"yay\") {\n (0, $c93e0191c47e5f34$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $48b5fe4903818be0$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $24f062d29362ada6$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $c93e0191c47e5f34$export$58f152936f209932)(aur !== null && aur !== void 0 ? aur : pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $48b5fe4903818be0$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $hHq4F.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $48b5fe4903818be0$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $48b5fe4903818be0$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $24f062d29362ada6$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($48b5fe4903818be0$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $e2bfdac6c7112ded$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $ea5d4ae7756c835c$exports = {};\n\nvar $ea5d4ae7756c835c$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $ea5d4ae7756c835c$var$__createBinding = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $ea5d4ae7756c835c$var$__setModuleDefault = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $ea5d4ae7756c835c$var$__importStar = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $ea5d4ae7756c835c$var$__createBinding(result, mod, k);\n }\n $ea5d4ae7756c835c$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ea5d4ae7756c835c$var$__awaiter = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $ea5d4ae7756c835c$var$__importDefault = $ea5d4ae7756c835c$exports && $ea5d4ae7756c835c$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($ea5d4ae7756c835c$exports, \"__esModule\", {\n value: true\n});\n$ea5d4ae7756c835c$exports.evaluateVersions = $ea5d4ae7756c835c$exports.isExplicitVersion = $ea5d4ae7756c835c$exports.findFromManifest = $ea5d4ae7756c835c$exports.getManifestFromRepo = $ea5d4ae7756c835c$exports.findAllVersions = $ea5d4ae7756c835c$exports.find = $ea5d4ae7756c835c$exports.cacheFile = $ea5d4ae7756c835c$exports.cacheDir = $ea5d4ae7756c835c$exports.extractZip = $ea5d4ae7756c835c$exports.extractXar = $ea5d4ae7756c835c$exports.extractTar = $ea5d4ae7756c835c$exports.extract7z = $ea5d4ae7756c835c$exports.downloadTool = $ea5d4ae7756c835c$exports.HTTPError = void 0;\n\nconst $ea5d4ae7756c835c$var$core = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"1o3Gj\")));\n\nconst $ea5d4ae7756c835c$var$io = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"zdagz\")));\n\nconst $ea5d4ae7756c835c$var$fs = $ea5d4ae7756c835c$var$__importStar($4umf8$fs);\n\nconst $ea5d4ae7756c835c$var$mm = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"gn8Si\")));\n\nconst $ea5d4ae7756c835c$var$os = $ea5d4ae7756c835c$var$__importStar($4umf8$os);\n\nconst $ea5d4ae7756c835c$var$path = $ea5d4ae7756c835c$var$__importStar($4umf8$path);\n\nconst $ea5d4ae7756c835c$var$httpm = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"eamjo\")));\n\nconst $ea5d4ae7756c835c$var$semver = $ea5d4ae7756c835c$var$__importStar((parcelRequire(\"0306Y\")));\n\nconst $ea5d4ae7756c835c$var$stream = $ea5d4ae7756c835c$var$__importStar($4umf8$stream);\n\nconst $ea5d4ae7756c835c$var$util = $ea5d4ae7756c835c$var$__importStar($4umf8$util);\n\n\nconst $ea5d4ae7756c835c$var$v4_1 = $ea5d4ae7756c835c$var$__importDefault((parcelRequire(\"GX8zo\")));\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\nvar $fe17038d658b1003$exports = {};\n\"use strict\";\nvar $fe17038d658b1003$var$__createBinding = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $fe17038d658b1003$var$__setModuleDefault = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $fe17038d658b1003$var$__importStar = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $fe17038d658b1003$var$__createBinding(result, mod, k);\n }\n $fe17038d658b1003$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $fe17038d658b1003$var$__awaiter = $fe17038d658b1003$exports && $fe17038d658b1003$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($fe17038d658b1003$exports, \"__esModule\", {\n value: true\n});\n$fe17038d658b1003$exports.RetryHelper = void 0;\n\nconst $fe17038d658b1003$var$core = $fe17038d658b1003$var$__importStar((parcelRequire(\"1o3Gj\")));\n/**\n * Internal class for retries\n */ class $fe17038d658b1003$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $fe17038d658b1003$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $fe17038d658b1003$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $fe17038d658b1003$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $fe17038d658b1003$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$fe17038d658b1003$exports.RetryHelper = $fe17038d658b1003$var$RetryHelper;\n\n\nclass $ea5d4ae7756c835c$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$ea5d4ae7756c835c$exports.HTTPError = $ea5d4ae7756c835c$var$HTTPError;\nconst $ea5d4ae7756c835c$var$IS_WINDOWS = process.platform === \"win32\";\nconst $ea5d4ae7756c835c$var$IS_MAC = process.platform === \"darwin\";\nconst $ea5d4ae7756c835c$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $ea5d4ae7756c835c$var$downloadTool(url, dest, auth, headers) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getTempDirectory(), $ea5d4ae7756c835c$var$v4_1.default());\n yield $ea5d4ae7756c835c$var$io.mkdirP($ea5d4ae7756c835c$var$path.dirname(dest));\n $ea5d4ae7756c835c$var$core.debug(`Downloading ${url}`);\n $ea5d4ae7756c835c$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $fe17038d658b1003$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n return yield $ea5d4ae7756c835c$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $ea5d4ae7756c835c$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$ea5d4ae7756c835c$exports.downloadTool = $ea5d4ae7756c835c$var$downloadTool;\nfunction $ea5d4ae7756c835c$var$downloadToolAttempt(url, dest, auth, headers) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if ($ea5d4ae7756c835c$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $ea5d4ae7756c835c$var$httpm.HttpClient($ea5d4ae7756c835c$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $ea5d4ae7756c835c$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $ea5d4ae7756c835c$var$HTTPError(response.message.statusCode);\n $ea5d4ae7756c835c$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $ea5d4ae7756c835c$var$util.promisify($ea5d4ae7756c835c$var$stream.pipeline);\n const responseMessageFactory = $ea5d4ae7756c835c$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $ea5d4ae7756c835c$var$fs.createWriteStream(dest));\n $ea5d4ae7756c835c$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $ea5d4ae7756c835c$var$core.debug(\"download failed\");\n try {\n yield $ea5d4ae7756c835c$var$io.rmRF(dest);\n } catch (err) {\n $ea5d4ae7756c835c$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extract7z(file, dest, _7zPath) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok($ea5d4ae7756c835c$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $4umf8$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $ea5d4ae7756c835c$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $bHzmH.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $ea5d4ae7756c835c$var$io.which(\"powershell\", true);\n yield $bHzmH.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extract7z = $ea5d4ae7756c835c$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractTar(file, dest, flags = \"xz\") {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $ea5d4ae7756c835c$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $bHzmH.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $ea5d4ae7756c835c$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($ea5d4ae7756c835c$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($ea5d4ae7756c835c$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $bHzmH.exec(`tar`, args);\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractTar = $ea5d4ae7756c835c$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractXar(file, dest, flags = []) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n $4umf8$assert.ok($ea5d4ae7756c835c$var$IS_MAC, \"extractXar() not supported on current OS\");\n $4umf8$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($ea5d4ae7756c835c$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $ea5d4ae7756c835c$var$io.which(\"xar\", true);\n yield $bHzmH.exec(`\"${xarPath}\"`, $ea5d4ae7756c835c$var$_unique(args));\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractXar = $ea5d4ae7756c835c$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $ea5d4ae7756c835c$var$extractZip(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $ea5d4ae7756c835c$var$_createExtractFolder(dest);\n if ($ea5d4ae7756c835c$var$IS_WINDOWS) yield $ea5d4ae7756c835c$var$extractZipWin(file, dest);\n else yield $ea5d4ae7756c835c$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$ea5d4ae7756c835c$exports.extractZip = $ea5d4ae7756c835c$var$extractZip;\nfunction $ea5d4ae7756c835c$var$extractZipWin(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $ea5d4ae7756c835c$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $ea5d4ae7756c835c$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $bHzmH.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $ea5d4ae7756c835c$var$io.which(\"powershell\", true);\n $ea5d4ae7756c835c$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $bHzmH.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $ea5d4ae7756c835c$var$extractZipNix(file, dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $ea5d4ae7756c835c$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$ea5d4ae7756c835c$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $bHzmH.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ea5d4ae7756c835c$var$cacheDir(sourceDir, tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n version = $ea5d4ae7756c835c$var$semver.clean(version) || version;\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n $ea5d4ae7756c835c$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ea5d4ae7756c835c$var$core.debug(`source dir: ${sourceDir}`);\n if (!$ea5d4ae7756c835c$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $ea5d4ae7756c835c$var$fs.readdirSync(sourceDir)){\n const s = $ea5d4ae7756c835c$var$path.join(sourceDir, itemName);\n yield $ea5d4ae7756c835c$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$ea5d4ae7756c835c$exports.cacheDir = $ea5d4ae7756c835c$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $ea5d4ae7756c835c$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n version = $ea5d4ae7756c835c$var$semver.clean(version) || version;\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n $ea5d4ae7756c835c$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $ea5d4ae7756c835c$var$core.debug(`source file: ${sourceFile}`);\n if (!$ea5d4ae7756c835c$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $ea5d4ae7756c835c$var$path.join(destFolder, targetFile);\n $ea5d4ae7756c835c$var$core.debug(`destination file ${destPath}`);\n yield $ea5d4ae7756c835c$var$io.cp(sourceFile, destPath);\n // write .complete\n $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$ea5d4ae7756c835c$exports.cacheFile = $ea5d4ae7756c835c$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ea5d4ae7756c835c$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n // attempt to resolve an explicit version\n if (!$ea5d4ae7756c835c$var$isExplicitVersion(versionSpec)) {\n const localVersions = $ea5d4ae7756c835c$var$findAllVersions(toolName, arch);\n const match = $ea5d4ae7756c835c$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $ea5d4ae7756c835c$var$semver.clean(versionSpec) || \"\";\n const cachePath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $ea5d4ae7756c835c$var$core.debug(`checking cache: ${cachePath}`);\n if ($ea5d4ae7756c835c$var$fs.existsSync(cachePath) && $ea5d4ae7756c835c$var$fs.existsSync(`${cachePath}.complete`)) {\n $ea5d4ae7756c835c$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $ea5d4ae7756c835c$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$ea5d4ae7756c835c$exports.find = $ea5d4ae7756c835c$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $ea5d4ae7756c835c$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $ea5d4ae7756c835c$var$os.arch();\n const toolPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), toolName);\n if ($ea5d4ae7756c835c$var$fs.existsSync(toolPath)) {\n const children = $ea5d4ae7756c835c$var$fs.readdirSync(toolPath);\n for (const child of children)if ($ea5d4ae7756c835c$var$isExplicitVersion(child)) {\n const fullPath = $ea5d4ae7756c835c$var$path.join(toolPath, child, arch || \"\");\n if ($ea5d4ae7756c835c$var$fs.existsSync(fullPath) && $ea5d4ae7756c835c$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$ea5d4ae7756c835c$exports.findAllVersions = $ea5d4ae7756c835c$var$findAllVersions;\nfunction $ea5d4ae7756c835c$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $ea5d4ae7756c835c$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $ea5d4ae7756c835c$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $ea5d4ae7756c835c$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$ea5d4ae7756c835c$exports.getManifestFromRepo = $ea5d4ae7756c835c$var$getManifestFromRepo;\nfunction $ea5d4ae7756c835c$var$findFromManifest(versionSpec, stable, manifest, archFilter = $ea5d4ae7756c835c$var$os.arch()) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $ea5d4ae7756c835c$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$ea5d4ae7756c835c$exports.findFromManifest = $ea5d4ae7756c835c$var$findFromManifest;\nfunction $ea5d4ae7756c835c$var$_createExtractFolder(dest) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getTempDirectory(), $ea5d4ae7756c835c$var$v4_1.default());\n yield $ea5d4ae7756c835c$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $ea5d4ae7756c835c$var$_createToolPath(tool, version, arch) {\n return $ea5d4ae7756c835c$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), tool, $ea5d4ae7756c835c$var$semver.clean(version) || version, arch || \"\");\n $ea5d4ae7756c835c$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $ea5d4ae7756c835c$var$io.rmRF(folderPath);\n yield $ea5d4ae7756c835c$var$io.rmRF(markerPath);\n yield $ea5d4ae7756c835c$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $ea5d4ae7756c835c$var$_completeToolPath(tool, version, arch) {\n const folderPath = $ea5d4ae7756c835c$var$path.join($ea5d4ae7756c835c$var$_getCacheDirectory(), tool, $ea5d4ae7756c835c$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $ea5d4ae7756c835c$var$fs.writeFileSync(markerPath, \"\");\n $ea5d4ae7756c835c$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $ea5d4ae7756c835c$var$isExplicitVersion(versionSpec) {\n const c = $ea5d4ae7756c835c$var$semver.clean(versionSpec) || \"\";\n $ea5d4ae7756c835c$var$core.debug(`isExplicit: ${c}`);\n const valid = $ea5d4ae7756c835c$var$semver.valid(c) != null;\n $ea5d4ae7756c835c$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$ea5d4ae7756c835c$exports.isExplicitVersion = $ea5d4ae7756c835c$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $ea5d4ae7756c835c$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $ea5d4ae7756c835c$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($ea5d4ae7756c835c$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $ea5d4ae7756c835c$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $ea5d4ae7756c835c$var$core.debug(`matched: ${version}`);\n else $ea5d4ae7756c835c$var$core.debug(\"match not found\");\n return version;\n}\n$ea5d4ae7756c835c$exports.evaluateVersions = $ea5d4ae7756c835c$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $ea5d4ae7756c835c$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $4umf8$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $ea5d4ae7756c835c$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $4umf8$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $ea5d4ae7756c835c$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $ea5d4ae7756c835c$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\nvar $zdagz = parcelRequire(\"zdagz\");\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\n\n\n\n\n\n\n\nfunction $9a4a93f779a8f772$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $1533841bc1073d6a$var$sevenZip;\nasync function $1533841bc1073d6a$export$eecfe186811d4a20(file, dest) {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(await $1533841bc1073d6a$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $bf272871df54e58d$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $1533841bc1073d6a$var$getSevenZip() {\n if ($1533841bc1073d6a$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $9a4a93f779a8f772$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $1533841bc1073d6a$var$sevenZip = \"7z\";\n }\n return $1533841bc1073d6a$var$sevenZip;\n}\nfunction $1533841bc1073d6a$export$7949938b2681a4f0(file, dest) {\n return $1533841bc1073d6a$export$eecfe186811d4a20(file, dest);\n}\nfunction $1533841bc1073d6a$export$6411c5cbab21135b(file, dest) {\n return $1533841bc1073d6a$export$eecfe186811d4a20(file, dest);\n}\nasync function $1533841bc1073d6a$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $zdagz.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $hHq4F.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $bf272871df54e58d$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\nvar $9f7bb4006737291a$exports = {};\n\"use strict\";\nObject.defineProperty($9f7bb4006737291a$exports, \"__esModule\", {\n value: true\n});\n$9f7bb4006737291a$exports.retryAsPromised = $9f7bb4006737291a$exports.TimeoutError = void 0;\nclass $9f7bb4006737291a$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$9f7bb4006737291a$exports.TimeoutError = $9f7bb4006737291a$var$TimeoutError;\nfunction $9f7bb4006737291a$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $9f7bb4006737291a$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $9f7bb4006737291a$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $9f7bb4006737291a$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $9f7bb4006737291a$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $9f7bb4006737291a$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$9f7bb4006737291a$exports.retryAsPromised = $9f7bb4006737291a$var$retryAsPromised;\n$9f7bb4006737291a$exports.default = $9f7bb4006737291a$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $d14c914d00b0f583$var$didInit = false;\nasync function $d14c914d00b0f583$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $hHq4F.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n var _process_env_RUNNER_TEMP;\n process.env.RUNNER_TEMP = (_process_env_RUNNER_TEMP = process.env.RUNNER_TEMP) !== null && _process_env_RUNNER_TEMP !== void 0 ? _process_env_RUNNER_TEMP : (0, $4umf8$os.tmpdir)();\n var _process_env_RUNNER_TOOL_CACHE;\n process.env.RUNNER_TOOL_CACHE = (_process_env_RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE) !== null && _process_env_RUNNER_TOOL_CACHE !== void 0 ? _process_env_RUNNER_TOOL_CACHE : (0, $eAXk4.join)((0, $4umf8$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $dAuy6.GITHUB_ACTIONS) try {\n const dir = (0, $ea5d4ae7756c835c$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $eAXk4.join)(dir, extractedFolderName);\n const binDir = (0, $eAXk4.join)(installDir, binRelativeDir);\n if (await (0, $6t4SD.pathExists)((0, $eAXk4.join)(binDir, binFileName))) {\n (0, $hHq4F.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $eAXk4.join)(setupDir, extractedFolderName);\n const binDir = (0, $eAXk4.join)(installDir, binRelativeDir);\n const binFile = (0, $eAXk4.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $6t4SD.pathExists)(binDir),\n (0, $6t4SD.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $hHq4F.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($9f7bb4006737291a$exports)))(()=>{\n return (0, $ea5d4ae7756c835c$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $hHq4F.info)(err)\n });\n if (!$d14c914d00b0f583$var$didInit) {\n (0, $hHq4F.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $d14c914d00b0f583$var$didInit = true;\n }\n (0, $hHq4F.info)(`Extracting ${downloaded} to ${setupDir}`);\n await (extractFunction === null || extractFunction === void 0 ? void 0 : extractFunction(downloaded, setupDir));\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $hHq4F.info)(`Add ${binDir} to PATH`);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $dAuy6.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $ea5d4ae7756c835c$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $6ca1cdfc8544c646$var$getCmakePackageInfo(version, platform, arch) {\n var _semverCoerce;\n const semVersion = (_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $6ca1cdfc8544c646$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"cmake\", version, $6ca1cdfc8544c646$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $4d02233aed1c3ded$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $4d02233aed1c3ded$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $4d02233aed1c3ded$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $4d02233aed1c3ded$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $4d02233aed1c3ded$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$4d02233aed1c3ded$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $4d02233aed1c3ded$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $4d02233aed1c3ded$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $4d02233aed1c3ded$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $4d02233aed1c3ded$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $4d02233aed1c3ded$var$cloneArray(this.keys),\n size: this.size,\n values: $4d02233aed1c3ded$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $4d02233aed1c3ded$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($4d02233aed1c3ded$var$isMemoized(fn)) return $4d02233aed1c3ded$export$2e2bcd8739ae039(fn.fn, $4d02233aed1c3ded$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $4d02233aed1c3ded$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $4d02233aed1c3ded$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $4d02233aed1c3ded$var$getCustomOptions(options));\n var cache = new $4d02233aed1c3ded$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $4d02233aed1c3ded$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $4d02233aed1c3ded$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $e0476fe98dd1f841$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $4umf8$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $4umf8$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $4umf8$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $4umf8$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $3ceeb88c547a6051$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $4umf8$path.dirname)(path);\n const opts = {\n ...(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $3ceeb88c547a6051$export$fa6f1b792dc805a5(path, opts, $3ceeb88c547a6051$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $3ceeb88c547a6051$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $3ceeb88c547a6051$export$96a3a6083628c9d8(parent, opts).then((made)=>$3ceeb88c547a6051$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $3ceeb88c547a6051$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461(opts, (0, $4umf8$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $43e5a3ee8e5c5324$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $43e5a3ee8e5c5324$export$5bbea51519185a10(opts, (0, $4umf8$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $ec3e5ed46dd66a1a$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $43e5a3ee8e5c5324$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $4umf8$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $43e5a3ee8e5c5324$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $3ceeb88c547a6051$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $ec3e5ed46dd66a1a$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $a172c31fe55ce100$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $a172c31fe55ce100$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $4umf8$path.resolve)(path);\n if ($a172c31fe55ce100$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $4umf8$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $80435a4f5171e068$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $80435a4f5171e068$var$versArr = $80435a4f5171e068$var$version.replace(/^v/, \"\").split(\".\");\nconst $80435a4f5171e068$var$hasNative = +$80435a4f5171e068$var$versArr[0] > 10 || +$80435a4f5171e068$var$versArr[0] === 10 && +$80435a4f5171e068$var$versArr[1] >= 12;\nconst $80435a4f5171e068$export$f32201cb36e5654a = !$80435a4f5171e068$var$hasNative ? ()=>false : (opts)=>(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $4umf8$fs.mkdirSync);\nconst $80435a4f5171e068$export$875f149e5ea533c1 = Object.assign(!$80435a4f5171e068$var$hasNative ? ()=>false : (opts)=>(0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts).mkdir === (0, $4umf8$fs.mkdir), {\n sync: $80435a4f5171e068$export$f32201cb36e5654a\n});\n\n\nconst $554b85e4d1826b8d$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $a172c31fe55ce100$export$84f52eb1a6059876)(path);\n const resolved = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts);\n return (0, $80435a4f5171e068$export$f32201cb36e5654a)(resolved) ? (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d)(path, resolved) : (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $554b85e4d1826b8d$export$92d6409d68f0739a = $554b85e4d1826b8d$export$f5e50515bfceb13b;\nconst $554b85e4d1826b8d$export$d5db38ffe1f43b01 = (0, $3ceeb88c547a6051$export$96a3a6083628c9d8);\nconst $554b85e4d1826b8d$export$36e1c11973ff5d6a = (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5);\nconst $554b85e4d1826b8d$export$e199e4a0c0335c4f = (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34);\nconst $554b85e4d1826b8d$export$dd70f1af61563969 = (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d);\nconst $554b85e4d1826b8d$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $a172c31fe55ce100$export$84f52eb1a6059876)(path);\n const resolved = (0, $e0476fe98dd1f841$export$edfda2f049ea6cd1)(opts);\n return (0, $80435a4f5171e068$export$875f149e5ea533c1)(resolved) ? (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34)(path, resolved) : (0, $3ceeb88c547a6051$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $554b85e4d1826b8d$export$f5e50515bfceb13b,\n mkdirpNative: $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $ec3e5ed46dd66a1a$export$abcdbcf229aec40d,\n mkdirpManual: $3ceeb88c547a6051$export$96a3a6083628c9d8,\n mkdirpManualSync: $3ceeb88c547a6051$export$fa6f1b792dc805a5,\n sync: $554b85e4d1826b8d$export$f5e50515bfceb13b,\n native: (0, $ec3e5ed46dd66a1a$export$efd8fb7a8c453d34),\n nativeSync: (0, $ec3e5ed46dd66a1a$export$abcdbcf229aec40d),\n manual: (0, $3ceeb88c547a6051$export$96a3a6083628c9d8),\n manualSync: (0, $3ceeb88c547a6051$export$fa6f1b792dc805a5),\n useNative: $80435a4f5171e068$export$875f149e5ea533c1,\n useNativeSync: $80435a4f5171e068$export$f32201cb36e5654a\n});\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $bHzmH = parcelRequire(\"bHzmH\");\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n// src/modules/https-utils.ts\n\n\nfunction $930bb3ec7bf38c88$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $930bb3ec7bf38c88$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $4umf8$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($930bb3ec7bf38c88$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $930bb3ec7bf38c88$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $4umf8$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $930bb3ec7bf38c88$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $930bb3ec7bf38c88$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $930bb3ec7bf38c88$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $930bb3ec7bf38c88$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $930bb3ec7bf38c88$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $jDqfd = parcelRequire(\"jDqfd\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\nfunction $d9c16e431e014540$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($jDqfd)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $d9c16e431e014540$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $d9c16e431e014540$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $d9c16e431e014540$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $d9c16e431e014540$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $d9c16e431e014540$export$5b54ecc7386538f(file, versionRegex = $d9c16e431e014540$export$d7ab5e2d33b06cd5) {\n try {\n var _version_output_trim_match;\n const execout = await (0, $bHzmH.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = (_version_output_trim_match = version_output.trim().match(versionRegex)) === null || _version_output_trim_match === void 0 ? void 0 : _version_output_trim_match[1];\n var _semverCoerce;\n return (_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $d9c16e431e014540$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $d9c16e431e014540$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $d9c16e431e014540$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($jDqfd)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $d9c16e431e014540$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version);\n if (coercedVersion !== null) {\n (0, $hHq4F.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $d9c16e431e014540$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $d9c16e431e014540$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $2e2fe846dc92ab85$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $a1e1d3689a86c9cd$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $a1e1d3689a86c9cd$export$5fb1985a02d8f66f = {\n llvm: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n clangtidy: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n clangformat: $a1e1d3689a86c9cd$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $a1e1d3689a86c9cd$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $a1e1d3689a86c9cd$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $8e03016ecb3dd99e$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $8e03016ecb3dd99e$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($4umf8$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $8e03016ecb3dd99e$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $8e03016ecb3dd99e$var$setupPipx(foundPython);\n await $8e03016ecb3dd99e$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$setupPipx(foundPython) {\n try {\n if (!await (0, $13d538bb32b1caca$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $13d538bb32b1caca$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $8e03016ecb3dd99e$var$setupWheel(foundPython) {\n try {\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $13d538bb32b1caca$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $hHq4F.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $8e03016ecb3dd99e$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $eAXk4.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $dAuy6.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $hHq4F.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"fEioR\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n const binDir = (0, $eAXk4.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $hHq4F.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $8e03016ecb3dd99e$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $8e03016ecb3dd99e$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $8e03016ecb3dd99e$var$findPython(setupDir);\n const binDir = (0, $eAXk4.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $eAXk4.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $8e03016ecb3dd99e$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $8e03016ecb3dd99e$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $eAXk4.join)(binDir, (0, $eAXk4.addExeExt)(candidate));\n if (await (0, $6t4SD.pathExists)(pythonBinPath)) {\n if (await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pythonBinPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n var _ref;\n const pythonBinPaths = (_ref = await (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports)))(candidate, {\n nothrow: true,\n all: true\n })) !== null && _ref !== void 0 ? _ref : [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pythonBinPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$findOrSetupPip(foundPython) {\n const maybePip = await $8e03016ecb3dd99e$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $hHq4F.info)(\"pip was not found. Installing pip\");\n await $8e03016ecb3dd99e$var$setupPip(foundPython);\n return $8e03016ecb3dd99e$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $8e03016ecb3dd99e$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $8e03016ecb3dd99e$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$isPipUptoDate(pip) {\n try {\n var _ref;\n const pipPaths = (_ref = await (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports)))(pip, {\n nothrow: true,\n all: true\n })) !== null && _ref !== void 0 ? _ref : [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $d9c16e431e014540$export$d1f0d32b896ba08)(pipPath, (0, $a1e1d3689a86c9cd$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $8e03016ecb3dd99e$var$setupPip(foundPython) {\n const upgraded = await $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $13d538bb32b1caca$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $8e03016ecb3dd99e$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $hHq4F.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $hHq4F.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $8e03016ecb3dd99e$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $bHzmH.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $eAXk4.join)(base_exec_prefix, \"Scripts\"), (0, $eAXk4.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $eAXk4.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $2e2fe846dc92ab85$export$7a5d5c156e7dc406)(dirs);\n}\nconst $8e03016ecb3dd99e$export$4bf645347c3b7001 = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($8e03016ecb3dd99e$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $8555a825dc64b9bc$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($8555a825dc64b9bc$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $a1e1d3689a86c9cd$export$1bb63c984aa6e760)) return $8555a825dc64b9bc$var$getDefaultLinuxVersion(osVersion, (0, $a1e1d3689a86c9cd$export$1bb63c984aa6e760)[name]);\n else if ($8555a825dc64b9bc$var$isVersionDefault(version) && name in (0, $a1e1d3689a86c9cd$export$5fb1985a02d8f66f)) return (0, $a1e1d3689a86c9cd$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version !== null && version !== void 0 ? version : \"\";\n}\nfunction $8555a825dc64b9bc$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $8555a825dc64b9bc$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $8555a825dc64b9bc$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$8555a825dc64b9bc$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $4bcf814693711658$exports = {};\n\"use strict\";\nObject.defineProperty($4bcf814693711658$exports, \"__esModule\", {\n value: true\n});\n$4bcf814693711658$exports.getUbuntuVersion = void 0;\n\nfunction $4bcf814693711658$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $4bcf814693711658$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $4umf8$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($4bcf814693711658$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $4bcf814693711658$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $4bcf814693711658$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$4bcf814693711658$exports.getUbuntuVersion = $4bcf814693711658$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $1c6f48b06ad43808$var$ubuntuVersion_raw() {\n try {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $1c6f48b06ad43808$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $4bcf814693711658$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $1c6f48b06ad43808$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $hHq4F.warning)(err.toString());\n return null;\n }\n}\nconst $1c6f48b06ad43808$export$49c9cf1111dfa0ee = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($1c6f48b06ad43808$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $1c6f48b06ad43808$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($4umf8$os))) && typeof (0, ($parcel$interopDefault($4umf8$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($4umf8$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $13d538bb32b1caca$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $13d538bb32b1caca$export$7c60aea099ad1c1d(await $13d538bb32b1caca$var$getPython(), name, version, options);\n}\nasync function $13d538bb32b1caca$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $13d538bb32b1caca$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $13d538bb32b1caca$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $1o3Gj.info)(`Installing ${name} ${version !== null && version !== void 0 ? version : \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $13d538bb32b1caca$var$getPipxHome();\n env.PIPX_BIN_DIR = await $13d538bb32b1caca$var$getPipxBinDir();\n }\n (0, $24f062d29362ada6$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $1o3Gj.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $13d538bb32b1caca$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $13d538bb32b1caca$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $8e03016ecb3dd99e$export$4bf645347c3b7001)(givenPython);\n const binDir = await $13d538bb32b1caca$var$findBinDir(execPaths, name);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $13d538bb32b1caca$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $24f062d29362ada6$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $13d538bb32b1caca$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $6t4SD.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"trash\"));\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"shared\"));\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)((0, $eAXk4.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $13d538bb32b1caca$var$getPipxHome = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $554b85e4d1826b8d$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $13d538bb32b1caca$var$getPipxBinDir = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$getPython_raw() {\n const pythonBin = (await (0, $8e03016ecb3dd99e$export$2b0b68e9df3d4a02)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $13d538bb32b1caca$var$getPython = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($13d538bb32b1caca$var$getPython_raw, {\n isPromise: true\n});\nasync function $13d538bb32b1caca$var$pipHasPackage(python, name) {\n const result = await (0, $24f062d29362ada6$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $13d538bb32b1caca$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $6t4SD.pathExists)((0, $eAXk4.join)(dir, (0, $eAXk4.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync((0, $eAXk4.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $eAXk4.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $13d538bb32b1caca$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $1o3Gj.info)(`Installing ${name} via the system package manager`);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $7fad98b8fc122c7f$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $287d43a812660c62$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $287d43a812660c62$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $287d43a812660c62$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\nasync function $84a50e6b88ef38c7$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"graphviz\", version);\n return $84a50e6b88ef38c7$var$activateGraphviz();\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $84a50e6b88ef38c7$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\n\n\n\n\nconst $c57761d5955de886$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $c57761d5955de886$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($4umf8$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $c57761d5955de886$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $982d84fff580fbb5$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $c57761d5955de886$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $982d84fff580fbb5$export$b16fc932ee62ae86 = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($982d84fff580fbb5$var$macosVersion_raw);\n\n\n\n\n\nasync function $b529bcde81561b30$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"aWBYj\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $4umf8$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $befd38d449a1dd77$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $ea5d4ae7756c835c$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $eAXk4.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $b529bcde81561b30$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $befd38d449a1dd77$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($9f7bb4006737291a$exports)))(()=>{\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $hHq4F.info)(err)\n });\n const binDir = await $befd38d449a1dd77$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $982d84fff580fbb5$export$b16fc932ee62ae86)()[0] > 11) await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() || (0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"doxygen\", version, $befd38d449a1dd77$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $hHq4F.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $84a50e6b88ef38c7$export$b885bd977caaafb9)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $befd38d449a1dd77$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $6t4SD.pathExists)((0, $eAXk4.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $6v1Be = parcelRequire(\"6v1Be\");\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $bHzmH = parcelRequire(\"bHzmH\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nasync function $b1bd4a63b941b63a$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $bHzmH.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $hHq4F.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $hHq4F.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $3f19caa876428bf4$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $3f19caa876428bf4$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $3f19caa876428bf4$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $3f19caa876428bf4$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $eAXk4.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $1533841bc1073d6a$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $3f19caa876428bf4$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"g++\", version, $3f19caa876428bf4$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $3f19caa876428bf4$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $hHq4F.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $3f19caa876428bf4$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $3f19caa876428bf4$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $3f19caa876428bf4$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) installationInfo = await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) installationInfo = await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $3f19caa876428bf4$var$setupChocoMingw(version, arch) {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n var _process_env_ChocolateyInstall, _process_env_ChocolateyInstall1;\n if (arch === \"x64\" && await (0, $6t4SD.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $6t4SD.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $6t4SD.pathExists)(`${(_process_env_ChocolateyInstall = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall !== void 0 ? _process_env_ChocolateyInstall : \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${(_process_env_ChocolateyInstall1 = process.env.ChocolateyInstall) !== null && _process_env_ChocolateyInstall1 !== void 0 ? _process_env_ChocolateyInstall1 : \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $3f19caa876428bf4$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", (0, $eAXk4.addExeExt)(`${binDir}/gcc`)), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", (0, $eAXk4.addExeExt)(`${binDir}/g++`)));\n else {\n var _semverCoerce;\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($lORAA)))((_semverCoerce = (0, (/*@__PURE__*/$parcel$interopDefault($6v1Be)))(version)) !== null && _semverCoerce !== void 0 ? _semverCoerce : version);\n if (majorVersion >= 5) {\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) promises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) promises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $b1bd4a63b941b63a$export$28f5fd35e3005b7a)());\n if (0, $dAuy6.GITHUB_ACTIONS) await $3f19caa876428bf4$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $3f19caa876428bf4$var$addGccLoggingMatcher() {\n const matcherPath = (0, $eAXk4.join)($3f19caa876428bf4$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $lORAA = parcelRequire(\"lORAA\");\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\n\nfunction $88e2c066ab70c051$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $88e2c066ab70c051$export$2a0488baf2a20c0f() {\n return (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $88e2c066ab70c051$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($lORAA)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $33611b5480e1148e$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $33611b5480e1148e$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $33611b5480e1148e$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $1533841bc1073d6a$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $33611b5480e1148e$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"ninja\", version, $33611b5480e1148e$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $b57152bab0b5e0d6$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/kcov\");\nfunction $b57152bab0b5e0d6$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $eAXk4.addExeExt)(\"kcov\"),\n extractFunction: (0, $1533841bc1073d6a$export$2ab07ac150064014)\n };\n}\nfunction $b57152bab0b5e0d6$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $eAXk4.addExeExt)(\"kcov\"),\n extractFunction: $b57152bab0b5e0d6$var$buildKcov\n };\n}\nasync function $b57152bab0b5e0d6$var$buildKcov(file, dest) {\n const out = await (0, $1533841bc1073d6a$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $b57152bab0b5e0d6$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $eAXk4.join)($b57152bab0b5e0d6$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $hHq4F.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $eAXk4.join)(out, \"build\");\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $b57152bab0b5e0d6$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $6ca1cdfc8544c646$export$c28663a621f418ce)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), (0, $eAXk4.join)((0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $eAXk4.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $33611b5480e1148e$export$e6190f4bfe2ef71)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), (0, $eAXk4.join)((0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $b57152bab0b5e0d6$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $hHq4F.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $d9c16e431e014540$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $d9c16e431e014540$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"kcov\", version, $b57152bab0b5e0d6$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"kcov\", version, $b57152bab0b5e0d6$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nclass $a133e2b2f2bba81b$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $a133e2b2f2bba81b$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $a133e2b2f2bba81b$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $a133e2b2f2bba81b$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $a133e2b2f2bba81b$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $a133e2b2f2bba81b$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $a133e2b2f2bba81b$var$getDOMException(reason);\n};\nfunction $a133e2b2f2bba81b$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($a133e2b2f2bba81b$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($a133e2b2f2bba81b$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $a133e2b2f2bba81b$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message !== null && message !== void 0 ? message : `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\nvar $f4af675fd1cc6e59$export$3c7cae5a162b1458;\nvar $f4af675fd1cc6e59$export$704f0be24425353b;\nvar $f4af675fd1cc6e59$export$f49c12d2898d28cb;\nvar $f4af675fd1cc6e59$export$a6a3bfb882356813;\nvar $f4af675fd1cc6e59$export$443b8bb890f5027e;\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\n\n\n\nconst $f4af675fd1cc6e59$var$PROGRAM_FILES_X86 = $4umf8$process.env[\"ProgramFiles(x86)\"];\nconst $f4af675fd1cc6e59$var$PROGRAM_FILES = [\n $4umf8$process.env[\"ProgramFiles(x86)\"],\n $4umf8$process.env[\"ProgramFiles\"]\n];\nconst $f4af675fd1cc6e59$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $f4af675fd1cc6e59$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $f4af675fd1cc6e59$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $f4af675fd1cc6e59$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($f4af675fd1cc6e59$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $f4af675fd1cc6e59$var$VsYearVersion) return $f4af675fd1cc6e59$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$f4af675fd1cc6e59$export$3c7cae5a162b1458 = $f4af675fd1cc6e59$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $f4af675fd1cc6e59$var$vsversion_to_year(vsversion) {\n if (Object.keys($f4af675fd1cc6e59$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($f4af675fd1cc6e59$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$f4af675fd1cc6e59$export$704f0be24425353b = $f4af675fd1cc6e59$var$vsversion_to_year;\nconst $f4af675fd1cc6e59$var$VSWHERE_PATH = `${$f4af675fd1cc6e59$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $f4af675fd1cc6e59$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $4umf8$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $1o3Gj.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$f4af675fd1cc6e59$export$f49c12d2898d28cb = $f4af675fd1cc6e59$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $f4af675fd1cc6e59$var$findVcvarsall(vsversion) {\n const vsversion_number = $f4af675fd1cc6e59$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $f4af675fd1cc6e59$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found with vswhere: ${path}`);\n return path;\n }\n $1o3Gj.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $f4af675fd1cc6e59$var$vsversion_to_year(vsversion)\n ] : $f4af675fd1cc6e59$var$YEARS;\n for (const prog_files of $f4af675fd1cc6e59$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $f4af675fd1cc6e59$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $1o3Gj.info(`Trying standard location: ${path}`);\n if ($4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $1o3Gj.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$f4af675fd1cc6e59$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($4umf8$fs.existsSync(path)) {\n $1o3Gj.info(`Found VS 2015: ${path}`);\n return path;\n }\n $1o3Gj.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$f4af675fd1cc6e59$export$a6a3bfb882356813 = $f4af675fd1cc6e59$var$findVcvarsall;\nfunction $f4af675fd1cc6e59$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $f4af675fd1cc6e59$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $f4af675fd1cc6e59$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($4umf8$process.platform != \"win32\") {\n $1o3Gj.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $4umf8$process.env.PATH += $4umf8$path.delimiter + $f4af675fd1cc6e59$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$f4af675fd1cc6e59$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $1o3Gj.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $4umf8$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $1o3Gj.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $1o3Gj.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($f4af675fd1cc6e59$var$isPathVariable(name)) new_value = $f4af675fd1cc6e59$var$filterPathValue(new_value);\n $1o3Gj.exportVariable(name, new_value);\n }\n }\n $1o3Gj.endGroup();\n $1o3Gj.info(`Configured Developer Command Prompt`);\n}\n$f4af675fd1cc6e59$export$443b8bb890f5027e = $f4af675fd1cc6e59$var$setupMSVCDevCmd;\n\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nfunction $95f7608dc9d76dc5$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $95f7608dc9d76dc5$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $6t4SD.pathExists)(VCTargetsPath)) {\n (0, $hHq4F.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $f4af675fd1cc6e59$export$443b8bb890f5027e)($95f7608dc9d76dc5$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $f6eafce5b5cfae6d$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb) {\n (0, $1o3Gj.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $a133e2b2f2bba81b$export$2e2bcd8739ae039)($f6eafce5b5cfae6d$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $hHq4F.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $1o3Gj.endGroup)();\n return hasLLVM;\n}\nasync function $f6eafce5b5cfae6d$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $5991c91eacfada05$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $eAXk4.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $a7d52bc5591bf6e8$var$readFile, writeFile: $a7d52bc5591bf6e8$var$writeFile, chmod: $a7d52bc5591bf6e8$var$chmod } = (0, $4umf8$fs.promises);\nvar $a7d52bc5591bf6e8$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($a7d52bc5591bf6e8$export$35fa309210df3df6 || ($a7d52bc5591bf6e8$export$35fa309210df3df6 = {}));\nasync function $a7d52bc5591bf6e8$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $24f062d29362ada6$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $a7d52bc5591bf6e8$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)(neededPackages);\n await $a7d52bc5591bf6e8$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $c93e0191c47e5f34$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $f6eafce5b5cfae6d$export$7bd623b29ec8e1eb)\n });\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $a7d52bc5591bf6e8$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $a7d52bc5591bf6e8$var$readFile(path, \"utf-8\");\n script = $a7d52bc5591bf6e8$var$debugScript(script);\n script = $a7d52bc5591bf6e8$var$nonInteractiveScript(script);\n script = $a7d52bc5591bf6e8$var$choosePackages(packages, script, majorVersion);\n script = await $a7d52bc5591bf6e8$var$removeConflictingPackages(script);\n script = $a7d52bc5591bf6e8$var$useNalaScript(script);\n await $a7d52bc5591bf6e8$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $a7d52bc5591bf6e8$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $a7d52bc5591bf6e8$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $4574e4c050df58da$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $4umf8$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $4574e4c050df58da$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $a7d52bc5591bf6e8$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $hlfY9 = parcelRequire(\"hlfY9\");\n\n\nconst $f8b442c18c88c2f2$export$aa5307f1aca77413 = (0, $d9c16e431e014540$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $f8b442c18c88c2f2$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $f8b442c18c88c2f2$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $f8b442c18c88c2f2$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $f8b442c18c88c2f2$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $f8b442c18c88c2f2$var$getDarwinUrl(version) {\n if ($f8b442c18c88c2f2$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\")) return $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n else return $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $f8b442c18c88c2f2$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $f8b442c18c88c2f2$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$f8b442c18c88c2f2$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $d9c16e431e014540$export$deb1064c8260c54c)($f8b442c18c88c2f2$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP) linuxVersion = $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $f8b442c18c88c2f2$var$UBUNTU_SUFFIX_MAP[$f8b442c18c88c2f2$var$MAX_UBUNTU];\n (0, $hHq4F.warning)(`Falling back to LLVM version ${$f8b442c18c88c2f2$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\")) return $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n else return $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $f8b442c18c88c2f2$var$getWin32Url(version) {\n if ($f8b442c18c88c2f2$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($hlfY9)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $f8b442c18c88c2f2$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $930bb3ec7bf38c88$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $f8b442c18c88c2f2$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $f8b442c18c88c2f2$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $f8b442c18c88c2f2$var$getDarwinUrl(version);\n case \"linux\":\n return $f8b442c18c88c2f2$export$ae24f9682a44836b(version);\n case \"win32\":\n return $f8b442c18c88c2f2$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $f8b442c18c88c2f2$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $d9c16e431e014540$export$4e4d3581f69a6d71)($f8b442c18c88c2f2$export$aa5307f1aca77413, platform, version, $f8b442c18c88c2f2$export$94df0e59ebebf4a7);\n (0, $hHq4F.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $eAXk4.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $1533841bc1073d6a$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $1533841bc1073d6a$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $6953eb5c011ad8ed$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/llvm\");\nasync function $6953eb5c011ad8ed$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $6953eb5c011ad8ed$var$setupLLVMWithoutActivation(version, setupDir, arch);\n var _installationInfo_installDir;\n await $6953eb5c011ad8ed$export$6238b5ebfd6640e7((_installationInfo_installDir = installationInfo.installDir) !== null && _installationInfo_installDir !== void 0 ? _installationInfo_installDir : setupDir);\n return installationInfo;\n}\nasync function $6953eb5c011ad8ed$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch),\n $6953eb5c011ad8ed$var$setupLLVMDeps(arch),\n $6953eb5c011ad8ed$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $6953eb5c011ad8ed$var$setupLLVMWithoutActivation = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $6953eb5c011ad8ed$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch, (0, $a7d52bc5591bf6e8$export$35fa309210df3df6).ClangFormat);\n}\nfunction $6953eb5c011ad8ed$export$814ccfc953503728(version, setupDir, arch) {\n return $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $6953eb5c011ad8ed$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $a7d52bc5591bf6e8$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $d9c16e431e014540$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return await (0, $a7d52bc5591bf6e8$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $hHq4F.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"llvm\", version, (0, $f8b442c18c88c2f2$export$f203993d12226a27), setupDir, arch);\n await $6953eb5c011ad8ed$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $6953eb5c011ad8ed$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $6953eb5c011ad8ed$var$llvmBinaryDeps = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $6953eb5c011ad8ed$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $3f19caa876428bf4$export$405fab3de79b77b)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $6953eb5c011ad8ed$var$setupLLVMDeps = (0, $4d02233aed1c3ded$export$2e2bcd8739ae039)($6953eb5c011ad8ed$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $6953eb5c011ad8ed$export$6238b5ebfd6640e7(directory) {\n var _process_env_LD_LIBRARY_PATH;\n const ld = (_process_env_LD_LIBRARY_PATH = process.env.LD_LIBRARY_PATH) !== null && _process_env_LD_LIBRARY_PATH !== void 0 ? _process_env_LD_LIBRARY_PATH : \"\";\n var _process_env_DYLD_LIBRARY_PATH;\n const dyld = (_process_env_DYLD_LIBRARY_PATH = process.env.DYLD_LIBRARY_PATH) !== null && _process_env_DYLD_LIBRARY_PATH !== void 0 ? _process_env_DYLD_LIBRARY_PATH : \"\";\n const actPromises = [\n // the output of this action\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $4umf8$path.delimiter)}${ld}`),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $4umf8$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", (0, $eAXk4.addExeExt)(`${directory}/bin/clang`)),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", (0, $eAXk4.addExeExt)(`${directory}/bin/clang++`)),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $b1bd4a63b941b63a$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $4574e4c050df58da$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $6953eb5c011ad8ed$var$addLLVMLoggingMatcher() {\n if (0, $dAuy6.GITHUB_ACTIONS) {\n const matcherPath = (0, $eAXk4.join)($6953eb5c011ad8ed$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $90d27b925e8078c3$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $66785be328e24e8f$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $13d538bb32b1caca$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $dAuy6 = parcelRequire(\"dAuy6\");\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $ca61f3433f42990a$var$$parcel$__dirname = $4umf8$path.resolve(__dirname, \"../../src/msvc\");\nasync function $ca61f3433f42990a$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $f4af675fd1cc6e59$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $hHq4F.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $f4af675fd1cc6e59$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $hHq4F.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $hHq4F.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $hHq4F.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $dAuy6.GITHUB_ACTIONS) await $ca61f3433f42990a$var$addMSVCLoggingMatcher();\n}\nasync function $ca61f3433f42990a$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $eAXk4.join)($ca61f3433f42990a$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $6t4SD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\nlet $8ef6bee7cd8d9504$var$binDir;\nasync function $8ef6bee7cd8d9504$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $8ef6bee7cd8d9504$var$binDir === \"string\") return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $8ef6bee7cd8d9504$var$binDir = (0, $eAXk4.dirname)(maybeBinDir);\n return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $4574e4c050df58da$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $8ef6bee7cd8d9504$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $8ef6bee7cd8d9504$var$binDir\n };\n}\nfunction $8ef6bee7cd8d9504$export$2747aa8ef20f818d(script) {\n if ((0, $4574e4c050df58da$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $e30a94480cbacda6$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $e30a94480cbacda6$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $e30a94480cbacda6$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $2c142710d07a1d78$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) return (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) {\n (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) {\n await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $c93e0191c47e5f34$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $87794de984c43d77$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $9fccd3400da2cfd8$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $7ad09143f110687f$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n/** Get the platform name task uses in their download links */ function $3633ba871f8ac84b$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $3633ba871f8ac84b$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $3633ba871f8ac84b$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $3633ba871f8ac84b$var$getTaskPlatform(platform);\n const taskArch = $3633ba871f8ac84b$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $eAXk4.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $1533841bc1073d6a$export$6411c5cbab21135b) : (0, $1533841bc1073d6a$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $3633ba871f8ac84b$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $d14c914d00b0f583$export$334f77c9844c21f6)(\"task\", version, $3633ba871f8ac84b$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $6t4SD = parcelRequire(\"6t4SD\");\n\nvar $eAXk4 = parcelRequire(\"eAXk4\");\n\n\n\n\n\n\n\n\nlet $937e45ed2ed39257$var$hasVCPKG = false;\nasync function $937e45ed2ed39257$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$937e45ed2ed39257$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $07c9db864ea9c735$export$8ce8b4b22331a8c7)()) await (0, $5e892f3aba3794f6$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $c304217cbb6a03a7$export$da8baf1d6c6802b6)()) await (0, $4574e4c050df58da$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $6t4SD.pathExists)((0, $eAXk4.join)(setupDir, (0, $eAXk4.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $24f062d29362ada6$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $eAXk4.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $hHq4F.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $24f062d29362ada6$export$28823a701bb5a12d)((0, $eAXk4.addShExt)((0, $eAXk4.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $bf272871df54e58d$export$4718e061a205eab)(setupDir);\n await (0, $fcca2ee3cb52e97b$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $937e45ed2ed39257$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $eAXk4.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($71cfef4812d1fa23$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $5991c91eacfada05$export$18a3521ac7306af4 = {\n nala: (0, $8ef6bee7cd8d9504$export$d73cbe8caeff03c5),\n cmake: (0, $6ca1cdfc8544c646$export$c28663a621f418ce),\n ninja: (0, $33611b5480e1148e$export$e6190f4bfe2ef71),\n python: (0, $8e03016ecb3dd99e$export$2b0b68e9df3d4a02),\n vcpkg: (0, $937e45ed2ed39257$export$490bdba4ef3e3f82),\n bazel: (0, $671d2451576f7242$export$a66bc93580b0a849),\n conan: (0, $7fad98b8fc122c7f$export$249d0c7d779d362f),\n meson: (0, $66785be328e24e8f$export$f73905553f087748),\n gcovr: (0, $88e2c066ab70c051$export$b98d69f362caf61f),\n opencppcoverage: (0, $e30a94480cbacda6$export$6aa28a97600a8ae3),\n llvm: (0, $6953eb5c011ad8ed$export$3016de7ae9d14988),\n gcc: (0, $3f19caa876428bf4$export$405fab3de79b77b),\n choco: (0, $fd45706685edd4a7$export$b804d731cdad7ef9),\n brew: (0, $86d7dd00a0f99d9c$export$c5eeb9c87a610a0e),\n powershell: (0, $2c142710d07a1d78$export$1ff6ad96ee130aba),\n ccache: (0, $e2bfdac6c7112ded$export$111263621bbb0768),\n sccache: (0, $87794de984c43d77$export$b963b67cda80fdc),\n doxygen: (0, $befd38d449a1dd77$export$b6e6613a954051ee),\n graphviz: (0, $84a50e6b88ef38c7$export$b885bd977caaafb9),\n cppcheck: (0, $287d43a812660c62$export$13d77464c548b5d3),\n clangtidy: (0, $6953eb5c011ad8ed$export$814ccfc953503728),\n clangformat: (0, $6953eb5c011ad8ed$export$1cf2d186cecf1f54),\n msvc: (0, $ca61f3433f42990a$export$a91ef0362c1a7298),\n vcvarsall: (0, $95f7608dc9d76dc5$export$5dcf571c91fc8369),\n kcov: (0, $b57152bab0b5e0d6$export$abb7c2ff987b1f6b),\n make: (0, $90d27b925e8078c3$export$b0a9411329e2916),\n task: (0, $3633ba871f8ac84b$export$4456b3a3d3540077),\n sevenzip: (0, $9a4a93f779a8f772$export$5fc39629e14c8173)\n};\nconst $5991c91eacfada05$export$904054328df186b = Object.keys($5991c91eacfada05$export$18a3521ac7306af4);\nconst $5991c91eacfada05$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$5991c91eacfada05$export$904054328df186b\n];\n\n\nfunction $5e34b9b876d96316$export$7300a92932ee17a3(args) {\n return (0, $6973f06ebfc9a33d$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $5991c91eacfada05$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $5991c91eacfada05$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $5e34b9b876d96316$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $5e34b9b876d96316$export$f57ebcae4da846e4() {\n (0, $hHq4F.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $5e34b9b876d96316$export$fc4ce4d885cb1082(key) {\n const value = (0, $1o3Gj.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $5e34b9b876d96316$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $1o3Gj = parcelRequire(\"1o3Gj\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\n\nvar $2kZmC = parcelRequire(\"2kZmC\");\n\n\n\n\n\n\n\nfunction $378d5e7e39d04cd9$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($2kZmC)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $hHq4F.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $378d5e7e39d04cd9$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $378d5e7e39d04cd9$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $1o3Gj.startGroup)(`Installing ${compiler} ${version !== null && version !== void 0 ? version : \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $6953eb5c011ad8ed$export$3016de7ae9d14988)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $4umf8$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $88e2c066ab70c051$export$2a0488baf2a20c0f)();\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $3f19caa876428bf4$export$f115c01d224b9e9a)(gccVersion, (0, $4umf8$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $3f19caa876428bf4$export$405fab3de79b77b)(gccVersion, (0, $4umf8$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $88e2c066ab70c051$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $ca61f3433f42990a$export$a91ef0362c1a7298)((0, $8555a825dc64b9bc$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $4umf8$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $1o3Gj.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $fcca2ee3cb52e97b$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $5e34b9b876d96316$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $hHq4F.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $1o3Gj.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $1ae0f1c1ace0f6af$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $dAuy6.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $c67d54237e946289$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $5e34b9b876d96316$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $5e34b9b876d96316$export$f57ebcae4da846e4)();\n var _opts_architecture;\n // cpu architecture\n const arch = (_opts_architecture = opts.architecture) !== null && _opts_architecture !== void 0 ? _opts_architecture : process.arch;\n var _process_env_SETUP_CPP_DIR;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = (_process_env_SETUP_CPP_DIR = process.env.SETUP_CPP_DIR) !== null && _process_env_SETUP_CPP_DIR !== void 0 ? _process_env_SETUP_CPP_DIR : (0, $f19d14aa12f0fb90$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $d8d049814738d806$exports.create({\n autoloadLocales: true\n });\n $d8d049814738d806$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($320f558e5d3a9246$exports))));\n $6OFKY.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($4af6780aae15e7aa$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $1c6f48b06ad43808$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $8555a825dc64b9bc$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $hHq4F.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $64f7d4d3c6118037$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $hHq4F.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $48b5fe4903818be0$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $5991c91eacfada05$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $dAuy6.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n var _opts_timeout;\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $f6eafce5b5cfae6d$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat((_opts_timeout = opts.timeout) !== null && _opts_timeout !== void 0 ? _opts_timeout : \"20\") * 60000);\n time2 = Date.now();\n (0, $hHq4F.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $378d5e7e39d04cd9$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $hHq4F.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $fcca2ee3cb52e97b$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $hHq4F.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $hHq4F.success)(tool));\n errorMessages.forEach((tool)=>(0, $hHq4F.error)(tool));\n (0, $hHq4F.info)(\"setup-cpp finished\");\n if (!(0, $dAuy6.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $hHq4F.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $hHq4F.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$1ae0f1c1ace0f6af$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $hHq4F.error)(\"main() panicked!\");\n (0, $hHq4F.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.1abb15a9.js\"))).then(() => parcelRequire('8L9T2'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.09e25805.js\"))).then(() => parcelRequire('1PWvB'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, sourceCpprc } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await sourceCpprc()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFile, readFile, writeFile } from \"fs/promises\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n if (options.shouldAddOnlyIfNotDefined) {\n await appendFile(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n await appendFile(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n await appendFile(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function sourceCpprc() {\n if (setupCppInProfile_called) {\n return\n }\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n await Promise.all([\n addCpprcHeader(),\n sourceCpprcInProfile(source_cpprc_string),\n sourceCpprcInBashrc(source_cpprc_string),\n ])\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nasync function addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = await readFile(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await appendFile(cpprc_path, `\\n${cpprc_header}\\n`)\n info(`Added ${cpprc_header} to ${cpprc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInBashrc(source_cpprc_string: string) {\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = await readFile(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n await appendFile(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInProfile(source_cpprc_string: string) {\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = await readFile(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n await appendFile(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = (await readFile(cpprc_path, \"utf-8\")).split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n await writeFile(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAAS,CAAAC,EAAOR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AAA,CAAO,YACPC,WAAA,CAAY,gCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,iCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,sBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,UACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CACA,oEACAC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,UACPC,WAAA,CAAY,WACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,SACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,gDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,qDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,oBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,eACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,QACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,gBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,SACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CA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C7DqFtFlC,EAAA,CAAK3jB,OAAA,CAAQy/C,IAAI,EACd72C,IAAI,CAAC7J,CAAC,GACLiB,OAAA,CAAQkG,QAAQ,CAAGnH,CACrB,IACC0V,KAAK,CAAC1V,CAAC,GACN,GAAA4K,EAAA,CAAA3E,KAAI,EAAE,oBACN,GAAA2E,EAAA,CAAA3E,KAAI,EAAEjG,CAAA,EACNiB,OAAA,CAAQkG,QAAQ,CAAG,CACrB","ignoreList":[]} \ No newline at end of file diff --git a/dist/modern/setup-cpp.js b/dist/modern/setup-cpp.js index af82f0ee..267dc21e 100644 --- a/dist/modern/setup-cpp.js +++ b/dist/modern/setup-cpp.js @@ -1,18 +1,18 @@ #!/usr/bin/env node -let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rF(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rj.sync(e.command,{path:n[rG({env:n})],pathExt:t?n1.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n1.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iR&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rk(e,t,r),i=rt.spawn(n.command,n.args,n.options);return rX.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ra).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ra).cwd(),path:n=c(ra).env[v()],execPath:i=c(ra).execPath}=e,o=i instanceof URL?c(rl).fileURLToPath(i):i,s=r instanceof URL?c(rl).fileURLToPath(r):r,a=c(ro).resolve(s),l=[];for(;t!==a;)l.push(c(ro).join(a,"node_modules/.bin")),t=a,a=c(ro).resolve(a,"..");return l.push(c(ro).resolve(s,o,"..")),[...l,n].join(c(ro).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r0(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=rQ.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await od(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new of());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oG(e,t,r),o=oA(e,t),s=o$(e,t);oM(s,i.options),oa(i.options);try{n=c(rs).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rs).ChildProcess)();return oS(e,Promise.reject(iV({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oO(n),l=os(n,i.options,a),u=ol(n,i.options,l),p={isCanceled:!1};n.kill=i9.bind(null,n.kill.bind(n)),n.cancel=oi.bind(null,n,p);let d=rK(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await ob(n,i.options,u),f=oB(i.options,l),h=oB(i.options,c),m=oB(i.options,d);if(e||0!==t||null!==r){let l=iV({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return oE(n,i.options),n.all=oy(n,i.options),op(n),oS(n,d),n;}function b(e,t,r){let n;let i=oG(e,t,r),o=oA(e,t),s=o$(e,t);oM(s,i.options);let a=ov(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iV({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oB(i.options,n.stdout,n.error),u=oB(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iV({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function R(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(rT).sync("sudo",{nothrow:!0});}function I(e,t=[],r=oq){return R()?function(e,t){let[r,...n]=o_(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function S(e,t=[],r=oq){return R()?function(e,t){let[r,...n]=o_(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function C(e){if(("linux"===process.platform||"darwin"===process.platform)&&R()&&void 0!==process.env.SUDO_USER){let t=c(n2).statSync(e).isDirectory();await S("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oq);}}function A(e){let t=function(){if(R()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n1.join)("/Users/",process.env.SUDO_USER):(0,n1.join)("/home/",process.env.SUDO_USER);{let e=(0,n0.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oz,t);}function $(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sd(n,i.options,u),f=s_(i.options,l),h=s_(i.options,c),m=s_(i.options,d);if(e||0!==t||null!==r){let l=oJ({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sl(n,i.options),n.all=sc(n,i.options),sn(n),sm(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(rT).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(rT).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function M(e,t,r=sL){let n={...sL,...r},i=function(e,t=!1){let r=t?c(nm)(e):e;return c(nv)(r,'"',"\\");}(t??"",n.shouldEscapeSpace);try{if(rx.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nf.exportVariable)(e,i);}catch(t){(0,rb.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function F(e){if(!(sD.some(t=>t.test(e))&&(process.env.PATH?.split(n1.delimiter)??[]).includes(e))){process.env.PATH=`${e}${n1.delimiter}${process.env.PATH}`;try{if(rx.GITHUB_ACTIONS)try{(0,nf.addPath)(e);}catch(t){(0,rb.error)(t),await B(e);}else await B(e);}catch(t){(0,rb.error)(t),(0,nf.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nf.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nf.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?((0,n2.appendFileSync)(sk,` +let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rH(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rG.sync(e.command,{path:n[rV({env:n})],pathExt:t?n3.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n3.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iO&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rF(e,t,r),i=ri.spawn(n.command,n.args,n.options);return rY.hookChildProcess(i,n),i;}function m(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function v(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function g({env:e=c(ru).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ru).cwd(),path:n=c(ru).env[v()],execPath:i=c(ru).execPath}=e,o=i instanceof URL?c(rp).fileURLToPath(i):i,s=r instanceof URL?c(rp).fileURLToPath(r):r,a=c(rl).resolve(s),l=[];for(;t!==a;)l.push(c(rl).join(a,"node_modules/.bin")),t=a,a=c(rl).resolve(a,"..");return l.push(c(rl).resolve(s,o,"..")),[...l,n].join(c(rl).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r4(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r1.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await om(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new ov());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oV(e,t,r),o=oN(e,t),s=oP(e,t);oB(s,i.options),ou(i.options);try{n=c(rc).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rc).ChildProcess)();return oC(e,Promise.reject(iX({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oA(n),l=oc(n,i.options,a),u=op(n,i.options,l),p={isCanceled:!1};n.kill=or.bind(null,n.kill.bind(n)),n.cancel=oa.bind(null,n,p);let d=rJ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await oS(n,i.options,u),f=oq(i.options,l),h=oq(i.options,c),m=oq(i.options,d);if(e||0!==t||null!==r){let l=iX({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ox(n,i.options),n.all=ob(n,i.options),oh(n),oC(n,d),n;}function b(e,t,r){let n;let i=oV(e,t,r),o=oN(e,t),s=oP(e,t);oB(s,i.options);let a=oy(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iX({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oq(i.options,n.stdout,n.error),u=oq(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iX({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function R(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(r$).sync("sudo",{nothrow:!0});}function I(e,t=[],r=oK){return R()?function(e,t){let[r,...n]=oL(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function S(e,t=[],r=oK){return R()?function(e,t){let[r,...n]=oL(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function C(e){if(("linux"===process.platform||"darwin"===process.platform)&&R()&&void 0!==process.env.SUDO_USER){let t=c(n6).statSync(e).isDirectory();await S("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oK);}}function A(e){let t=function(){if(R()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n3.join)("/Users/",process.env.SUDO_USER):(0,n3.join)("/home/",process.env.SUDO_USER);{let e=(0,n4.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oW,t);}function $(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function _(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sm(n,i.options,u),f=sL(i.options,l),h=sL(i.options,c),m=sL(i.options,d);if(e||0!==t||null!==r){let l=o0({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sp(n,i.options),n.all=sd(n,i.options),ss(n),sE(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(r$).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r$).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sU){let n={...sU,...r},i=function(e,t=!1){let r=t?c(nE)(e):e;return c(ny)(r,'"',"\\");}(t??"",n.shouldEscapeSpace);try{if(rI.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nv.exportVariable)(e,i);}catch(t){(0,rS.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rS.error)(t),(0,nv.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function M(e){if(!(sj.some(t=>t.test(e))&&(process.env.PATH?.split(n3.delimiter)??[]).includes(e))){process.env.PATH=`${e}${n3.delimiter}${process.env.PATH}`;try{if(rI.GITHUB_ACTIONS)try{(0,nv.addPath)(e);}catch(t){(0,rS.error)(t),await B(e);}else await B(e);}catch(t){(0,rS.error)(t),(0,nv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nv.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?(await(0,rN.appendFile)(sF,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi -`),(0,nf.info)(`if not defined ${e} then ${e}="${n}" was added to "${sk}`)):((0,n2.appendFileSync)(sk,` +`),(0,nv.info)(`if not defined ${e} then ${e}="${n}" was added to "${sF}`)):(await(0,rN.appendFile)(sF,` export ${e}="${n}" -`),(0,nf.info)(`${e}="${n}" was added to "${sk}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nf.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),(0,n2.appendFileSync)(sk,` +`),(0,nv.info)(`${e}="${n}" was added to "${sF}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,rN.appendFile)(sF,` export PATH="${e}:$PATH" -`),(0,nf.info)(`"${e}" was added to "${sk}"`);return;default:return;}}async function H(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,nh.pathExists)(sk))&&!(0,n2.readFileSync)(sk,"utf8").includes(e)&&((0,n2.appendFileSync)(sk,` -${e} -`),(0,nf.info)(`Added ${e} to ${sk}`));let t=` +`),(0,nv.info)(`"${e}" was added to "${sF}"`);return;default:return;}}async function H(){if(sM)return;let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 -if [[ "$SOURCE_CPPRC" != 0 && -f "${sk}" ]]; then source "${sk}"; fi -`;try{let e=A("~/.profile");(await(0,nh.pathExists)(e))&&!(0,n2.readFileSync)(e,"utf-8").includes(t)&&((0,n2.appendFileSync)(e,t),(0,nf.info)(`${t} was added to ${e}`));let r=A("~/.bashrc");(await(0,nh.pathExists)(r))&&!(0,n2.readFileSync)(r,"utf-8").includes(t)&&((0,n2.appendFileSync)(r,t),(0,nf.info)(`${t} was added to ${r}`));}catch(e){(0,rb.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sU=!0;}async function V(){if(await(0,nh.pathExists)(sk)){let e=[...new Set((0,n2.readFileSync)(sk,"utf-8").split("\n").reverse())].reverse();(0,n2.writeFileSync)(sk,e.join("\n")),await C(sk);}}async function q(e,t=!1){let r;let n=K()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sM||t)&&(W(n),sM=!0),sF||(await Y(n),sF=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)I("add-apt-repository",["-y",e]);W(n);}let o=await Promise.all(e.map(e=>X(e.name,e.version)));try{I(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sG.some(e=>t.includes(e))&&((0,rb.warning)(`Failed to install packages ${o}. Retrying...`),I(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function z(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,ng.default)(e)}-${(0,ng.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function X(e,t){switch(await z(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${t??""}`);}}function K(){return null!==c(rT).sync("nala",{nothrow:!0});}function W(e){I(e,"nala"!==e?["update","-y"]:["update"]);}async function Y(e){I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[Q(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),Q(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(M("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),M("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function J(){I("gpg",["-k"]);}async function Q(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nh.pathExists)(n))||(J(),await Promise.all(e.map(async e=>{await S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await S("chmod",["644",n]);}))),n;}catch(e){(0,rb.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function Z(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nh.pathExists)(r))||(J(),await q([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),I("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),I("chmod",["644",r])),r;}async function ee(e,t,r=40){return rx.GITHUB_ACTIONS?S("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sj(sk,` +if [[ "$SOURCE_CPPRC" != 0 && -f "${sF}" ]]; then source "${sF}"; fi +`;try{await Promise.all([V(),z(e),q(e)]);}catch(t){(0,rS.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${t}`);}sM=!0;}async function V(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,ng.pathExists)(sF))&&!(await(0,rN.readFile)(sF,"utf8")).includes(e)&&(await(0,rN.appendFile)(sF,` +${e} +`),(0,nv.info)(`Added ${e} to ${sF}`));}async function q(e){let t=A("~/.bashrc");(await(0,ng.pathExists)(t))&&!(await(0,rN.readFile)(t,"utf-8")).includes(e)&&(await(0,rN.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function z(e){let t=A("~/.profile");(await(0,ng.pathExists)(t))&&!(await(0,rN.readFile)(t,"utf-8")).includes(e)&&(await(0,rN.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function X(){if(await(0,ng.pathExists)(sF)){let e=[...new Set((await(0,rN.readFile)(sF,"utf-8")).split("\n").reverse())].reverse();await(0,rN.writeFile)(sF,e.join("\n")),await C(sF);}}async function K(e,t=!1){let r;let n=J()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rS.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sB||t)&&(Q(n),sB=!0),sH||(await Z(n),sH=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)I("add-apt-repository",["-y",e]);Q(n);}let o=await Promise.all(e.map(e=>Y(e.name,e.version)));try{I(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sV.some(e=>t.includes(e))&&((0,rS.warning)(`Failed to install packages ${o}. Retrying...`),I(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function W(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,nw.default)(e)}-${(0,nw.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function Y(e,t){switch(await W(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${t??""}`);}}function J(){return null!==c(r$).sync("nala",{nothrow:!0});}function Q(e){I(e,"nala"!==e?["update","-y"]:["update"]);}async function Z(e){I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[et(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),et(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function ee(){I("gpg",["-k"]);}async function et(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,ng.pathExists)(n))||(ee(),await Promise.all(e.map(async e=>{await S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await S("chmod",["644",n]);}))),n;}catch(e){(0,rS.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function er(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,ng.pathExists)(r))||(ee(),await K([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),I("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),I("chmod",["644",r])),r;}async function en(e,t,r=40){return rI.GITHUB_ACTIONS?S("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),sG(sF,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi -`));}async function et(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function er(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(rT).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,ny.dirname)(i)};let o=c(n1).join((0,n0.tmpdir)(),"setup-cpp","brew");await(0,nw.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n1.join)(o,"install.sh");return"linux"===process.platform&&(0,n2.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=en(),await F(t),{binDir:t};}function en(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ei(e,t,r=[]){(0,nf.info)(`Installing ${e} ${t??""} via brew`),sB&&null!==c(rT).sync("brew",{nothrow:!0})||(await er("","",process.arch),sB=!0);let n=en();return b((0,ny.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function eo(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(rT).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,ny.dirname)(i)};let o="powershell.exe",s=c(rT).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await F(a);let l=c(rT).sync("choco",{nothrow:!0});if(r=null!==l?(0,ny.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nh.pathExists)(r))return{binDir:r};}async function es(e,t,r=[]){(0,rb.info)(`Installing ${e} ${t??""} via chocolatey`),sH&&null!==c(rT).sync("choco",{nothrow:!0})||(await eo("","",process.arch),sH=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rb.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await F(o),{binDir:o};}async function ea(e){for(let{name:t,version:r}of e)(0,rb.info)(`Installing ${t} ${r??""} via dnf`);return I("dnf",["-y","install",...(await Promise.all(e.map(e=>el(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function el(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rb.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ec(e,t,r){switch(process.platform){case"win32":return es("bazelisk",e);case"darwin":return ei("bazelisk",e);case"linux":if(D())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await ea([{name:"dnf-plugins-core"}]),I("dnf",["copr","enable","vbatts/bazel"]),ea([{name:"bazel4"}]);if(k()){let t=await Z("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return I("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),q([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eu(e,t,r){(0,rb.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(rT).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sV||"yay"===r||(I(n,["-Sy","--noconfirm"]),sV=!0),sq||"yay"===r||(I(n,["-S","--noconfirm","base-devel"]),sq=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):I(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await ep(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rb.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ep(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sz))r.push(e[1]);}catch(e){(0,rb.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ed(e,t){let r=[];t=t||sJ.arch();let n=sQ.join(eE(),e);if(sW.existsSync(n)){for(let e of sW.readdirSync(n))if(ev(e)){let i=sQ.join(n,e,t||"");sW.existsSync(i)&&sW.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ef(e){return nO(this,void 0,void 0,function*(){return e||(e=sQ.join(ey(),s4.default())),yield sK.mkdirP(e),e;});}function eh(e,t,r){return nO(this,void 0,void 0,function*(){let n=sQ.join(eE(),e,s0.clean(t)||t,r||"");sX.debug("destination "+n);let i=`${n}.complete`;return yield sK.rmRF(n),yield sK.rmRF(i),yield sK.mkdirP(n),n;});}function em(e,t,r){let n=sQ.join(eE(),e,s0.clean(t)||t,r||""),i=`${n}.complete`;sW.writeFileSync(i,""),sX.debug("finished caching tool");}function ev(e){let t=s0.clean(e)||"";sX.debug("isExplicit: "+t);let r=null!=s0.valid(t);return sX.debug("explicit? "+r),r;}function eg(e,t){let r="";sX.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s0.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s0.satisfies(i,t)){r=i;break;}}return r?sX.debug("matched: "+r):sX.debug("match not found"),r;}function eE(){let e=process.env.RUNNER_TOOL_CACHE||"";return t7.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ey(){let e=process.env.RUNNER_TEMP||"";return t7.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ew(e,t){let r=rv[e];return void 0!==r?r:t;}function ex(e,t,r){switch(process.platform){case"win32":return es("7zip",e);case"darwin":return ei("p7zip",e);case"linux":if(D())return eu("p7zip",e);if(L())return ea([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(k())return q([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,t){return await x(await eR(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await C(t),t;}async function eR(){return void 0===n&&(null===c(rT).sync("7z",{nothrow:!0})&&(await ex("","",process.arch)),n="7z"),n;}function eI(e,t){return eb(e,t);}function eS(e,t){return eb(e,t);}async function eO(e,t,r=["--strip-components=0"]){try{await(0,nw.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rb.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return C(t),t;}function eT(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new s7(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nx.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});s9||((0,rb.info)("Installing extraction dependencies"),"linux"===process.platform&&(D()?await Promise.all([eu("unzip"),eu("tar"),eu("xz")]):L()?await ea([{name:"unzip"},{name:"tar"},{name:"xz"}]):k()&&(await q([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),s9=!0),(0,rb.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,rb.info)(`Add ${d} to PATH`),await F(d),rx.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nx.cacheDir)(n,e,t)),{installDir:p,binDir:d};}function eA(e,t,r){let n=c(nL)(e)??e;switch(t){case"win32":{let t;let i=c(nD)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eS,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nD)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(nD)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nx.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function e$(e,t,r){return eC("cmake",e,eA,t,r);}function e_(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nj.call(e,0):[];}function eN(e,t){return e===t||e!=e&&t!=t;}function eP(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eL(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eL(e.fn,eP(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=eP({isEqual:void 0===r?eN:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nU[r]||(t[r]=e[r]);return t;}(t)),d=new nM(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?e_(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:e_(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function eD(e,t){return new Promise(r=>{try{let n=(0,n6.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function ek(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nB)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eU(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nG(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of ek(e,r)){let e=await n(t,o);if(null!==e){if(await nG(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function ej(e,t=am){try{let r=await(0,nC.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(nL)(i)??void 0;}catch(e){console.error(e);return;}}async function eM(e,t,r=am){let n=await ej(e,r);return void 0!==n&&""!==t&&-1!==c(nB)(n,t);}function eF(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eG(e,t,r){let n=await eV(e,t,r);c(t7)(void 0!==n.bin);let i=n.bin;if(void 0===(await eK(i)))throw Error("pip was not installed correctly");return await eB(i),await eH(i),n;}async function eB(e){try{if(!(await e5(e)))try{await e8(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===tn("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e8(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eH(e){try{await e8(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e8(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rb.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eV(e,t,r){let n;let i=await ez(t);if(void 0!==i){let e=(0,ny.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rx.GITHUB_ACTIONS)try{(0,rb.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await ry("4JiFg");await o(e,t,r),i=await ez(t);let s=(0,ny.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rb.warning)(e.toString());}void 0===n&&(n=await eq(t,e));}return(void 0===i||void 0===n.bin)&&(i=await ez(t),n.bin=i),n;}async function eq(e,t){let r;switch(process.platform){case"win32":{e?await es("python3",t,["--params=/InstallDir:"+e]):await es("python3",t);let n=await ez(e),i=(0,ny.dirname)(n);await F(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ei("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,ny.join)(e.stdout,"libexec","bin");await F(n);break;}case"linux":if(D())r=await eu("python",t);else if(L())r=await ea([{name:"python3",version:t}]);else if(k())r=await q([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function ez(e){for(let t of["python3","python"]){let r=await eX(t,e);if(void 0!==r)return r;}}async function eX(e,t){try{if(void 0!==t){let r=(0,ny.join)(t,(0,ny.addExeExt)(e));if((await(0,nh.pathExists)(r))&&(await eM(r,ag.python)))return r;}for(let t of(await c(rT)(e,{nothrow:!0,all:!0}))??[])if(await eM(t,ag.python))return t;}catch{}}async function eK(e){let t=await eW();return void 0===t?((0,rb.info)("pip was not found. Installing pip"),await eJ(e),eW()):t;}async function eW(){for(let e of["pip3","pip"]){let t=await eY(e);if(void 0!==t)return t;}}async function eY(e){try{for(let t of(await c(rT)(e,{nothrow:!0,all:!0}))??[])if(null!==t&&(await eM(t,ag.pip)))return t;}catch{}}async function eJ(e){(await eQ(e))||(await tn("pip"),await eQ(e));}async function eQ(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rb.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rb.info)(e.toString());}}return!1;}async function eZ(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nC.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,ny.join)(r,"Scripts"),(0,ny.join)(r,"Scripts","bin"),(0,ny.join)(r,"bin")),[...new Set(t)];}function e0(e,t,r=null){return e1(t)&&"linux"===process.platform&&null!==r&&e in aE?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aE[e]):e1(t)&&e in av?av[e]:"true"===t?"":t??"";}function e1(e){return"true"===e||void 0===e;}async function e2(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rt.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e4(){try{if(!k())return null;{try{null===c(rT).sync("lsb_release",{nothrow:!0})&&(await q([{name:"lsb-release"}]));}catch{return e3();}let e=await(0,nV.getUbuntuVersion)();if(0===e.length)return e3();return e;}}catch(e){return(0,rb.warning)(e.toString()),null;}}function e3(){if(!("version"in c(n0)&&"function"==typeof c(n0).version))return null;let e=c(n0).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e6(e,t,r={}){return e8(await aR(),e,t,r);}async function e8(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await e5(e)),c=l?"pipx":"pip";if(await tt(e,t))try{(0,nf.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await ax(),i.PIPX_BIN_DIR=await ab()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nf.info)(`Failed to install ${t} via ${c}: ${e}.`),(await tn(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await tn(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ay(e),p=await tr(u,t);return await F(p),{binDir:p};}async function e5(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function e7(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=A("~/.local/pipx");if(await(0,nh.pathExists)(t))return t;switch(process.platform){case"win32":e=A("~/AppData/Local/pipx");break;case"darwin":e=A("~/Library/Application Support/pipx");break;default:e=A("~/.local/share/pipx");}return await ah(e),await ah((0,ny.join)(e,"trash")),await ah((0,ny.join)(e,"shared")),await ah((0,ny.join)(e,"venv")),e;}async function e9(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=A("~/.local/bin");return await F(e),await ah(e),e;}async function te(){let e=(await eG(e0("python",void 0,await aw()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function tt(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function tr(e,t){let r=(await Promise.all(e.map(e=>(0,nh.pathExists)((0,ny.join)(e,(0,ny.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(rT).sync((0,ny.addExeExt)(t),{nothrow:!0});return null!==n?(0,ny.dirname)(n):e[e.length-1];}function tn(e,t=!0){if("linux"===process.platform){if((0,nf.info)(`Installing ${e} via the system package manager`),D())return eu(t?"python-"+e:e);if(L())return ea([{name:t?"python3-"+e:e}]);if(k())return q([{name:t?"python3-"+e:e}]);}return null;}async function ti(e,t,r){switch(process.platform){case"win32":return await es("cppcheck",e),{binDir:await to()};case"darwin":return ei("cppcheck",e);case"linux":if(D())return eu("cppcheck",e);if(L())return ea([{name:"ccache",version:e}]);if(k())return q([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function to(){let e="C:/Program Files/Cppcheck";return await F(e),e;}async function ts(e,t,r){switch(process.platform){case"win32":return await es("graphviz",e),ta();case"darwin":return ei("graphviz",e);case"linux":if(D())return eu("graphviz",e);if(L())return ea([{name:"graphviz",version:e}]);if(k())return q([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ta(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await F(e),{binDir:e};}throw Error("Unsupported platform");}async function tl(e,t){let{ArchiveHdi:r}=await ry("2tlzJ"),n=new r(e);await n.read(async e=>{await e.extract((0,n1.join)(t,e.path));});}function tc(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nx.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eS,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ny.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tl,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tu(e,t,r){switch(process.platform){case"win32":{await c(nk)(()=>es("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rb.info)(e)});let t=await tp();return await ts(e0("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ei("doxygen",void 0);return aS()[0]>11&&(await ts(e0("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||D()||L()){if(D())n=await eu("doxygen",e);else if(L())return ea([{name:"doxygen",version:e}]);else if(k())n=await q([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(k())try{n=await eC("doxygen",e,tc,t,r);try{await q([{name:"libclang-cpp9"}]);}catch(e){(0,rb.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rb.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await q([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await ts(e0("graphviz",void 0,await aw()),"",r),n;}default:throw Error("Unsupported platform");}}async function tp(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nh.pathExists)((0,ny.join)(e,"doxygen.exe")))return await F(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function td(){if("darwin"===process.platform)try{let e=await(0,nC.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await M("SDKROOT",t.trim()):(0,rb.error)("SDKROOT not set");}catch(e){(0,rb.error)(e);}}function tf(e,t,r){if("win32"===t){let t=aO[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ny.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eb,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function th(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await es("gcc-arm-embedded",e));try{i=await eC("g++",e,tf,t,r);}catch(t){(0,rb.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tv(e,r);}break;case"darwin":i=await ei("gcc",e);break;case"linux":"x64"===r?D()?i=await eu("gcc",e):L()?i=await ea([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):k()&&(i=await q([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rb.info)(`Install g++-multilib because gcc for ${r} was requested`),D()?await eu("gcc-multilib",e):k()&&(await q([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tg(e,i.binDir,n),i;}async function tm(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return th(e,t,r);case"linux":D()?n=await eu("mingw-w64-gcc",e):L()?n=await ea([{name:"mingw64-gcc",version:e}]):k()&&(n=await q([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tv(e,t){let r;if(await es("mingw",e),"x64"===t&&(await(0,nh.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await F(r)):"ia32"===t&&(await(0,nh.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await F(r)):(await(0,nh.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tg(e,t,r=40){let n=[];if("win32"===process.platform)n.push(M("CC",(0,ny.addExeExt)(`${t}/gcc`)),M("CXX",(0,ny.addExeExt)(`${t}/g++`)));else{let i=c(nq)(c(nL)(e)??e);i>=5?(n.push(M("CC",`${t}/gcc-${i}`),M("CXX",`${t}/g++-${i}`)),k()&&n.push(ee("cc",`${t}/gcc-${i}`,r),ee("cxx",`${t}/g++-${i}`,r),ee("gcc",`${t}/gcc-${i}`,r),ee("g++",`${t}/g++-${i}`,r))):(n.push(M("CC",`${t}/gcc-${e}`),M("CXX",`${t}/g++-${e}`)),k()&&n.push(ee("cc",`${t}/gcc-${e}`,r),ee("cxx",`${t}/g++-${e}`,r),ee("gcc",`${t}/gcc-${e}`,r),ee("g++",`${t}/g++-${e}`,r)));}n.push(td()),rx.GITHUB_ACTIONS&&(await tE()),await Promise.all(n);}async function tE(){let e=(0,ny.join)(nz,"gcc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}function ty(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eS,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tw(e,t,r){return eC("ninja",e,ty,t,r);}function tx(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:eO};}function tb(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ny.addExeExt)("kcov"),extractFunction:tR};}async function tR(e,t){let r=await eO(e,t,["--strip-components=1"]),n=await tI();"linux"===process.platform&&(D()?await Promise.all([eu("libdwarf"),eu("libcurl-openssl")]):L()?await ea([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):k()&&(await q([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(rT).sync("patch",{nothrow:!0})){let e=(0,ny.join)(nX,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rb.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,ny.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tI(){let e=c(rT).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await e$(e0("cmake",void 0,await aw()),(0,ny.join)(A("~"),"cmake"),"");e=(0,ny.join)(t,"cmake");}return null===c(rT).sync("ninja",{nothrow:!0})&&(await tw(e0("ninja",void 0,await aw()),(0,ny.join)(A("~"),"ninja"),"")),e;}async function tS(e,t,r){var n;let i;if("linux"!==process.platform){(0,rb.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await eC("kcov",s,tx,t,r),D()?await eu("binutils"):L()?await ea([{name:"binutils"}]):k()&&(await q([{name:"libbinutils"}]))):i=await eC("kcov",s,tb,t,r),i;}function tO(e){if(Object.values(aD).includes(e));else if(e in aD)return aD[e];return e;}function tT(e){let t;let r=tO(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rt.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nf.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n2.existsSync(n))return nf.info("Found with vswhere: "+n),n;nf.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aD).includes(e));else for(let[t,r]of Object.entries(aD))if(r===e)return t;return e;}(e)]:aL;for(let e of aN)for(let t of i)for(let r of aP)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nf.info("Trying standard location: "+n),n2.existsSync(n))return nf.info("Found standard location: "+n),n;if(nf.info("Not found in standard locations"),n=`${a_}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n2.existsSync(n))return nf.info("Found VS 2015: "+n),n;throw nf.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tC(e,t,r,n,i,o,s){void 0!==t&&(await(0,nh.pathExists)(t))&&((0,rb.info)(`Adding ${t} to PATH`),await M("VCTargetsPath",t)),await nY(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tA(e,t,r,n,i,o,s,a=aU){(0,nf.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(a$(e)),e.addEventListener("abort",()=>{l(a$(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aT();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(t$(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rb.error)(t),s.push(`${e} failed to install`);}return(0,nf.endGroup)(),l;}async function t$(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await tC(e0(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=aJ[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,ny.join)(o,i?"llvm":e);a=await s(e0(e,t,r),l,n);}return s.push(t1(e,a)),i;}async function t_(e,t=0){let r="/usr/lib/llvm-"+e;await q([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tN("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await q(n),await aF("/tmp/llvm-setup-cpp.sh","755"),await S("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aU}),await F(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tN(e,t,r,n){var i,o,s,a,l;let c=await aj(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tP(c),c=K()?l.replace(/apt-get/g,"nala"):l,await aM(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tP(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await et(r))&&((0,rm.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tL(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tD(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tk(e){let t;if(aB.has(e))return null;let r="LLVM-",n=c(nD)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nD)(e,"9.0.1"),o=!1;return i&&(t=tD(e,r,n),(await nG(t))||(o=!0)),(o||!i)&&(t=tL(e,r,n)),t;}function tU(e,t){switch(e){case"darwin":return function(e){if(aH.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nD)(e,"9.0.1")?tD(e,r,n):tL(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aV.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aG.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=ek(aG,e)[0];}else""!==n&&n in aq?t=aq[n]:(t=aq[az],(0,rb.warning)(`Falling back to LLVM version ${az} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nD)(n,"9.0.1"))?tD(n,o,r):tL(n,o,r);}(t);case"win32":return tk(t);default:return null;}}async function tj(e,t,r){let[n,i]=await eU(aG,t,e,tU);return(0,rb.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ny.addExeExt)("clang"),extractFunction:"win32"===t?eI:(e,t)=>eO(e,t,["--strip-components=1"])};}async function tM(e,t,r){let n=await aX(e,t,r);return await tV(n.installDir??t),n;}async function tF(e,t,r){let[n,i,o]=await Promise.all([tG(e,t,r),aW(r),tq()]);return n;}async function tG(e,t,r,n=nJ.All){let i=parseInt(function(e){if(null===c(nH)(e))try{let t=c(nL)(e);if(null!==t)return(0,rb.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(k())return await t_(i,n);}catch(e){(0,rb.info)("Failed to install llvm via system package manager "+e);}let o=await eC("llvm",e,tj,t,r);return await aK(i),o;}async function tB(e){k()&&(e<=10?await q([{name:"libtinfo5"}]):await q([{name:"libtinfo-dev"}]));}async function tH(e){"linux"===process.platform&&(await th(e0("gcc",void 0,await aw()),"",e,40));}async function tV(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[M("LLVM_PATH",e),M("LD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${t}`),M("DYLD_LIBRARY_PATH",`${e}/lib${n1.delimiter}${r}`),M("LDFLAGS",`-L"${e}/lib"`),M("CPPFLAGS",`-I"${e}/include"`),M("CC",(0,ny.addExeExt)(`${e}/bin/clang`)),M("CXX",(0,ny.addExeExt)(`${e}/bin/clang++`)),M("LIBRARY_PATH",`${e}/lib`),td()];k()&&n.push(ee("cc",`${e}/bin/clang`,60),ee("cxx",`${e}/bin/clang++`,60),ee("clang",`${e}/bin/clang`),ee("clang++",`${e}/bin/clang++`),ee("lld",`${e}/bin/lld`),ee("ld.lld",`${e}/bin/ld.lld`),ee("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tq(){if(rx.GITHUB_ACTIONS){let e=(0,ny.join)(nQ,"llvm_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}}async function tz(e,t,r){switch(process.platform){case"win32":return es("make",e);case"darwin":return await ei("make",e),await F("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(D())return eu("make",e);if(L())return ea([{name:"make",version:e}]);if(k())return q([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tX(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nK(e);(0,rb.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nW(l);c=!0,(0,rb.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await es("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await es("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await es("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await es("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rb.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rb.error)(e);}await tC(l,a,r,s,n,i,o),rx.GITHUB_ACTIONS&&(await tK());}async function tK(){let e=(0,ny.join)(nZ,"msvc_matcher.json");if(!(await(0,nh.pathExists)(e)))return(0,rb.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rb.info)("::add-matcher::"+e);}async function tW(e,t,r){if(!k())return;if("string"==typeof i)return{binDir:i};let n=c(rT).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,ny.dirname)(n)};let o=await Z("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");I("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await q([{name:"nala"}],!0):await q([{name:"nala-legacy"}],!0);}catch(e){await q([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tY(e,t,r){if("win32"===process.platform)return await es("opencppcoverage",e),{binDir:await tJ()};}async function tJ(){let e="C:/Program Files/OpenCppCoverage";return await F(e),e;}async function tQ(e,t,r){switch(process.platform){case"win32":{await es("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await F(t),{binDir:t};}case"darwin":return ei("powershell",e,["--cask"]);case"linux":if(D())return eu("powershell-bin",e,"yay");if(L())return ea([{name:"curl"}]),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ea([{name:"powershell",version:e}]);if(k()){await q([{name:"curl"}]);let t=await aw(),r=`${t[0]}.0${t[1]}`;return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),q([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function tZ(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,ny.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eS:eO,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t0(e,t,r){return aY&&null!==c(rT).sync("vcpkg",{nothrow:!0})?{binDir:(0,ny.dirname)(c(rT).sync("vcpkg"))}:("linux"===process.platform&&(D()?await Promise.all([eu("curl"),eu("zip"),eu("unzip"),eu("tar"),eu("git"),eu("pkg-config")]):L()?await ea([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):k()&&(await q([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nh.pathExists)((0,ny.join)(t,(0,ny.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rb.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ny.dirname)(t),stdio:"inherit"}),b((0,ny.addShExt)((0,ny.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await C(t),await F(t),aY=!0,{binDir:t});}function t1(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t2(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nH)(e)||(0,rb.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nf.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tM(e0("llvm",l,t),(0,n1.join)(r,"llvm"),n);await M("GCOV","llvm-cov gcov"),i.push(t1("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e0("mingw",l,t):e0("gcc",l,t),s="mingw"===a?await tm(e,(0,n1.join)(r,"gcc"),n):await th(e,(0,n1.join)(r,"gcc"),n);o&&(await M("CPPFLAGS","")),await function(e){let t=c(nH)(e),r=null!==t?c(nq)(t):e;return M("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t1("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tX(e0("msvc",l,t),(0,n1.join)(r,"msvc"),n);o&&(await M("CPPFLAGS","")),i.push(t1("msvc",e));break;}case"appleclang":case"applellvm":(0,nf.notice)("Assuming apple-clang is already installed"),await Promise.all([M("CC","clang"),M("CXX","clang++")]),i.push(t1("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rb.error)(t),s.push("Failed to install the "+e);}(0,nf.endGroup)();}async function t4(e){let t,r,n=Promise.resolve();rx.GITHUB_ACTIONS||(n=N(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...aZ,"timeout"],default:Object.fromEntries(aZ.map(e=>[e,function(e){let t=(0,nf.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rb.info)(` +`));}async function ei(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(r$).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nb.dirname)(i)};let o=c(n3).join((0,n4.tmpdir)(),"setup-cpp","brew");await(0,nR.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n3.join)(o,"install.sh");return"linux"===process.platform&&(0,n6.readFileSync)(s,"utf-8").replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=es(),await M(t),{binDir:t};}function es(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ea(e,t,r=[]){(0,nv.info)(`Installing ${e} ${t??""} via brew`),sq&&null!==c(r$).sync("brew",{nothrow:!0})||(await eo("","",process.arch),sq=!0);let n=es();return b((0,nb.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function el(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(r$).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,nb.dirname)(i)};let o="powershell.exe",s=c(r$).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(a);let l=c(r$).sync("choco",{nothrow:!0});if(r=null!==l?(0,nb.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,ng.pathExists)(r))return{binDir:r};}async function ec(e,t,r=[]){(0,rS.info)(`Installing ${e} ${t??""} via chocolatey`),sz&&null!==c(r$).sync("choco",{nothrow:!0})||(await el("","",process.arch),sz=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rS.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await M(o),{binDir:o};}async function eu(e){for(let{name:t,version:r}of e)(0,rS.info)(`Installing ${t} ${r??""} via dnf`);return I("dnf",["-y","install",...(await Promise.all(e.map(e=>ep(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function ep(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rS.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ed(e,t,r){switch(process.platform){case"win32":return ec("bazelisk",e);case"darwin":return ea("bazelisk",e);case"linux":if(D())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await eu([{name:"dnf-plugins-core"}]),I("dnf",["copr","enable","vbatts/bazel"]),eu([{name:"bazel4"}]);if(k()){let t=await er("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return I("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),K([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ef(e,t,r){(0,rS.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(r$).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sX||"yay"===r||(I(n,["-Sy","--noconfirm"]),sX=!0),sK||"yay"===r||(I(n,["-S","--noconfirm","base-devel"]),sK=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):I(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eh(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rS.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eh(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sW))r.push(e[1]);}catch(e){(0,rS.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function em(e,t){let r=[];t=t||s0.arch();let n=s1.join(ex(),e);if(sQ.existsSync(n)){for(let e of sQ.readdirSync(n))if(ey(e)){let i=s1.join(n,e,t||"");sQ.existsSync(i)&&sQ.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ev(e){return nA(this,void 0,void 0,function*(){return e||(e=s1.join(eb(),s8.default())),yield sJ.mkdirP(e),e;});}function eg(e,t,r){return nA(this,void 0,void 0,function*(){let n=s1.join(ex(),e,s4.clean(t)||t,r||"");sY.debug("destination "+n);let i=`${n}.complete`;return yield sJ.rmRF(n),yield sJ.rmRF(i),yield sJ.mkdirP(n),n;});}function eE(e,t,r){let n=s1.join(ex(),e,s4.clean(t)||t,r||""),i=`${n}.complete`;sQ.writeFileSync(i,""),sY.debug("finished caching tool");}function ey(e){let t=s4.clean(e)||"";sY.debug("isExplicit: "+t);let r=null!=s4.valid(t);return sY.debug("explicit? "+r),r;}function ew(e,t){let r="";sY.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s4.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s4.satisfies(i,t)){r=i;break;}}return r?sY.debug("matched: "+r):sY.debug("match not found"),r;}function ex(){let e=process.env.RUNNER_TOOL_CACHE||"";return rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return rt.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eR(e,t){let r=ry[e];return void 0!==r?r:t;}function eI(e,t,r){switch(process.platform){case"win32":return ec("7zip",e);case"darwin":return ea("p7zip",e);case"linux":if(D())return ef("p7zip",e);if(L())return eu([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(k())return K([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eS(e,t){return await x(await eO(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await C(t),t;}async function eO(){return void 0===n&&(null===c(r$).sync("7z",{nothrow:!0})&&(await eI("","",process.arch)),n="7z"),n;}function eT(e,t){return eS(e,t);}function eC(e,t){return eS(e,t);}async function eA(e,t,r=["--strip-components=0"]){try{await(0,nR.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rS.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return C(t),t;}function e$(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new at(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nI.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rS.info)(e)});ar||((0,rS.info)("Installing extraction dependencies"),"linux"===process.platform&&(D()?await Promise.all([ef("unzip"),ef("tar"),ef("xz")]):L()?await eu([{name:"unzip"},{name:"tar"},{name:"xz"}]):k()&&(await K([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),ar=!0),(0,rS.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,rS.info)(`Add ${d} to PATH`),await M(d),rI.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nI.cacheDir)(n,e,t)),{installDir:p,binDir:d};}function eN(e,t,r){let n=c(nU)(e)??e;switch(t){case"win32":{let t;let i=c(nj)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eC,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nj)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(nj)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eP(e,t,r){return e_("cmake",e,eN,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nG.call(e,0):[];}function eD(e,t){return e===t||e!=e&&t!=t;}function ek(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eU(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eU(e.fn,ek(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=ek({isEqual:void 0===r?eD:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nM[r]||(t[r]=e[r]);return t;}(t)),d=new nB(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?eL(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function ej(e,t){return new Promise(r=>{try{let n=(0,n7.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eF(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nq)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nV(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eF(e,r)){let e=await n(t,o);if(null!==e){if(await nV(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function eG(e,t=aE){try{let r=await(0,n_.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(nU)(i)??void 0;}catch(e){console.error(e);return;}}async function eB(e,t,r=aE){let n=await eG(e,r);return void 0!==n&&""!==t&&-1!==c(nq)(n,t);}function eH(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eV(e,t,r){let n=await eX(e,t,r);c(rt)(void 0!==n.bin);let i=n.bin;if(void 0===(await eJ(i)))throw Error("pip was not installed correctly");return await eq(i),await ez(i),n;}async function eq(e){try{if(!(await te(e)))try{await e9(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===ts("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e9(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rS.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function ez(e){try{await e9(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e9(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rS.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eX(e,t,r){let n;let i=await eW(t);if(void 0!==i){let e=(0,nb.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rI.GITHUB_ACTIONS)try{(0,rS.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rb("4JiFg");await o(e,t,r),i=await eW(t);let s=(0,nb.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rS.warning)(e.toString());}void 0===n&&(n=await eK(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eW(t),n.bin=i),n;}async function eK(e,t){let r;switch(process.platform){case"win32":{e?await ec("python3",t,["--params=/InstallDir:"+e]):await ec("python3",t);let n=await eW(e),i=(0,nb.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ea("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nb.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(D())r=await ef("python",t);else if(L())r=await eu([{name:"python3",version:t}]);else if(k())r=await K([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eW(e){for(let t of["python3","python"]){let r=await eY(t,e);if(void 0!==r)return r;}}async function eY(e,t){try{if(void 0!==t){let r=(0,nb.join)(t,(0,nb.addExeExt)(e));if((await(0,ng.pathExists)(r))&&(await eB(r,aw.python)))return r;}for(let t of(await c(r$)(e,{nothrow:!0,all:!0}))??[])if(await eB(t,aw.python))return t;}catch{}}async function eJ(e){let t=await eQ();return void 0===t?((0,rS.info)("pip was not found. Installing pip"),await e0(e),eQ()):t;}async function eQ(){for(let e of["pip3","pip"]){let t=await eZ(e);if(void 0!==t)return t;}}async function eZ(e){try{for(let t of(await c(r$)(e,{nothrow:!0,all:!0}))??[])if(null!==t&&(await eB(t,aw.pip)))return t;}catch{}}async function e0(e){(await e1(e))||(await ts("pip"),await e1(e));}async function e1(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rS.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rS.info)(e.toString());}}return!1;}async function e2(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,n_.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nb.join)(r,"Scripts"),(0,nb.join)(r,"Scripts","bin"),(0,nb.join)(r,"bin")),[...new Set(t)];}function e4(e,t,r=null){return e3(t)&&"linux"===process.platform&&null!==r&&e in ax?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,ax[e]):e3(t)&&e in ay?ay[e]:"true"===t?"":t??"";}function e3(e){return"true"===e||void 0===e;}async function e6(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{ri.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e8(){try{if(!k())return null;{try{null===c(r$).sync("lsb_release",{nothrow:!0})&&(await K([{name:"lsb-release"}]));}catch{return e5();}let e=await(0,nX.getUbuntuVersion)();if(0===e.length)return e5();return e;}}catch(e){return(0,rS.warning)(e.toString()),null;}}function e5(){if(!("version"in c(n4)&&"function"==typeof c(n4).version))return null;let e=c(n4).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e7(e,t,r={}){return e9(await aO(),e,t,r);}async function e9(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await te(e)),c=l?"pipx":"pip";if(await ti(e,t))try{(0,nv.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aI(),i.PIPX_BIN_DIR=await aS()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nv.info)(`Failed to install ${t} via ${c}: ${e}.`),(await ts(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await ts(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ab(e),p=await to(u,t);return await M(p),{binDir:p};}async function te(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tt(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=A("~/.local/pipx");if(await(0,ng.pathExists)(t))return t;switch(process.platform){case"win32":e=A("~/AppData/Local/pipx");break;case"darwin":e=A("~/Library/Application Support/pipx");break;default:e=A("~/.local/share/pipx");}return await ag(e),await ag((0,nb.join)(e,"trash")),await ag((0,nb.join)(e,"shared")),await ag((0,nb.join)(e,"venv")),e;}async function tr(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=A("~/.local/bin");return await M(e),await ag(e),e;}async function tn(){let e=(await eV(e4("python",void 0,await aR()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function ti(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function to(e,t){let r=(await Promise.all(e.map(e=>(0,ng.pathExists)((0,nb.join)(e,(0,nb.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(r$).sync((0,nb.addExeExt)(t),{nothrow:!0});return null!==n?(0,nb.dirname)(n):e[e.length-1];}function ts(e,t=!0){if("linux"===process.platform){if((0,nv.info)(`Installing ${e} via the system package manager`),D())return ef(t?"python-"+e:e);if(L())return eu([{name:t?"python3-"+e:e}]);if(k())return K([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await ec("cppcheck",e),{binDir:await tl()};case"darwin":return ea("cppcheck",e);case"linux":if(D())return ef("cppcheck",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return K([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tl(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function tc(e,t,r){switch(process.platform){case"win32":return await ec("graphviz",e),tu();case"darwin":return ea("graphviz",e);case"linux":if(D())return ef("graphviz",e);if(L())return eu([{name:"graphviz",version:e}]);if(k())return K([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}async function tp(e,t){let{ArchiveHdi:r}=await rb("2tlzJ"),n=new r(e);await n.read(async e=>{await e.extract((0,n3.join)(t,e.path));});}function td(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nI.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eC,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tp,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tf(e,t,r){switch(process.platform){case"win32":{await c(nF)(()=>ec("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rS.info)(e)});let t=await th();return await tc(e4("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ea("doxygen",void 0);return aC()[0]>11&&(await tc(e4("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||D()||L()){if(D())n=await ef("doxygen",e);else if(L())return eu([{name:"doxygen",version:e}]);else if(k())n=await K([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(k())try{n=await e_("doxygen",e,td,t,r);try{await K([{name:"libclang-cpp9"}]);}catch(e){(0,rS.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rS.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await K([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tc(e4("graphviz",void 0,await aR()),"",r),n;}default:throw Error("Unsupported platform");}}async function th(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,ng.pathExists)((0,nb.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tm(){if("darwin"===process.platform)try{let e=await(0,n_.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rS.error)("SDKROOT not set");}catch(e){(0,rS.error)(e);}}function tv(e,t,r){if("win32"===t){let t=aA[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eS,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tg(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await ec("gcc-arm-embedded",e));try{i=await e_("g++",e,tv,t,r);}catch(t){(0,rS.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await ty(e,r);}break;case"darwin":i=await ea("gcc",e);break;case"linux":"x64"===r?D()?i=await ef("gcc",e):L()?i=await eu([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):k()&&(i=await K([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rS.info)(`Install g++-multilib because gcc for ${r} was requested`),D()?await ef("gcc-multilib",e):k()&&(await K([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tw(e,i.binDir,n),i;}async function tE(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tg(e,t,r);case"linux":D()?n=await ef("mingw-w64-gcc",e):L()?n=await eu([{name:"mingw64-gcc",version:e}]):k()&&(n=await K([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function ty(e,t){let r;if(await ec("mingw",e),"x64"===t&&(await(0,ng.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await M(r)):"ia32"===t&&(await(0,ng.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await M(r)):(await(0,ng.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tw(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,nb.addExeExt)(`${t}/gcc`)),F("CXX",(0,nb.addExeExt)(`${t}/g++`)));else{let i=c(nK)(c(nU)(e)??e);i>=5?(n.push(F("CC",`${t}/gcc-${i}`),F("CXX",`${t}/g++-${i}`)),k()&&n.push(en("cc",`${t}/gcc-${i}`,r),en("cxx",`${t}/g++-${i}`,r),en("gcc",`${t}/gcc-${i}`,r),en("g++",`${t}/g++-${i}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),k()&&n.push(en("cc",`${t}/gcc-${e}`,r),en("cxx",`${t}/g++-${e}`,r),en("gcc",`${t}/gcc-${e}`,r),en("g++",`${t}/g++-${e}`,r)));}n.push(tm()),rI.GITHUB_ACTIONS&&(await tx()),await Promise.all(n);}async function tx(){let e=(0,nb.join)(nW,"gcc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rS.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}function tb(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eC,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tR(e,t,r){return e_("ninja",e,tb,t,r);}function tI(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:eA};}function tS(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:tO};}async function tO(e,t){let r=await eA(e,t,["--strip-components=1"]),n=await tT();"linux"===process.platform&&(D()?await Promise.all([ef("libdwarf"),ef("libcurl-openssl")]):L()?await eu([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):k()&&(await K([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(r$).sync("patch",{nothrow:!0})){let e=(0,nb.join)(nY,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rS.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nb.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tT(){let e=c(r$).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eP(e4("cmake",void 0,await aR()),(0,nb.join)(A("~"),"cmake"),"");e=(0,nb.join)(t,"cmake");}return null===c(r$).sync("ninja",{nothrow:!0})&&(await tR(e4("ninja",void 0,await aR()),(0,nb.join)(A("~"),"ninja"),"")),e;}async function tC(e,t,r){var n;let i;if("linux"!==process.platform){(0,rS.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await e_("kcov",s,tI,t,r),D()?await ef("binutils"):L()?await eu([{name:"binutils"}]):k()&&(await K([{name:"libbinutils"}]))):i=await e_("kcov",s,tS,t,r),i;}function tA(e){if(Object.values(aj).includes(e));else if(e in aj)return aj[e];return e;}function t$(e){let t;let r=tA(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return ri.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nv.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n6.existsSync(n))return nv.info("Found with vswhere: "+n),n;nv.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aj).includes(e));else for(let[t,r]of Object.entries(aj))if(r===e)return t;return e;}(e)]:aU;for(let e of aD)for(let t of i)for(let r of ak)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nv.info("Trying standard location: "+n),n6.existsSync(n))return nv.info("Found standard location: "+n),n;if(nv.info("Not found in standard locations"),n=`${aL}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n6.existsSync(n))return nv.info("Found VS 2015: "+n),n;throw nv.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function t_(e,t,r,n,i,o,s){void 0!==t&&(await(0,ng.pathExists)(t))&&((0,rS.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),await nZ(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tN(e,t,r,n,i,o,s,a=aM){(0,nv.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aP(e)),e.addEventListener("abort",()=>{l(aP(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new a$();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tP(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rS.error)(t),s.push(`${e} failed to install`);}return(0,nv.endGroup)(),l;}async function tP(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await t_(e4(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=a0[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nb.join)(o,i?"llvm":e);a=await s(e4(e,t,r),l,n);}return s.push(t3(e,a)),i;}async function tL(e,t=0){let r="/usr/lib/llvm-"+e;await K([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tD("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await K(n),await aH("/tmp/llvm-setup-cpp.sh","755"),await S("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aM}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tD(e,t,r,n){var i,o,s,a,l;let c=await aG(e,"utf-8");return o=n,s=c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tk(c),c=J()?l.replace(/apt-get/g,"nala"):l,await aB(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tk(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await ei(r))&&((0,rE.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tU(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tj(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tF(e){let t;if(aq.has(e))return null;let r="LLVM-",n=c(nj)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nj)(e,"9.0.1"),o=!1;return i&&(t=tj(e,r,n),(await nV(t))||(o=!0)),(o||!i)&&(t=tU(e,r,n)),t;}function tM(e,t){switch(e){case"darwin":return function(e){if(az.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(nj)(e,"9.0.1")?tj(e,r,n):tU(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aX.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aV.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eF(aV,e)[0];}else""!==n&&n in aK?t=aK[n]:(t=aK[aW],(0,rS.warning)(`Falling back to LLVM version ${aW} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(nj)(n,"9.0.1"))?tj(n,o,r):tU(n,o,r);}(t);case"win32":return tF(t);default:return null;}}async function tG(e,t,r){let[n,i]=await eM(aV,t,e,tM);return(0,rS.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nb.addExeExt)("clang"),extractFunction:"win32"===t?eT:(e,t)=>eA(e,t,["--strip-components=1"])};}async function tB(e,t,r){let n=await aY(e,t,r);return await tX(n.installDir??t),n;}async function tH(e,t,r){let[n,i,o]=await Promise.all([tV(e,t,r),aQ(r),tK()]);return n;}async function tV(e,t,r,n=n0.All){let i=parseInt(function(e){if(null===c(nz)(e))try{let t=c(nU)(e);if(null!==t)return(0,rS.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(k())return await tL(i,n);}catch(e){(0,rS.info)("Failed to install llvm via system package manager "+e);}let o=await e_("llvm",e,tG,t,r);return await aJ(i),o;}async function tq(e){k()&&(e<=10?await K([{name:"libtinfo5"}]):await K([{name:"libtinfo-dev"}]));}async function tz(e){"linux"===process.platform&&(await tg(e4("gcc",void 0,await aR()),"",e,40));}async function tX(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${t}`),F("DYLD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${r}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,nb.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,nb.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),tm()];k()&&n.push(en("cc",`${e}/bin/clang`,60),en("cxx",`${e}/bin/clang++`,60),en("clang",`${e}/bin/clang`),en("clang++",`${e}/bin/clang++`),en("lld",`${e}/bin/lld`),en("ld.lld",`${e}/bin/ld.lld`),en("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tK(){if(rI.GITHUB_ACTIONS){let e=(0,nb.join)(n1,"llvm_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rS.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}}async function tW(e,t,r){switch(process.platform){case"win32":return ec("make",e);case"darwin":return await ea("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(D())return ef("make",e);if(L())return eu([{name:"make",version:e}]);if(k())return K([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tY(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nJ(e);(0,rS.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nQ(l);c=!0,(0,rS.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await ec("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await ec("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await ec("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await ec("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rS.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rS.error)(e);}await t_(l,a,r,s,n,i,o),rI.GITHUB_ACTIONS&&(await tJ());}async function tJ(){let e=(0,nb.join)(n2,"msvc_matcher.json");if(!(await(0,ng.pathExists)(e)))return(0,rS.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}async function tQ(e,t,r){if(!k())return;if("string"==typeof i)return{binDir:i};let n=c(r$).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nb.dirname)(n)};let o=await er("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");I("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await K([{name:"nala"}],!0):await K([{name:"nala-legacy"}],!0);}catch(e){await K([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tZ(e,t,r){if("win32"===process.platform)return await ec("opencppcoverage",e),{binDir:await t0()};}async function t0(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function t1(e,t,r){switch(process.platform){case"win32":{await ec("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return ea("powershell",e,["--cask"]);case"linux":if(D())return ef("powershell-bin",e,"yay");if(L())return eu([{name:"curl"}]),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),eu([{name:"powershell",version:e}]);if(k()){await K([{name:"curl"}]);let t=await aR(),r=`${t[0]}.0${t[1]}`;return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),K([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function t2(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eC:eA,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t4(e,t,r){return aZ&&null!==c(r$).sync("vcpkg",{nothrow:!0})?{binDir:(0,nb.dirname)(c(r$).sync("vcpkg"))}:("linux"===process.platform&&(D()?await Promise.all([ef("curl"),ef("zip"),ef("unzip"),ef("tar"),ef("git"),ef("pkg-config")]):L()?await eu([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):k()&&(await K([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,ng.pathExists)((0,nb.join)(t,(0,nb.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rS.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nb.dirname)(t),stdio:"inherit"}),b((0,nb.addShExt)((0,nb.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await C(t),await M(t),aZ=!0,{binDir:t});}function t3(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function t6(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(nz)(e)||(0,rS.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nv.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tB(e4("llvm",l,t),(0,n3.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(t3("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e4("mingw",l,t):e4("gcc",l,t),s="mingw"===a?await tE(e,(0,n3.join)(r,"gcc"),n):await tg(e,(0,n3.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=c(nz)(e),r=null!==t?c(nK)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t3("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tY(e4("msvc",l,t),(0,n3.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(t3("msvc",e));break;}case"appleclang":case"applellvm":(0,nv.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(t3("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rS.error)(t),s.push("Failed to install the "+e);}(0,nv.endGroup)();}async function t8(e){let t,r,n=Promise.resolve();rI.GITHUB_ACTIONS||(n=N(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...a2,"timeout"],default:Object.fromEntries(a2.map(e=>[e,function(e){let t=(0,nv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rS.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true @@ -25,15 +25,15 @@ Install all the tools required for building and testing C++/C projects. --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: -`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??A("~"),a=[],l=[],u=rS.create({autoloadLocales:!0});rS.addLocale(c(rO)),rR.addLocale(c(rI));let p=await aw();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e1(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,rb.error)("The same version must be used for llvm, clangformat and clangtidy"),1;D()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rb.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let d=!1,f=!1;for(let e of aQ){if(rx.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await tA(e,n,p,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,rb.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t2(e,p,s,o,a,d,l);let r=Date.now();(0,rb.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await V(),0===a.length&&0===l.length)return(0,rb.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rb.success)(e)),l.forEach(e=>(0,rb.error)(e)),(0,rb.info)("setup-cpp finished"),!rx.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rb.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rb.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t3,t6,t8,t5,t7,t9,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rR,rI,rS,rO,rT,rC,rA,r$,r_,rN,rP,rL,rD,rk,rU,rj,rM,rF,rG,rB,rH,rV,rq,rz,rX,rK,rW,rY,rJ,rQ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r7,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nR,nI,nS,nO,nT,nC,nA,n$,n_,nN,nP,nL,nD,nk,nU,nj,nM,nF,nG,nB,nH,nV,nq,nz,nX,nK,nW,nY,nJ,nQ,nZ,n0=require("os"),n1=require("path"),n2=require("fs"),n4=require("crypto"),n3=require("http"),n6=require("https");require("net"),t8=require("tls"),t5=require("events"),t7=require("assert"),t9=require("util"),re=require("fs"),rt=require("child_process"),rr=require("string_decoder"),rn=require("timers"),ri=require("buffer"),ro=require("path"),rs=require("child_process"),ra=require("process"),rl=require("url"),rc=require("os"),ru=require("buffer"),rp=require("stream"),rd=require("util"),rf=require("process"),rh=require("url"),rm=require("console"),rg={},rE={},null==(ry=(rv=globalThis).parcelRequire810d)&&((ry=function(e){if(e in rg)return rg[e].exports;if(e in rE){var t=rE[e];delete rE[e];var r={id:e,exports:{}};return rg[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rE[e]=t;},rv.parcelRequire810d=ry),(rw=ry.register)("52cQ1",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=ry("jgqtC");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rw("jgqtC",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rw("ER74K",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=ry("4t50X"),n=ry("52cQ1");}),rw("4t50X",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=ry("dIPEE"),a=ry("aSbHp"),l=ry("i0ItD");let E=i(n0),y=i(n1);c=ry("6dNYa"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=ry("dTpO2"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=ry("dTpO2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=ry("azKnO"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rw("dIPEE",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n0);o=ry("i0ItD"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rw("i0ItD",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rw("aSbHp",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n2),l=i(n0);o=ry("e3G3w"),s=ry("i0ItD"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rw("e3G3w",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=ry("kDGEy"),n=ry("2ckr2"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rw("kDGEy",function(e,t){function r(){return i>n.length-16&&(c(n4).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rw("2ckr2",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("9IL8W");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rw("9IL8W",function(e,t){var r,n;l(e.exports,"default",()=>n),r=ry("hDU47"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rw("hDU47",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rw("6dNYa",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=ry("a7JAS"),i=ry("3T6Pq"),o=ry("4t50X");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. +`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??A("~"),a=[],l=[],u=rC.create({autoloadLocales:!0});rC.addLocale(c(rA)),rO.addLocale(c(rT));let p=await aR();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e3(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,rS.error)("The same version must be used for llvm, clangformat and clangtidy"),1;D()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rS.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ef("python-pygments"));let d=!1,f=!1;for(let e of a1){if(rI.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await tN(e,n,p,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,rS.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t6(e,p,s,o,a,d,l);let r=Date.now();(0,rS.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await X(),0===a.length&&0===l.length)return(0,rS.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rS.success)(e)),l.forEach(e=>(0,rS.error)(e)),(0,rS.info)("setup-cpp finished"),!rI.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rS.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rS.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t5,t7,t9,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rR,rI,rS,rO,rT,rC,rA,r$,r_,rN,rP,rL,rD,rk,rU,rj,rF,rM,rG,rB,rH,rV,rq,rz,rX,rK,rW,rY,rJ,rQ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r7,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nR,nI,nS,nO,nT,nC,nA,n$,n_,nN,nP,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nV,nq,nz,nX,nK,nW,nY,nJ,nQ,nZ,n0,n1,n2,n4=require("os"),n3=require("path"),n6=require("fs"),n8=require("crypto"),n5=require("http"),n7=require("https");require("net"),t9=require("tls"),re=require("events"),rt=require("assert"),rr=require("util"),rn=require("fs"),ri=require("child_process"),ro=require("string_decoder"),rs=require("timers"),ra=require("buffer"),rl=require("path"),rc=require("child_process"),ru=require("process"),rp=require("url"),rd=require("os"),rf=require("buffer"),rh=require("stream"),rm=require("util"),rv=require("process"),rg=require("url"),rE=require("console"),rw={},rx={},null==(rb=(ry=globalThis).parcelRequire810d)&&((rb=function(e){if(e in rw)return rw[e].exports;if(e in rx){var t=rx[e];delete rx[e];var r={id:e,exports:{}};return rw[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rx[e]=t;},ry.parcelRequire810d=rb),(rR=rb.register)("52cQ1",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rb("jgqtC");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rR("jgqtC",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rR("ER74K",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rb("4t50X"),n=rb("52cQ1");}),rR("4t50X",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=rb("dIPEE"),a=rb("aSbHp"),l=rb("i0ItD");let E=i(n4),y=i(n3);c=rb("6dNYa"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=rb("dTpO2"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rb("dTpO2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rb("azKnO"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rR("dIPEE",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(n4);o=rb("i0ItD"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rR("i0ItD",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rR("aSbHp",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(n6),l=i(n4);o=rb("e3G3w"),s=rb("i0ItD"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rR("e3G3w",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rb("kDGEy"),n=rb("2ckr2"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rR("kDGEy",function(e,t){function r(){return i>n.length-16&&(c(n8).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rR("2ckr2",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("9IL8W");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rR("9IL8W",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("hDU47"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rR("hDU47",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rR("6dNYa",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rb("a7JAS"),i=rb("3T6Pq"),o=rb("4t50X");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} - Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rw("a7JAS",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n3),d=i(n6),f=i(ry("8gh3V")),h=i(ry("7i1qo"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rw("8gh3V",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rw("7i1qo",function(e,t){e.exports=ry("fbmJm");}),rw("fbmJm",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n3.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t8.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n3.request,t;},n=function(e){var t=new c(e);return t.request=n3.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n6.request,t;},o=function(e){var t=new c(e);return t.request=n6.request,t.createSocket=u,t.defaultPort=443,t;},t9.inherits(c,t5.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rw("3T6Pq",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rw("dTpO2",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n2.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n2.constants.R_OK|n2.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n0.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rw("azKnO",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n1);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rw("eCDnw",function(e,t){var r=n1.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rw("gMm9F",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=ry("iWDmx"),i=ry("9xs9T");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rw("iWDmx",function(e,t){e.exports=ry("eCDnw");}),rw("9xs9T",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rw("4oHc1",function(e,t){l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>S),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n2.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:R,unlink:I,utimes:S,writeFile:O}=n2.promises,T="rm"in n2.promises?n2.promises.rm:(0,t9.promisify)(n2.unlink);}),rw("bGwAu",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rw("3qgxS",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rw("3CqZ1",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rw("aMLnW",function(e,t){var r=ry("3CqZ1"),n=ry("3qgxS"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=ry("9J5od"),a=s.safeRe,l=s.t,c=ry("6omBt"),u=ry("fx8Ft").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rw("6omBt",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rw("fx8Ft",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rw("UI3XL",function(e,t){var r=ry("aMLnW");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rw("l655J",function(e,t){var r=ry("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rw("jzJq8",function(e,t){var r=ry("UI3XL");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rw("b1nH1",function(e,t){var r=ry("aMLnW");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rw("inG4j",function(e,t){var r=ry("UI3XL");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rw("2aJGP",function(e,t){var r=ry("aMLnW");e.exports=(e,t)=>new r(e,t).major;}),rw("h6Ixq",function(e,t){var r=ry("aMLnW");e.exports=(e,t)=>new r(e,t).minor;}),rw("90ROK",function(e,t){var r=ry("aMLnW");e.exports=(e,t)=>new r(e,t).patch;}),rw("8m4O1",function(e,t){var r=ry("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rw("3uysP",function(e,t){var r=ry("aMLnW");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rw("hYBTv",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>r(t,e,n);}),rw("ftcZo",function(e,t){var r=ry("3uysP");e.exports=(e,t)=>r(e,t,!0);}),rw("1CIrW",function(e,t){var r=ry("aMLnW");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rw("exBHN",function(e,t){var r=ry("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rw("lm1lq",function(e,t){var r=ry("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rw("cPjhN",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>r(e,t,n)>0;}),rw("avz3V",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>0>r(e,t,n);}),rw("fXQFJ",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>0===r(e,t,n);}),rw("bu0Ra",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>0!==r(e,t,n);}),rw("9xdhv",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rw("8aNoG",function(e,t){var r=ry("3uysP");e.exports=(e,t,n)=>0>=r(e,t,n);}),rw("8gipG",function(e,t){var r=ry("fXQFJ"),n=ry("bu0Ra"),i=ry("cPjhN"),o=ry("9xdhv"),s=ry("avz3V"),a=ry("8aNoG");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rw("l8hao",function(e,t){var r=ry("aMLnW"),n=ry("UI3XL"),i=ry("9J5od"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rw("dSz9p",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=ry("6omBt"),o=ry("9J5od"),s=o.safeRe,a=o.t,l=ry("8gipG"),c=ry("3CqZ1"),u=ry("aMLnW"),p=ry("4FTez");}),rw("4FTez",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,$(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=I(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},I=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),A=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rw("eGCLk",function(e,t){var r=ry("JD6z9");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rw("JD6z9",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rw("eRnrA",function(e,t){var r=ry("4FTez");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rw("aAvhf",function(e,t){var r=ry("aMLnW"),n=ry("4FTez");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("iWAcu",function(e,t){var r=ry("aMLnW"),n=ry("4FTez");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rw("32TwK",function(e,t){var r=ry("aMLnW"),n=ry("4FTez"),i=ry("cPjhN");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rw("194Ox",function(e,t){var r=ry("4FTez");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rw("a8VZj",function(e,t){var r=ry("aMLnW"),n=ry("dSz9p");let{ANY:i}=n;var o=ry("4FTez"),s=ry("2bU8Y"),a=ry("cPjhN"),l=ry("avz3V"),c=ry("8aNoG"),u=ry("9xdhv");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rw("2yv5J",function(e,t){var r=ry("a8VZj");e.exports=(e,t,n)=>r(e,t,">",n);}),rw("46KXA",function(e,t){var r=ry("a8VZj");e.exports=(e,t,n)=>r(e,t,"<",n);}),rw("e3Thp",function(e,t){var r=ry("4FTez");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rw("8g51l",function(e,t){var r=ry("2bU8Y"),n=ry("3uysP");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rw("kY0n1",function(e,t){async function r(e){try{return await(0,re.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rw("i8A01",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rw("bzNgi",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n1.basename)(e):(0,n1.basename)(e,(0,n1.extname)(e));}function w(e){return(0,n1.normalize)(e).replace(RegExp((0,r.default)(n1.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n1.extname)(e),n=`${t}${(0,n1.basename)(e,r)}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function R(e,t){let r=(0,n1.extname)(e),n=`${(0,n1.basename)(e,r)}${t}${r}`;return(0,n1.join)((0,n1.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function S(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n1.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,n1.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n1.sep)||r===(0,n1.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>S),l(e.exports,"dirname",()=>n1.dirname),l(e.exports,"join",()=>n1.join),r=ry("iNGpn"),n=ry("axeRu"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>R),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>S),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>C),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rw("iNGpn",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rw("axeRu",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n1.basename(e,n1.extname(e))+t,i=n1.join(n1.dirname(e),n);return(r=e.slice(0,2))==="."+n1.sep||"./"===r?"."+n1.sep+i:i;};}),rw("hZdK0",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){t7.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n1),p=i(ry("ipB3d"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rw("ipB3d",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n2),c=i(n1);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rw("42L4Y",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(ry("lroIv"));s=ry("4t50X"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n0.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n0.platform(),r="";if("darwin"===t)r=rt.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n2.existsSync(e)?r=n2.readFileSync(e).toString():n2.existsSync(t)&&(r=n2.readFileSync(t).toString()),r;};}),rw("lroIv",function(e,t){function r(e){A[e]=$++;}function n(e){for(var t=0;tR||!(t.loose?T[A.LOOSE]:T[A.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>R)throw TypeError("version is longer than "+R+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[A.LOOSE]:T[A.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,O=t.re=[],T=t.safeRe=[],C=t.src=[],A=t.tokens={},$=0,N=[["\\s",1],["\\d",R],[_="[a-zA-Z0-9-]",S]],r("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=_+"+",r("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",r("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",r("GTLT"),C[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[A.COERCERTL]=RegExp(C[A.COERCE],"g"),T[A.COERCERTL]=RegExp(n(C[A.COERCE]),"g"),r("LONETILDE"),C[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",O[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),T[A.TILDETRIM]=RegExp(n(C[A.TILDETRIM]),"g"),r("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[A.LONECARET]="(?:\\^)",r("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",O[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),T[A.CARETTRIM]=RegExp(n(C[A.CARETTRIM]),"g"),r("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",O[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),T[A.COMPARATORTRIM]=RegExp(n(C[A.COMPARATORTRIM]),"g"),P="$1$2$3",r("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var b,R,I,S,O,T,C,A,$,_,N,P,L,D,k=0;k<$;k++)b(k,C[k]),O[k]||(O[k]=new RegExp(C[k]),T[k]=new RegExp(n(C[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,D={},m.prototype.parse=function(e){var t=this.options.loose?T[A.COMPARATORLOOSE]:T[A.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=D;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[A.HYPHENRANGELOOSE]:T[A.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[A.COMPARATORTRIM],P),b("comparator trim",e,T[A.COMPARATORTRIM]),e=(e=(e=e.replace(T[A.TILDETRIM],"$1~")).replace(T[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[A.COMPARATORLOOSE]:T[A.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[A.CARETLOOSE]:T[A.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[A.TILDELOOSE]:T[A.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[A.XRANGELOOSE]:T[A.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[A.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[A.COERCERTL].lastIndex=-1;}else n=e.match(T[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rw("eAF86",function(e,t){var r=ry("1W8as"),n=ry("hTpVN");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rw("1W8as",function(e,t){e.exports=function(){return n4.randomBytes(16);};}),rw("hTpVN",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rw("1f6JF",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(ry("4B2AJ"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new rr.StringDecoder("utf8"),c=new rr.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rw("4B2AJ",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n0),a=i(t5),l=i(rt),c=i(n1),u=i(ry("hZdK0")),p=i(ry("ipB3d")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rn.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rw("4JiFg",function(e,t){e.exports=Promise.resolve(require("./actions_python.c4cbfdde.js")).then(()=>ry("4kQHk"));}),rw("2tlzJ",function(e,t){e.exports=Promise.resolve(require("./hdi.340fbf70.js")).then(()=>ry("8Fs7q"));}),rx=ry("52cQ1"),rb=ry("ER74K"),rR=ry("iWDmx"),function(){ry("eCDnw").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rI={}),rS={},rS=ry("gMm9F"),rO={},rO={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rT={},l(rC={},"isexe",()=>n8),l(rC,"sync",()=>n5),rA=ry("4oHc1");const n8=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n7(await(0,rA.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n5=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return n7((0,n2.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},n7=(e,t)=>e.isFile()&&n9(e,t),n9=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(r$={},"isexe",()=>ie),l(r$,"sync",()=>it),rA=ry("4oHc1");const ie=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii(await(0,rA.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ii((0,n2.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ir=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&ir(t,r),io="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?r$:rC,is=io.isexe,ia=io.sync;r_=n1.join,rN=n1.delimiter,rP=n1.sep,rL=n1.posix;const il="win32"===process.platform,ic=new RegExp(`[${rL.sep}${rP===rL.sep?"":rP}]`.replace(/(\\)/g,"\\$1")),iu=RegExp("^\\."+ic.source),ip=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),id=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rN})=>{let i=e.match(ic)?[""]:[...(il?[process.cwd()]:[]),...(t||"").split(n)];if(il){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ih=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&iu.test(t)?t.slice(0,2):"")+r_(r,t);},im=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(await is(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);};rT=im,im.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=id(e,t),o=[];for(let s of r){let r=ih(s,e);for(let e of n){let n=r+e;if(ia(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ip(e);},rD={},rk={},rU={},rj={};const iv="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ig=iv?";":":";rM={},"win32"===process.platform||rv.TESTING_WINDOWS?rF=ry("bGwAu"):rF=ry("d3qS7"),rM=u,u.sync=function(e,t){try{return rF.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iE=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iy=(e,t)=>{let r=t.colon||ig,n=e.match(/\//)||iv&&e.match(/\\/)?[""]:[...(iv?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iv?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iv?i.split(r):[""];return iv&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iw=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=iy(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iE(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n1.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rM(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rj=iw,iw.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iy(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rG=ix).default=ix,rU=function(e){return p(e)||p(e,!0);};rB=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rH=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rV={},rq={},rz={},rz=/^#!(.*)/,rq=(e="")=>{let t=e.match(rz);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rV=function(e){let t;let r=Buffer.alloc(150);try{t=n2.openSync(e,"r"),n2.readSync(t,r,0,150,0),n2.closeSync(t);}catch(e){}return rq(r.toString());};const ib="win32"===process.platform;rk=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!ib)return e;let t=function(e){e.file=rU(e);let t=e.file&&rV(e.file);return t?(e.args.unshift(e.file),e.command=t,rU(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n1.normalize(e.command),e.command=rB(e.command),e.args=e.args.map(e=>rH(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rX={};const iR="win32"===process.platform;rX={hookChildProcess:function(e,t){if(!iR)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iR&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rD=h).spawn=h,rD.sync=function(e,t,r){let n=rk(e,t,r),i=rt.spawnSync(n.command,n.args,n.options);return i.error=i.error||rX.verifyENOENTSync(i.status,n),i;},rD._parse=rk,rD._enoent=rX;const iI=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iS(i,o)||!n)&&Object.defineProperty(e,r,o);},iS=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iO=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iT=(e,t)=>`/* Wrapped ${e}*/ -${t}`,iC=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iA=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),i$=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iT.bind(null,n,t.toString());Object.defineProperty(i,"name",iA),Object.defineProperty(e,"toString",{...iC,value:i});},i_=new WeakMap(),iN=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(i_.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iI(e,t,n,r);iO(e,t),i$(e,t,n);}(o,e),i_.set(o,n),o;};iN.callCount=e=>{if(!i_.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return i_.get(e);},rK=iN;const iP=()=>Array.from({length:ik-iD+1},iL),iL=(e,t)=>({name:"SIGRT"+(t+1),number:iD+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iD=34,ik=64,iU=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],ij=()=>[...iU,...iP()].map(iM),iM=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rc.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iF=Object.fromEntries(ij().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iG=(e,t)=>{let r=iB(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iB=(e,t)=>{let r=t.find(({name:t})=>rc.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=ij();return Object.assign({},...Array.from({length:ik+1},(t,r)=>iG(r,e)));})();const iH=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iV=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ra).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iF[i].description,m=iH({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} -${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iq=["stdin","stdout","stderr"],iz=e=>iq.some(t=>void 0!==e[t]),iX=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iq.map(t=>e[t]);if(iz(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iq.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iq.length)},(e,r)=>t[r]);};rW={};const iK=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iK(rY=rv.process)){var iW,iY=t7,iJ=ry("e1Rfe"),iQ=/^win/i.test(rY.platform),iZ=t5;"function"!=typeof iZ&&(iZ=iZ.EventEmitter),rY.__signal_exit_emitter__?iW=rY.__signal_exit_emitter__:((iW=rY.__signal_exit_emitter__=new iZ()).count=0,iW.emitted={}),iW.infinite||(iW.setMaxListeners(1/0),iW.infinite=!0);var i0=function(){i4&&iK(rv.process)&&(i4=!1,iJ.forEach(function(e){try{rY.removeListener(e,i2[e]);}catch(e){}}),rY.emit=i5,rY.reallyExit=i6,iW.count-=1);};(rW=function(e,t){if(!iK(rv.process))return function(){};iY.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i4&&i3();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iW.on(r,e),function(){iW.removeListener(r,e),0===iW.listeners("exit").length&&0===iW.listeners("afterexit").length&&i0();};}).unload=i0;var i1=function(e,t,r){iW.emitted[e]||(iW.emitted[e]=!0,iW.emit(e,t,r));},i2={};iJ.forEach(function(e){i2[e]=function(){iK(rv.process)&&rY.listeners(e).length===iW.count&&(i0(),i1("exit",null,e),i1("afterexit",null,e),iQ&&"SIGHUP"===e&&(e="SIGINT"),rY.kill(rY.pid,e));};}),rW.signals=function(){return iJ;};var i4=!1,i3=function(){!i4&&iK(rv.process)&&(i4=!0,iW.count+=1,iJ=iJ.filter(function(e){try{return rY.on(e,i2[e]),!0;}catch(e){return!1;}}),rY.emit=i7,rY.reallyExit=i8);};rW.load=i3;var i6=rY.reallyExit,i8=function(e){iK(rv.process)&&(rY.exitCode=e||0,i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),i6.call(rY,rY.exitCode));},i5=rY.emit,i7=function(e,t){if(!("exit"===e&&iK(rv.process)))return i5.apply(this,arguments);void 0!==t&&(rY.exitCode=t);var r=i5.apply(this,arguments);return i1("exit",rY.exitCode,null),i1("afterexit",rY.exitCode,null),r;};}else rW=function(){return function(){};};const i9=(e,t="SIGTERM",r={})=>{let n=e(t);return oe(e,t,r,n),n;},oe=(e,t,r,n)=>{if(!ot(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},on(r));i.unref&&i.unref();},ot=(e,{forceKillAfterTimeout:t},r)=>or(e)&&!1!==t&&r,or=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),on=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oi=(e,t)=>{e.kill()&&(t.isCanceled=!0);},oo=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},os=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{oo(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oa=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},ol=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rW)(()=>{e.kill();});return n.finally(()=>{i();});},oc=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,ou=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!oc(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},op=e=>{null!==e.stdout&&(e.pipeStdout=ou.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ou.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ou.bind(void 0,e,"all"));};rJ={},rQ=ru.constants,rZ=t9.promisify,r0={},r1=rp.PassThrough,r0=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r1({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const od=rZ(rp.pipeline);class of extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(rJ=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),rJ.array=(e,t)=>w(e,{...t,array:!0}),rJ.MaxBufferError=of,r2={},r4=rp.PassThrough,r2=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r4({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const oh=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},om=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.readFileSync)(t)),ov=e=>{let t=om(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},og=({input:e,inputFile:t})=>"string"!=typeof t?e:(oh(e),(0,re.createReadStream)(t)),oE=(e,t)=>{let r=og(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},oy=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ow=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ox=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rJ)(e,{encoding:t,maxBuffer:n}):c(rJ).buffer(e,{maxBuffer:n});},ob=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ox(e,{encoding:n,buffer:i,maxBuffer:o}),l=ox(t,{encoding:n,buffer:i,maxBuffer:o}),c=ox(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ow(e,a),ow(t,l),ow(r,c)]);}},oR=(async()=>{})().constructor.prototype,oI=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oR,e)]),oS=(e,t)=>{for(let[r,n]of oI){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oO=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),oT=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oC=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oA=(e,t)=>oT(e,t).join(" "),o$=(e,t)=>oT(e,t).map(e=>oC(e)).join(" "),o_=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},oN=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oP=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oL=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=oP(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return oP(s,Array.isArray(a)?a.map(e=>oN(e)):[oN(a)],o.endsWith(" "));},oD=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oL({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},ok=(0,rd.debuglog)("execa").enabled,oU=(e,t)=>(e+"").padStart(t,"0"),oj=()=>{let e=new Date();return`${oU(e.getHours(),2)}:${oU(e.getMinutes(),2)}:${oU(e.getSeconds(),2)}.${oU(e.getMilliseconds(),3)}`;},oM=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${oj()}] ${e} -`);},oF=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oG=(e,t,r={})=>{let n=c(rD)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:ok,...r}).env=oF(r),r.stdio=iX(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oB=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oH=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oV=(e={})=>({preferLocal:!0,...oH(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oD(n,i);return x(o,s,oV(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oD(e,r);return b(n,i,oV(t));},r;}();const oq={stdio:"inherit",shell:!0},oz=/^~(?=$|\/|\\)/;rb=ry("ER74K"),r3={},r6=ry("bSUdl"),r8=rf.env.npm_package_json,r7=!!((r5=rf.env.npm_config_user_agent)&&r5.startsWith("npm")),r9=!!(r8&&r8.endsWith("package.json")),ne=r7||r9,nt=!!(r5&&r5.startsWith("yarn")),nr=ne||nt,nn=n0.homedir(),ni=process.env.XDG_CONFIG_HOME||n1.join(nn,".config","simple-update-notifier"),no=function(e){return n1.join(ni,"".concat(e.replace("@","").replace("/","__"),".json"));},ns=function(){n2.existsSync(ni)||n2.mkdirSync(ni,{recursive:!0});},na=function(e){var t=no(e);try{if(!n2.existsSync(t))return;return JSON.parse(n2.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nl=function(e){var t=no(e);n2.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nc=function(e,t){return $(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n6.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nu=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return $(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(ns(),e=na(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nm=function(e){return oX?e.replace(/(\s+)/g,"\\$1"):oW(.../(\d+\.\d+)\.(\d+)/.exec(oK).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=ry("i8A01"),t=function(e){return e.split("").reverse().join("");},nv=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nv={});const oY=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oJ=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iF[i].description,f=oY({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} -${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},oQ=["stdin","stdout","stderr"],oZ=e=>oQ.some(t=>void 0!==e[t]),o0=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oQ.map(t=>e[t]);if(oZ(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oQ.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oQ.length)},(e,r)=>t[r]);},o1=(e,t="SIGTERM",r={})=>{let n=e(t);return o2(e,t,r,n),n;},o2=(e,t,r,n)=>{if(!o4(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o6(r));i.unref&&i.unref();},o4=(e,{forceKillAfterTimeout:t},r)=>o3(e)&&!1!==t&&r,o3=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o6=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o8=(e,t)=>{e.kill()&&(t.isCanceled=!0);},o5=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o7=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{o5(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},o9=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},se=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rW)(()=>{e.kill();});return n.finally(()=>{i();});},st=e=>e instanceof rs.ChildProcess&&"function"==typeof e.then,sr=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,re.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!st(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},sn=e=>{null!==e.stdout&&(e.pipeStdout=sr.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=sr.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=sr.bind(void 0,e,"all"));},si=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},so=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.readFileSync)(t)),ss=e=>{let t=so(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},sa=({input:e,inputFile:t})=>"string"!=typeof t?e:(si(e),(0,re.createReadStream)(t)),sl=(e,t)=>{let r=sa(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sc=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r2)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},su=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sp=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(rJ)(e,{encoding:t,maxBuffer:n}):c(rJ).buffer(e,{maxBuffer:n});},sd=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sp(e,{encoding:n,buffer:i,maxBuffer:o}),l=sp(t,{encoding:n,buffer:i,maxBuffer:o}),c=sp(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},su(e,a),su(t,l),su(r,c)]);}},sf=(async()=>{})().constructor.prototype,sh=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sf,e)]),sm=(e,t)=>{for(let[r,n]of sh){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sv=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sg=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sE=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sy=(e,t)=>sg(e,t).join(" "),sw=(e,t)=>sg(e,t).map(e=>sE(e)).join(" "),sx=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rs.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ri.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sb=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sR=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sb(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sb(s,Array.isArray(a)?a.map(e=>sx(e)):[sx(a)],o.endsWith(" "));},sI=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sR({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sS=(0,rd.debuglog)("execa").enabled,sO=(e,t)=>(e+"").padStart(t,"0"),sT=()=>{let e=new Date();return`${sO(e.getHours(),2)}:${sO(e.getMinutes(),2)}:${sO(e.getSeconds(),2)}.${sO(e.getMilliseconds(),3)}`;},sC=(e,{verbose:t})=>{t&&c(ra).stderr.write(`[${sT()}] ${e} -`);},sA=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},s$=(e,t,r={})=>{let n=c(rD)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sS,...r}).env=sA(r),r.stdio=o0(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},s_=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sN=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sP=(e={})=>({preferLocal:!0,...sN(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sI(n,i);return U(o,s,sP(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sI(e,r);return function(e,t,r){let n;let i=s$(e,t,r),o=sy(e,t),s=sw(e,t);sC(s,i.options);let a=ss(i.options);try{n=c(rs).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oJ({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=s_(i.options,n.stdout,n.error),u=s_(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oJ({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sP(t));},r;}(),nh=ry("kY0n1");const sL={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sD=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sk=A("~/.cpprc");let sU=!1;rb=ry("ER74K"),ng=ry("iNGpn");const{appendFile:sj}=n2.promises;let sM=!1,sF=!1;const sG=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t3=nE||(nE={}))[t3.NameDashVersion=0]="NameDashVersion",t3[t3.NameEqualsVersion=1]="NameEqualsVersion",t3[t3.Name=2]="Name",t3[t3.None=3]="None",nf=ry("4t50X"),ny=ry("bzNgi"),nw=ry("hZdK0"),ny=ry("bzNgi");let sB=!1;rb=ry("ER74K"),nh=ry("kY0n1"),ny=ry("bzNgi");let sH=!1;rb=ry("ER74K"),rb=ry("ER74K");let sV=!1,sq=!1;const sz=/Version\s*:\s*(.*)/g;nx={},nb=n1.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nR=nx&&nx.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nI=nx&&nx.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nS=nx&&nx.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nR(t,e,r);return nI(t,e),t;},nO=nx&&nx.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},nT=nx&&nx.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nx,"__esModule",{value:!0}),nx.evaluateVersions=nx.isExplicitVersion=nx.findFromManifest=nx.getManifestFromRepo=nx.findAllVersions=nx.find=nx.cacheFile=nx.cacheDir=nx.extractZip=nx.extractXar=nx.extractTar=nx.extract7z=nx.downloadTool=nx.HTTPError=void 0;const sX=nS(ry("4t50X")),sK=nS(ry("hZdK0")),sW=nS(n2),sY=nS(ry("42L4Y")),sJ=nS(n0),sQ=nS(n1),sZ=nS(ry("a7JAS")),s0=nS(ry("lroIv")),s1=nS(rp),s2=nS(t9),s4=nT(ry("eAF86"));nC=ry("1f6JF"),n$=(nA={},nA.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),n_=nA&&nA.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nN=nA&&nA.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n$(t,e,r);return n_(t,e),t;},nP=nA&&nA.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nA,"__esModule",{value:!0}),nA.RetryHelper=void 0;const s3=nN(ry("4t50X"));nA.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nP(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s6 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nx.HTTPError=s6;const s8="win32"===process.platform,s5="darwin"===process.platform;nx.downloadTool=function(e,t,r,n){return nO(this,void 0,void 0,function*(){t=t||sQ.join(ey(),s4.default()),yield sK.mkdirP(sQ.dirname(t)),sX.debug("Downloading "+e),sX.debug("Destination "+t);let i=ew("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=ew("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nA.RetryHelper(3,i,o);return yield s.execute(()=>nO(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(sW.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sZ.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sX.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s6(o.message.statusCode);throw sX.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s2.promisify(s1.pipeline),a=ew("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sW.createWriteStream(t)),sX.debug("download complete"),l=!0,t;}finally{if(!l){sX.debug("download failed");try{yield sK.rmRF(t);}catch(e){sX.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s6)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nx.extract7z=function(e,t,r){return nO(this,void 0,void 0,function*(){t7.ok(s8,"extract7z() not supported on current OS"),t7.ok(e,'parameter "file" is required'),t=yield ef(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sX.isDebug()?"-bb1":"-bb0";yield nC.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=sQ.join(nb,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sK.which("powershell",!0);yield nC.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nx.extractTar=function(e,t,r="xz"){return nO(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ef(t),sX.debug("Checking tar --version");let i="";yield nC.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sX.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sX.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s8&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield nC.exec("tar",n),t;});},nx.extractXar=function(e,t,r=[]){return nO(this,void 0,void 0,function*(){let n;t7.ok(s5,"extractXar() not supported on current OS"),t7.ok(e,'parameter "file" is required'),t=yield ef(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sX.isDebug()&&n.push("-v");let i=yield sK.which("xar",!0);return yield nC.exec(`"${i}"`,Array.from(new Set(n))),t;});},nx.extractZip=function(e,t){return nO(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ef(t),s8?yield function(e,t){return nO(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sK.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sX.debug("Using pwsh at path: "+i),yield nC.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sK.which("powershell",!0);sX.debug("Using powershell at path: "+t),yield nC.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nO(this,void 0,void 0,function*(){let r=yield sK.which("unzip",!0),n=[e];sX.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nC.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nx.cacheDir=function(e,t,r,n){return nO(this,void 0,void 0,function*(){if(r=s0.clean(r)||r,n=n||sJ.arch(),sX.debug(`Caching tool ${t} ${r} ${n}`),sX.debug("source dir: "+e),!sW.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eh(t,r,n);for(let t of sW.readdirSync(e)){let r=sQ.join(e,t);yield sK.cp(r,i,{recursive:!0});}return em(t,r,n),i;});},nx.cacheFile=function(e,t,r,n,i){return nO(this,void 0,void 0,function*(){if(n=s0.clean(n)||n,i=i||sJ.arch(),sX.debug(`Caching tool ${r} ${n} ${i}`),sX.debug("source file: "+e),!sW.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eh(r,n,i),s=sQ.join(o,t);return sX.debug("destination file "+s),yield sK.cp(e,s),em(r,n,i),o;});},nx.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sJ.arch(),ev(t)||(t=eg(ed(e,r),t));let n="";if(t){t=s0.clean(t)||"";let i=sQ.join(eE(),e,t,r);sX.debug("checking cache: "+i),sW.existsSync(i)&&sW.existsSync(`${i}.complete`)?(sX.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sX.debug("not found");}return n;},nx.findAllVersions=ed,nx.getManifestFromRepo=function(e,t,r,n="master"){return nO(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new sZ.HttpClient("tool-cache"),a={};r&&(sX.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sX.debug("Invalid json");}}return i;});},nx.findFromManifest=function(e,t,r,n=sJ.arch()){return nO(this,void 0,void 0,function*(){return yield sY._findMatch(e,t,r,n);});},nx.isExplicitVersion=ev,nx.evaluateVersions=eg,ny=ry("bzNgi"),nL=ry("l8hao"),nD=ry("8aNoG"),nw=ry("hZdK0"),rb=ry("ER74K"),rb=ry("ER74K"),ny=ry("bzNgi"),rx=ry("52cQ1"),nh=ry("kY0n1"),Object.defineProperty(nk={},"__esModule",{value:!0}),nk.retryAsPromised=nk.TimeoutError=void 0;class s7 extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nk.TimeoutError=s7,nk.retryAsPromised=eT,nk.default=eT;let s9=!1;nf=ry("4t50X"),nU={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nj=Array.prototype.slice,nM=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:e_(this.keys),size:this.size,values:e_(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const ae=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n2.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n2.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n2.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n2.mkdirSync,t;},at=(e,t,r)=>{let n=(0,n1.dirname)(e),i={...ae(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return at(e,i,at(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ar=Object.assign(async(e,t,r)=>{let n=ae(t);n.recursive=!1;let i=(0,n1.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ar(i,n).then(t=>ar(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:at}),an=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?an(e,(0,n1.dirname)(t),t):void 0);},ai=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?ai(e,(0,n1.dirname)(t),t):void 0;}},ao=(e,t)=>{let r=ae(t);if(r.recursive=!0,(0,n1.dirname)(e)===e)return r.mkdirSync(e,r);let n=ai(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return at(e,r);throw t;}},as=Object.assign(async(e,t)=>{let r={...ae(t),recursive:!0};return(0,n1.dirname)(e)===e?await r.mkdirAsync(e,r):an(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ar(e,r);throw t;}));},{sync:ao}),aa=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,al=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n1.resolve)(e),"win32"===aa){let{root:t}=(0,n1.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ac=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),au=+ac[0]>10||10==+ac[0]&&+ac[1]>=12,ap=au?e=>ae(e).mkdirSync===n2.mkdirSync:()=>!1,ad=Object.assign(au?e=>ae(e).mkdir===n2.mkdir:()=>!1,{sync:ap}),af=(e,t)=>{e=al(e);let r=ae(t);return ap(r)?ao(e,r):at(e,r);},ah=Object.assign(async(e,t)=>{e=al(e);let r=ae(t);return ad(r)?as(e,r):ar(e,r);},{mkdirpSync:af,mkdirpNative:as,mkdirpNativeSync:ao,mkdirpManual:ar,mkdirpManualSync:at,sync:af,native:as,nativeSync:ao,manual:ar,manualSync:at,useNative:ad,useNativeSync:ap});nh=ry("kY0n1"),ny=ry("bzNgi"),nC=ry("1f6JF"),rx=ry("52cQ1"),rb=ry("ER74K"),nh=ry("kY0n1"),ny=ry("bzNgi"),nC=ry("1f6JF"),rb=ry("ER74K"),nF=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rh.URL(t),!0;}catch{return!1;}},nG=async e=>{if(!nF(e))return!1;let t=await eD(e,"HEAD");return!!t||!!(t=await eD(e,"GET"));},nL=ry("l8hao"),nB=ry("3uysP"),nH=ry("l655J");const am=/v?(\d\S*)/,av={llvm:eF(),clangtidy:eF(),clangformat:eF(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:D()?"1.10.0-1":"1.10.0",gcc:D()?"13.2.1-3":"13"},ag={pip:"22.2.0",python:"3.7.9"},aE={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ay=eL(eZ,{isPromise:!0});rb=ry("ER74K"),Object.defineProperty(nV={},"__esModule",{value:!0}),nV.getUbuntuVersion=void 0,nV.getUbuntuVersion=e2;const aw=eL(e4,{isPromise:!0}),ax=eL(e7,{isPromise:!0}),ab=eL(e9,{isPromise:!0}),aR=eL(te,{isPromise:!0});rb=ry("ER74K"),ny=ry("bzNgi"),nh=ry("kY0n1");const aI=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aS=eL(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rc).release()).split(".")[0];let[t,r]=aI.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rx=ry("52cQ1"),rb=ry("ER74K"),nh=ry("kY0n1"),ny=ry("bzNgi"),nL=ry("l8hao"),nq=ry("2aJGP"),nC=ry("1f6JF"),rb=ry("ER74K"),nz=n1.resolve(__dirname,"../../src/gcc");const aO={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nq=ry("2aJGP"),nH=ry("l655J"),rb=ry("ER74K"),ny=ry("bzNgi"),ny=ry("bzNgi"),nX=n1.resolve(__dirname,"../../src/kcov"),rx=ry("52cQ1"),rb=ry("ER74K"),nh=ry("kY0n1"),ny=ry("bzNgi"),nf=ry("4t50X"),rb=ry("ER74K");class aT extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aC extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aA=e=>void 0===globalThis.DOMException?new aC(e):new DOMException(e),a$=e=>{let t=void 0===e.reason?aA("This operation was aborted."):e.reason;return t instanceof Error?t:aA(t);};ny=ry("bzNgi"),rb=ry("ER74K"),nf=ry("4t50X");const a_=rf.env["ProgramFiles(x86)"],aN=[rf.env["ProgramFiles(x86)"],rf.env.ProgramFiles],aP=["Enterprise","Professional","Community","BuildTools"],aL=["2022","2019","2017"],aD={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nK=tO;const ak=`${a_}\\Microsoft Visual Studio\\Installer`;nW=tT,nY=function(e,t,r,n,i,o){if("win32"!=rf.platform){nf.info("This is not a Windows virtual environment, bye!");return;}rf.env.PATH+=n1.delimiter+ak;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tT(o)}" ${a.join(" ")}`;nf.debug("vcvars command-line: "+l);let c=rt.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nf.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nf.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nf.exportVariable(t,r));}nf.endGroup(),nf.info("Configured Developer Command Prompt");},nh=ry("kY0n1");const aU=12e5,{readFile:aj,writeFile:aM,chmod:aF}=n2.promises;(t6=nJ||(nJ={}))[t6.All=0]="All",t6[t6.ClangFormat=1]="ClangFormat",t6[t6.Core=2]="Core",rb=ry("ER74K"),ny=ry("bzNgi"),nD=ry("8aNoG");const aG=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aB=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aH=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aV=new Map(),aq={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},az="17.0.6";nQ=n1.resolve(__dirname,"../../src/llvm");const aX=eL(tF,{isPromise:!0}),aK=eL(tB,{isPromise:!0}),aW=eL(tH,{isPromise:!0});rx=ry("52cQ1"),ny=ry("bzNgi"),rb=ry("ER74K"),nh=ry("kY0n1"),nZ=n1.resolve(__dirname,"../../src/msvc"),ny=ry("bzNgi"),ny=ry("bzNgi"),rb=ry("ER74K"),nh=ry("kY0n1"),ny=ry("bzNgi");let aY=!1;const aJ={nala:tW,cmake:e$,ninja:tw,python:eG,vcpkg:t0,bazel:ec,conan:function(e,t,r){return e6("conan",e);},meson:function(e,t,r){return e6("meson",e);},gcovr:function(e,t,r){return e6("gcovr",e);},opencppcoverage:tY,llvm:tM,gcc:th,choco:eo,brew:er,powershell:tQ,ccache:function(e,t,r){switch(process.platform){case"win32":return es("ccache",e);case"darwin":return ei("ccache",e);case"linux":if(D())return eu("ccache",e);if(L())return ea([{name:"ccache",version:e}]);if(k())return q([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return es("sccache",e);case"linux":case"darwin":return ei("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tu,graphviz:ts,cppcheck:ti,clangtidy:function(e,t,r){return tG(e,t,r);},clangformat:function(e,t,r){return tG(e,t,r,nJ.ClangFormat);},msvc:tX,vcvarsall:tC,kcov:tS,make:tz,task:function(e,t,r){return eC("task",e,tZ,t,r);},sevenzip:ex},aQ=Object.keys(aJ),aZ=["compiler","architecture","timeout",...aQ];nf=ry("4t50X"),rb=ry("ER74K"),nH=ry("l655J"),t4(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rb.error)("main() panicked!"),(0,rb.error)(e),process.exitCode=1;}); + Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rR("a7JAS",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(n5),d=i(n7),f=i(rb("8gh3V")),h=i(rb("7i1qo"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new y(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rR("8gh3V",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rR("7i1qo",function(e,t){e.exports=rb("fbmJm");}),rR("fbmJm",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n5.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t9.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=n5.request,t;},n=function(e){var t=new c(e);return t.request=n5.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n7.request,t;},o=function(e){var t=new c(e);return t.request=n7.request,t.createSocket=u,t.defaultPort=443,t;},rr.inherits(c,re.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rR("3T6Pq",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rR("dTpO2",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=n6.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,n6.constants.R_OK|n6.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(n4.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rR("azKnO",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(n3);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rR("eCDnw",function(e,t){var r=n3.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rR("gMm9F",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=rb("iWDmx"),i=rb("9xs9T");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rR("iWDmx",function(e,t){e.exports=rb("eCDnw");}),rR("9xs9T",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rR("4oHc1",function(e,t){l(e.exports,"appendFile",()=>n),l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>S),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n6.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:R,unlink:I,utimes:S,writeFile:O}=n6.promises,T="rm"in n6.promises?n6.promises.rm:(0,rr.promisify)(n6.unlink);}),rR("bGwAu",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rR("3qgxS",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rR("3CqZ1",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rR("aMLnW",function(e,t){var r=rb("3CqZ1"),n=rb("3qgxS"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rb("9J5od"),a=s.safeRe,l=s.t,c=rb("6omBt"),u=rb("fx8Ft").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rR("6omBt",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rR("fx8Ft",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rR("UI3XL",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rR("l655J",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rR("jzJq8",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rR("b1nH1",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rR("inG4j",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rR("2aJGP",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).major;}),rR("h6Ixq",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).minor;}),rR("90ROK",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).patch;}),rR("8m4O1",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rR("3uysP",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rR("hYBTv",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(t,e,n);}),rR("ftcZo",function(e,t){var r=rb("3uysP");e.exports=(e,t)=>r(e,t,!0);}),rR("1CIrW",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rR("exBHN",function(e,t){var r=rb("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rR("lm1lq",function(e,t){var r=rb("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rR("cPjhN",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(e,t,n)>0;}),rR("avz3V",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0>r(e,t,n);}),rR("fXQFJ",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0===r(e,t,n);}),rR("bu0Ra",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0!==r(e,t,n);}),rR("9xdhv",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rR("8aNoG",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0>=r(e,t,n);}),rR("8gipG",function(e,t){var r=rb("fXQFJ"),n=rb("bu0Ra"),i=rb("cPjhN"),o=rb("9xdhv"),s=rb("avz3V"),a=rb("8aNoG");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rR("l8hao",function(e,t){var r=rb("aMLnW"),n=rb("UI3XL"),i=rb("9J5od"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rR("dSz9p",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rb("6omBt"),o=rb("9J5od"),s=o.safeRe,a=o.t,l=rb("8gipG"),c=rb("3CqZ1"),u=rb("aMLnW"),p=rb("4FTez");}),rR("4FTez",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,$(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,E=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=I(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},I=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=x(i),u=c||x(o),p=u||x(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),A=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),_=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rR("eGCLk",function(e,t){var r=rb("JD6z9");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rR("JD6z9",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rR("eRnrA",function(e,t){var r=rb("4FTez");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rR("aAvhf",function(e,t){var r=rb("aMLnW"),n=rb("4FTez");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rR("iWAcu",function(e,t){var r=rb("aMLnW"),n=rb("4FTez");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rR("32TwK",function(e,t){var r=rb("aMLnW"),n=rb("4FTez"),i=rb("cPjhN");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rR("194Ox",function(e,t){var r=rb("4FTez");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rR("a8VZj",function(e,t){var r=rb("aMLnW"),n=rb("dSz9p");let{ANY:i}=n;var o=rb("4FTez"),s=rb("2bU8Y"),a=rb("cPjhN"),l=rb("avz3V"),c=rb("8aNoG"),u=rb("9xdhv");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rR("2yv5J",function(e,t){var r=rb("a8VZj");e.exports=(e,t,n)=>r(e,t,">",n);}),rR("46KXA",function(e,t){var r=rb("a8VZj");e.exports=(e,t,n)=>r(e,t,"<",n);}),rR("e3Thp",function(e,t){var r=rb("4FTez");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rR("8g51l",function(e,t){var r=rb("2bU8Y"),n=rb("3uysP");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rR("kY0n1",function(e,t){async function r(e){try{return await(0,rn.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rR("i8A01",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rR("bzNgi",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n3.basename)(e):(0,n3.basename)(e,(0,n3.extname)(e));}function w(e){return(0,n3.normalize)(e).replace(RegExp((0,r.default)(n3.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n3.extname)(e),n=`${t}${(0,n3.basename)(e,r)}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function R(e,t){let r=(0,n3.extname)(e),n=`${(0,n3.basename)(e,r)}${t}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function S(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n3.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,n3.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n3.sep)||r===(0,n3.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>S),l(e.exports,"dirname",()=>n3.dirname),l(e.exports,"join",()=>n3.join),r=rb("iNGpn"),n=rb("axeRu"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>R),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>S),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>C),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rR("iNGpn",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rR("axeRu",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n3.basename(e,n3.extname(e))+t,i=n3.join(n3.dirname(e),n);return(r=e.slice(0,2))==="."+n3.sep||"./"===r?"."+n3.sep+i:i;};}),rR("hZdK0",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){rt.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(n3),p=i(rb("ipB3d"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. 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.`);throw Error(`Unable to locate executable file: ${t}. 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 r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rR("ipB3d",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(n6),c=i(n3);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rR("42L4Y",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rb("lroIv"));s=rb("4t50X"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n4.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=n4.platform(),r="";if("darwin"===t)r=ri.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return n6.existsSync(e)?r=n6.readFileSync(e).toString():n6.existsSync(t)&&(r=n6.readFileSync(t).toString()),r;};}),rR("lroIv",function(e,t){function r(e){A[e]=$++;}function n(e){for(var t=0;tR||!(t.loose?T[A.LOOSE]:T[A.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>R)throw TypeError("version is longer than "+R+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?T[A.LOOSE]:T[A.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function d(e,t,r){return a(e,t,r)>=0;}function f(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return c(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,O=t.re=[],T=t.safeRe=[],C=t.src=[],A=t.tokens={},$=0,N=[["\\s",1],["\\d",R],[_="[a-zA-Z0-9-]",S]],r("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=_+"+",r("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",r("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",r("GTLT"),C[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[A.COERCERTL]=RegExp(C[A.COERCE],"g"),T[A.COERCERTL]=RegExp(n(C[A.COERCE]),"g"),r("LONETILDE"),C[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",O[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),T[A.TILDETRIM]=RegExp(n(C[A.TILDETRIM]),"g"),r("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[A.LONECARET]="(?:\\^)",r("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",O[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),T[A.CARETTRIM]=RegExp(n(C[A.CARETTRIM]),"g"),r("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",O[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),T[A.COMPARATORTRIM]=RegExp(n(C[A.COMPARATORTRIM]),"g"),P="$1$2$3",r("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var b,R,I,S,O,T,C,A,$,_,N,P,L,D,k=0;k<$;k++)b(k,C[k]),O[k]||(O[k]=new RegExp(C[k]),T[k]=new RegExp(n(C[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,D={},m.prototype.parse=function(e){var t=this.options.loose?T[A.COMPARATORLOOSE]:T[A.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=D;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[A.HYPHENRANGELOOSE]:T[A.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[A.COMPARATORTRIM],P),b("comparator trim",e,T[A.COMPARATORTRIM]),e=(e=(e=e.replace(T[A.TILDETRIM],"$1~")).replace(T[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[A.COMPARATORLOOSE]:T[A.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?T[A.CARETLOOSE]:T[A.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[A.TILDELOOSE]:T[A.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?T[A.XRANGELOOSE]:T[A.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(T[A.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=T[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[A.COERCERTL].lastIndex=-1;}else n=e.match(T[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rR("eAF86",function(e,t){var r=rb("1W8as"),n=rb("hTpVN");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rR("1W8as",function(e,t){e.exports=function(){return n8.randomBytes(16);};}),rR("hTpVN",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rR("1f6JF",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(rb("4B2AJ"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new ro.StringDecoder("utf8"),c=new ro.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rR("4B2AJ",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(n4),a=i(re),l=i(ri),c=i(n3),u=i(rb("hZdK0")),p=i(rb("ipB3d")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let 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'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rs.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let 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();}}}}),rR("4JiFg",function(e,t){e.exports=Promise.resolve(require("./actions_python.c4cbfdde.js")).then(()=>rb("4kQHk"));}),rR("2tlzJ",function(e,t){e.exports=Promise.resolve(require("./hdi.340fbf70.js")).then(()=>rb("8Fs7q"));}),rI=rb("52cQ1"),rS=rb("ER74K"),rO=rb("iWDmx"),function(){rb("eCDnw").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rT={}),rC={},rC=rb("gMm9F"),rA={},rA={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},r$={},l(r_={},"isexe",()=>n9),l(r_,"sync",()=>ie),rN=rb("4oHc1");const n9=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it(await(0,rN.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ie=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it((0,n6.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t)=>e.isFile()&&ir(e,t),ir=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(rP={},"isexe",()=>ii),l(rP,"sync",()=>io),rN=rb("4oHc1");const ii=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia(await(0,rN.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},io=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia((0,n6.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},is=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&is(t,r),il="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rP:r_,ic=il.isexe,iu=il.sync;rL=n3.join,rD=n3.delimiter,rk=n3.sep,rU=n3.posix;const ip="win32"===process.platform,id=new RegExp(`[${rU.sep}${rk===rU.sep?"":rk}]`.replace(/(\\)/g,"\\$1")),ih=RegExp("^\\."+id.source),im=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rD})=>{let i=e.match(id)?[""]:[...(ip?[process.cwd()]:[]),...(t||"").split(n)];if(ip){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},ig=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&ih.test(t)?t.slice(0,2):"")+rL(r,t);},iE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(await ic(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);};r$=iE,iE.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(iu(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw im(e);},rj={},rF={},rM={},rG={};const iy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iw=iy?";":":";rB={},"win32"===process.platform||ry.TESTING_WINDOWS?rH=rb("bGwAu"):rH=rb("d3qS7"),rB=u,u.sync=function(e,t){try{return rH.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ix=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ib=(e,t)=>{let r=t.colon||iw,n=e.match(/\//)||iy&&e.match(/\\/)?[""]:[...(iy?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iy?i.split(r):[""];return iy&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iR=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ib(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ix(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n3.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rB(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rG=iR,iR.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ib(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rV=iI).default=iI,rM=function(e){return p(e)||p(e,!0);};rq=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rz=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rX={},rK={},rW={},rW=/^#!(.*)/,rK=(e="")=>{let t=e.match(rW);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rX=function(e){let t;let r=Buffer.alloc(150);try{t=n6.openSync(e,"r"),n6.readSync(t,r,0,150,0),n6.closeSync(t);}catch(e){}return rK(r.toString());};const iS="win32"===process.platform;rF=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!iS)return e;let t=function(e){e.file=rM(e);let t=e.file&&rX(e.file);return t?(e.args.unshift(e.file),e.command=t,rM(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=n3.normalize(e.command),e.command=rq(e.command),e.args=e.args.map(e=>rz(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rY={};const iO="win32"===process.platform;rY={hookChildProcess:function(e,t){if(!iO)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iO&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rj=h).spawn=h,rj.sync=function(e,t,r){let n=rF(e,t,r),i=ri.spawnSync(n.command,n.args,n.options);return i.error=i.error||rY.verifyENOENTSync(i.status,n),i;},rj._parse=rF,rj._enoent=rY;const iT=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(iC(i,o)||!n)&&Object.defineProperty(e,r,o);},iC=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},iA=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},i$=(e,t)=>`/* Wrapped ${e}*/ +${t}`,i_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iN=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iP=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=i$.bind(null,n,t.toString());Object.defineProperty(i,"name",iN),Object.defineProperty(e,"toString",{...i_,value:i});},iL=new WeakMap(),iD=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(iL.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iT(e,t,n,r);iA(e,t),iP(e,t,n);}(o,e),iL.set(o,n),o;};iD.callCount=e=>{if(!iL.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iL.get(e);},rJ=iD;const ik=()=>Array.from({length:iF-ij+1},iU),iU=(e,t)=>({name:"SIGRT"+(t+1),number:ij+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ij=34,iF=64,iM=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],iG=()=>[...iM,...ik()].map(iB),iB=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rd.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iH=Object.fromEntries(iG().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),iV=(e,t)=>{let r=iq(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iq=(e,t)=>{let r=t.find(({name:t})=>rd.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iG();return Object.assign({},...Array.from({length:iF+1},(t,r)=>iV(r,e)));})();const iz=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iX=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:f=c(ru).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,m=iz({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} +${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},iK=["stdin","stdout","stderr"],iW=e=>iK.some(t=>void 0!==e[t]),iY=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iK.map(t=>e[t]);if(iW(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iK.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,iK.length)},(e,r)=>t[r]);};rQ={};const iJ=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(iJ(rZ=ry.process)){var iQ,iZ=rt,i0=rb("e1Rfe"),i1=/^win/i.test(rZ.platform),i2=re;"function"!=typeof i2&&(i2=i2.EventEmitter),rZ.__signal_exit_emitter__?iQ=rZ.__signal_exit_emitter__:((iQ=rZ.__signal_exit_emitter__=new i2()).count=0,iQ.emitted={}),iQ.infinite||(iQ.setMaxListeners(1/0),iQ.infinite=!0);var i4=function(){i8&&iJ(ry.process)&&(i8=!1,i0.forEach(function(e){try{rZ.removeListener(e,i6[e]);}catch(e){}}),rZ.emit=oe,rZ.reallyExit=i7,iQ.count-=1);};(rQ=function(e,t){if(!iJ(ry.process))return function(){};iZ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i8&&i5();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iQ.on(r,e),function(){iQ.removeListener(r,e),0===iQ.listeners("exit").length&&0===iQ.listeners("afterexit").length&&i4();};}).unload=i4;var i3=function(e,t,r){iQ.emitted[e]||(iQ.emitted[e]=!0,iQ.emit(e,t,r));},i6={};i0.forEach(function(e){i6[e]=function(){iJ(ry.process)&&rZ.listeners(e).length===iQ.count&&(i4(),i3("exit",null,e),i3("afterexit",null,e),i1&&"SIGHUP"===e&&(e="SIGINT"),rZ.kill(rZ.pid,e));};}),rQ.signals=function(){return i0;};var i8=!1,i5=function(){!i8&&iJ(ry.process)&&(i8=!0,iQ.count+=1,i0=i0.filter(function(e){try{return rZ.on(e,i6[e]),!0;}catch(e){return!1;}}),rZ.emit=ot,rZ.reallyExit=i9);};rQ.load=i5;var i7=rZ.reallyExit,i9=function(e){iJ(ry.process)&&(rZ.exitCode=e||0,i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),i7.call(rZ,rZ.exitCode));},oe=rZ.emit,ot=function(e,t){if(!("exit"===e&&iJ(ry.process)))return oe.apply(this,arguments);void 0!==t&&(rZ.exitCode=t);var r=oe.apply(this,arguments);return i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),r;};}else rQ=function(){return function(){};};const or=(e,t="SIGTERM",r={})=>{let n=e(t);return on(e,t,r,n),n;},on=(e,t,r,n)=>{if(!oi(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},os(r));i.unref&&i.unref();},oi=(e,{forceKillAfterTimeout:t},r)=>oo(e)&&!1!==t&&r,oo=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),os=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},oa=(e,t)=>{e.kill()&&(t.isCanceled=!0);},ol=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oc=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{ol(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},ou=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},od=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,of=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!od(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oh=e=>{null!==e.stdout&&(e.pipeStdout=of.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=of.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=of.bind(void 0,e,"all"));};r0={},r1=rf.constants,r2=rr.promisify,r4={},r3=rh.PassThrough,r4=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r3({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const om=r2(rh.pipeline);class ov extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r0=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),r0.array=(e,t)=>w(e,{...t,array:!0}),r0.MaxBufferError=ov,r6={},r8=rh.PassThrough,r6=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r8({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const og=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oE=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.readFileSync)(t)),oy=e=>{let t=oE(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},ow=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.createReadStream)(t)),ox=(e,t)=>{let r=ow(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},ob=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},oR=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},oI=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},oS=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=oI(e,{encoding:n,buffer:i,maxBuffer:o}),l=oI(t,{encoding:n,buffer:i,maxBuffer:o}),c=oI(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},oR(e,a),oR(t,l),oR(r,c)]);}},oO=(async()=>{})().constructor.prototype,oT=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oO,e)]),oC=(e,t)=>{for(let[r,n]of oT){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oA=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),o$=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],o_=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oN=(e,t)=>o$(e,t).join(" "),oP=(e,t)=>o$(e,t).map(e=>o_(e)).join(" "),oL=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},oD=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},ok=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oU=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=ok(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return ok(s,Array.isArray(a)?a.map(e=>oD(e)):[oD(a)],o.endsWith(" "));},oj=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oU({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oF=(0,rm.debuglog)("execa").enabled,oM=(e,t)=>(e+"").padStart(t,"0"),oG=()=>{let e=new Date();return`${oM(e.getHours(),2)}:${oM(e.getMinutes(),2)}:${oM(e.getSeconds(),2)}.${oM(e.getMilliseconds(),3)}`;},oB=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${oG()}] ${e} +`);},oH=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oV=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oF,...r}).env=oH(r),r.stdio=iY(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oq=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oz=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oX=(e={})=>({preferLocal:!0,...oz(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oj(n,i);return x(o,s,oX(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oj(e,r);return b(n,i,oX(t));},r;}();const oK={stdio:"inherit",shell:!0},oW=/^~(?=$|\/|\\)/;rS=rb("ER74K"),r5={},r7=rb("bSUdl"),r9=rv.env.npm_package_json,nt=!!((ne=rv.env.npm_config_user_agent)&&ne.startsWith("npm")),nr=!!(r9&&r9.endsWith("package.json")),nn=nt||nr,ni=!!(ne&&ne.startsWith("yarn")),no=nn||ni,ns=n4.homedir(),na=process.env.XDG_CONFIG_HOME||n3.join(ns,".config","simple-update-notifier"),nl=function(e){return n3.join(na,"".concat(e.replace("@","").replace("/","__"),".json"));},nc=function(){n6.existsSync(na)||n6.mkdirSync(na,{recursive:!0});},nu=function(e){var t=nl(e);try{if(!n6.existsSync(t))return;return JSON.parse(n6.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},np=function(e){var t=nl(e);n6.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nd=function(e,t){return $(void 0,void 0,void 0,function(){var r;return _(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n7.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nf=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return $(void 0,void 0,void 0,function(){var e,r;return _(this,function(i){switch(i.label){case 0:if(nc(),e=nu(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;nE=function(e){return oY?e.replace(/(\s+)/g,"\\$1"):oQ(.../(\d+\.\d+)\.(\d+)/.exec(oJ).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rb("i8A01"),t=function(e){return e.split("").reverse().join("");},ny=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(ny={});const oZ=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",o0=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,f=oZ({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} +${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},o1=["stdin","stdout","stderr"],o2=e=>o1.some(t=>void 0!==e[t]),o4=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return o1.map(t=>e[t]);if(o2(e))throw Error("It's not possible to provide `stdio` in combination with one of "+o1.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,o1.length)},(e,r)=>t[r]);},o3=(e,t="SIGTERM",r={})=>{let n=e(t);return o6(e,t,r,n),n;},o6=(e,t,r,n)=>{if(!o8(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o7(r));i.unref&&i.unref();},o8=(e,{forceKillAfterTimeout:t},r)=>o5(e)&&!1!==t&&r,o5=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o7=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o9=(e,t)=>{e.kill()&&(t.isCanceled=!0);},se=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},st=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{se(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},sr=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},sn=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},si=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,so=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!si(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},ss=e=>{null!==e.stdout&&(e.pipeStdout=so.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=so.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=so.bind(void 0,e,"all"));},sa=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sl=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.readFileSync)(t)),sc=e=>{let t=sl(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},su=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.createReadStream)(t)),sp=(e,t)=>{let r=su(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sd=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sf=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sh=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},sm=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sh(e,{encoding:n,buffer:i,maxBuffer:o}),l=sh(t,{encoding:n,buffer:i,maxBuffer:o}),c=sh(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},sf(e,a),sf(t,l),sf(r,c)]);}},sv=(async()=>{})().constructor.prototype,sg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sv,e)]),sE=(e,t)=>{for(let[r,n]of sg){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sy=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sw=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sx=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sb=(e,t)=>sw(e,t).join(" "),sR=(e,t)=>sw(e,t).map(e=>sx(e)).join(" "),sI=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sS=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sO=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sS(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sS(s,Array.isArray(a)?a.map(e=>sI(e)):[sI(a)],o.endsWith(" "));},sT=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sO({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sC=(0,rm.debuglog)("execa").enabled,sA=(e,t)=>(e+"").padStart(t,"0"),s$=()=>{let e=new Date();return`${sA(e.getHours(),2)}:${sA(e.getMinutes(),2)}:${sA(e.getSeconds(),2)}.${sA(e.getMilliseconds(),3)}`;},s_=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${s$()}] ${e} +`);},sN=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sP=(e,t,r={})=>{let n=c(rj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sC,...r}).env=sN(r),r.stdio=o4(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sL=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sD=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sk=(e={})=>({preferLocal:!0,...sD(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sT(n,i);return U(o,s,sk(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sT(e,r);return function(e,t,r){let n;let i=sP(e,t,r),o=sb(e,t),s=sR(e,t);s_(s,i.options);let a=sc(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw o0({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sL(i.options,n.stdout,n.error),u=sL(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=o0({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sk(t));},r;}(),rN=rb("4oHc1"),ng=rb("kY0n1");const sU={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sj=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sF=A("~/.cpprc");let sM=!1;rS=rb("ER74K"),nw=rb("iNGpn");const{appendFile:sG}=n6.promises;let sB=!1,sH=!1;const sV=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t5=nx||(nx={}))[t5.NameDashVersion=0]="NameDashVersion",t5[t5.NameEqualsVersion=1]="NameEqualsVersion",t5[t5.Name=2]="Name",t5[t5.None=3]="None",nv=rb("4t50X"),nb=rb("bzNgi"),nR=rb("hZdK0"),nb=rb("bzNgi");let sq=!1;rS=rb("ER74K"),ng=rb("kY0n1"),nb=rb("bzNgi");let sz=!1;rS=rb("ER74K"),rS=rb("ER74K");let sX=!1,sK=!1;const sW=/Version\s*:\s*(.*)/g;nI={},nS=n3.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nO=nI&&nI.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nT=nI&&nI.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nC=nI&&nI.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nO(t,e,r);return nT(t,e),t;},nA=nI&&nI.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},n$=nI&&nI.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nI,"__esModule",{value:!0}),nI.evaluateVersions=nI.isExplicitVersion=nI.findFromManifest=nI.getManifestFromRepo=nI.findAllVersions=nI.find=nI.cacheFile=nI.cacheDir=nI.extractZip=nI.extractXar=nI.extractTar=nI.extract7z=nI.downloadTool=nI.HTTPError=void 0;const sY=nC(rb("4t50X")),sJ=nC(rb("hZdK0")),sQ=nC(n6),sZ=nC(rb("42L4Y")),s0=nC(n4),s1=nC(n3),s2=nC(rb("a7JAS")),s4=nC(rb("lroIv")),s3=nC(rh),s6=nC(rr),s8=n$(rb("eAF86"));n_=rb("1f6JF"),nP=(nN={},nN.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),nL=nN&&nN.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nD=nN&&nN.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nP(t,e,r);return nL(t,e),t;},nk=nN&&nN.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nN,"__esModule",{value:!0}),nN.RetryHelper=void 0;const s5=nD(rb("4t50X"));nN.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nk(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s7 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nI.HTTPError=s7;const s9="win32"===process.platform,ae="darwin"===process.platform;nI.downloadTool=function(e,t,r,n){return nA(this,void 0,void 0,function*(){t=t||s1.join(eb(),s8.default()),yield sJ.mkdirP(s1.dirname(t)),sY.debug("Downloading "+e),sY.debug("Destination "+t);let i=eR("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eR("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nN.RetryHelper(3,i,o);return yield s.execute(()=>nA(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nA(this,void 0,void 0,function*(){if(sQ.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s2.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sY.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s7(o.message.statusCode);throw sY.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s6.promisify(s3.pipeline),a=eR("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sQ.createWriteStream(t)),sY.debug("download complete"),l=!0,t;}finally{if(!l){sY.debug("download failed");try{yield sJ.rmRF(t);}catch(e){sY.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s7)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nI.extract7z=function(e,t,r){return nA(this,void 0,void 0,function*(){rt.ok(s9,"extract7z() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sY.isDebug()?"-bb1":"-bb0";yield n_.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=s1.join(nS,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sJ.which("powershell",!0);yield n_.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nI.extractTar=function(e,t,r="xz"){return nA(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ev(t),sY.debug("Checking tar --version");let i="";yield n_.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sY.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sY.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s9&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield n_.exec("tar",n),t;});},nI.extractXar=function(e,t,r=[]){return nA(this,void 0,void 0,function*(){let n;rt.ok(ae,"extractXar() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sY.isDebug()&&n.push("-v");let i=yield sJ.which("xar",!0);return yield n_.exec(`"${i}"`,Array.from(new Set(n))),t;});},nI.extractZip=function(e,t){return nA(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ev(t),s9?yield function(e,t){return nA(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sJ.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sY.debug("Using pwsh at path: "+i),yield n_.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield sJ.which("powershell",!0);sY.debug("Using powershell at path: "+t),yield n_.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nA(this,void 0,void 0,function*(){let r=yield sJ.which("unzip",!0),n=[e];sY.isDebug()||n.unshift("-q"),n.unshift("-o"),yield n_.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nI.cacheDir=function(e,t,r,n){return nA(this,void 0,void 0,function*(){if(r=s4.clean(r)||r,n=n||s0.arch(),sY.debug(`Caching tool ${t} ${r} ${n}`),sY.debug("source dir: "+e),!sQ.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of sQ.readdirSync(e)){let r=s1.join(e,t);yield sJ.cp(r,i,{recursive:!0});}return eE(t,r,n),i;});},nI.cacheFile=function(e,t,r,n,i){return nA(this,void 0,void 0,function*(){if(n=s4.clean(n)||n,i=i||s0.arch(),sY.debug(`Caching tool ${r} ${n} ${i}`),sY.debug("source file: "+e),!sQ.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),s=s1.join(o,t);return sY.debug("destination file "+s),yield sJ.cp(e,s),eE(r,n,i),o;});},nI.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||s0.arch(),ey(t)||(t=ew(em(e,r),t));let n="";if(t){t=s4.clean(t)||"";let i=s1.join(ex(),e,t,r);sY.debug("checking cache: "+i),sQ.existsSync(i)&&sQ.existsSync(`${i}.complete`)?(sY.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sY.debug("not found");}return n;},nI.findAllVersions=em,nI.getManifestFromRepo=function(e,t,r,n="master"){return nA(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s2.HttpClient("tool-cache"),a={};r&&(sY.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sY.debug("Invalid json");}}return i;});},nI.findFromManifest=function(e,t,r,n=s0.arch()){return nA(this,void 0,void 0,function*(){return yield sZ._findMatch(e,t,r,n);});},nI.isExplicitVersion=ey,nI.evaluateVersions=ew,nb=rb("bzNgi"),nU=rb("l8hao"),nj=rb("8aNoG"),nR=rb("hZdK0"),rS=rb("ER74K"),rS=rb("ER74K"),nb=rb("bzNgi"),rI=rb("52cQ1"),ng=rb("kY0n1"),Object.defineProperty(nF={},"__esModule",{value:!0}),nF.retryAsPromised=nF.TimeoutError=void 0;class at extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nF.TimeoutError=at,nF.retryAsPromised=e$,nF.default=e$;let ar=!1;nv=rb("4t50X"),nM={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nG=Array.prototype.slice,nB=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const an=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||n6.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||n6.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||n6.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n6.mkdirSync,t;},ai=(e,t,r)=>{let n=(0,n3.dirname)(e),i={...an(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,i,ai(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ao=Object.assign(async(e,t,r)=>{let n=an(t);n.recursive=!1;let i=(0,n3.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ao(i,n).then(t=>ao(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:ai}),as=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?as(e,(0,n3.dirname)(t),t):void 0);},aa=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?aa(e,(0,n3.dirname)(t),t):void 0;}},al=(e,t)=>{let r=an(t);if(r.recursive=!0,(0,n3.dirname)(e)===e)return r.mkdirSync(e,r);let n=aa(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return ai(e,r);throw t;}},ac=Object.assign(async(e,t)=>{let r={...an(t),recursive:!0};return(0,n3.dirname)(e)===e?await r.mkdirAsync(e,r):as(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ao(e,r);throw t;}));},{sync:al}),au=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,ap=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,n3.resolve)(e),"win32"===au){let{root:t}=(0,n3.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ad=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),af=+ad[0]>10||10==+ad[0]&&+ad[1]>=12,ah=af?e=>an(e).mkdirSync===n6.mkdirSync:()=>!1,am=Object.assign(af?e=>an(e).mkdir===n6.mkdir:()=>!1,{sync:ah}),av=(e,t)=>{e=ap(e);let r=an(t);return ah(r)?al(e,r):ai(e,r);},ag=Object.assign(async(e,t)=>{e=ap(e);let r=an(t);return am(r)?ac(e,r):ao(e,r);},{mkdirpSync:av,mkdirpNative:ac,mkdirpNativeSync:al,mkdirpManual:ao,mkdirpManualSync:ai,sync:av,native:ac,nativeSync:al,manual:ao,manualSync:ai,useNative:am,useNativeSync:ah});ng=rb("kY0n1"),nb=rb("bzNgi"),n_=rb("1f6JF"),rI=rb("52cQ1"),rS=rb("ER74K"),ng=rb("kY0n1"),nb=rb("bzNgi"),n_=rb("1f6JF"),rS=rb("ER74K"),nH=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rg.URL(t),!0;}catch{return!1;}},nV=async e=>{if(!nH(e))return!1;let t=await ej(e,"HEAD");return!!t||!!(t=await ej(e,"GET"));},nU=rb("l8hao"),nq=rb("3uysP"),nz=rb("l655J");const aE=/v?(\d\S*)/,ay={llvm:eH(),clangtidy:eH(),clangformat:eH(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:D()?"1.10.0-1":"1.10.0",gcc:D()?"13.2.1-3":"13"},aw={pip:"22.2.0",python:"3.7.9"},ax={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ab=eU(e2,{isPromise:!0});rS=rb("ER74K"),Object.defineProperty(nX={},"__esModule",{value:!0}),nX.getUbuntuVersion=void 0,nX.getUbuntuVersion=e6;const aR=eU(e8,{isPromise:!0}),aI=eU(tt,{isPromise:!0}),aS=eU(tr,{isPromise:!0}),aO=eU(tn,{isPromise:!0});rS=rb("ER74K"),nb=rb("bzNgi"),ng=rb("kY0n1");const aT=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[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"]]]),aC=eU(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rd).release()).split(".")[0];let[t,r]=aT.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});rI=rb("52cQ1"),rS=rb("ER74K"),ng=rb("kY0n1"),nb=rb("bzNgi"),nU=rb("l8hao"),nK=rb("2aJGP"),n_=rb("1f6JF"),rS=rb("ER74K"),nW=n3.resolve(__dirname,"../../src/gcc");const aA={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};nK=rb("2aJGP"),nz=rb("l655J"),rS=rb("ER74K"),nb=rb("bzNgi"),nb=rb("bzNgi"),nY=n3.resolve(__dirname,"../../src/kcov"),rI=rb("52cQ1"),rS=rb("ER74K"),ng=rb("kY0n1"),nb=rb("bzNgi"),nv=rb("4t50X"),rS=rb("ER74K");class a$ extends Error{constructor(e){super(e),this.name="TimeoutError";}}class a_ extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aN=e=>void 0===globalThis.DOMException?new a_(e):new DOMException(e),aP=e=>{let t=void 0===e.reason?aN("This operation was aborted."):e.reason;return t instanceof Error?t:aN(t);};nb=rb("bzNgi"),rS=rb("ER74K"),nv=rb("4t50X");const aL=rv.env["ProgramFiles(x86)"],aD=[rv.env["ProgramFiles(x86)"],rv.env.ProgramFiles],ak=["Enterprise","Professional","Community","BuildTools"],aU=["2022","2019","2017"],aj={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nJ=tA;const aF=`${aL}\\Microsoft Visual Studio\\Installer`;nQ=t$,nZ=function(e,t,r,n,i,o){if("win32"!=rv.platform){nv.info("This is not a Windows virtual environment, bye!");return;}rv.env.PATH+=n3.delimiter+aF;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${t$(o)}" ${a.join(" ")}`;nv.debug("vcvars command-line: "+l);let c=ri.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nv.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nv.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nv.exportVariable(t,r));}nv.endGroup(),nv.info("Configured Developer Command Prompt");},ng=rb("kY0n1");const aM=12e5,{readFile:aG,writeFile:aB,chmod:aH}=n6.promises;(t7=n0||(n0={}))[t7.All=0]="All",t7[t7.ClangFormat=1]="ClangFormat",t7[t7.Core=2]="Core",rS=rb("ER74K"),nb=rb("bzNgi"),nj=rb("8aNoG");const aV=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aq=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),az=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2"]),aX=new Map(),aK={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},aW="17.0.6";n1=n3.resolve(__dirname,"../../src/llvm");const aY=eU(tH,{isPromise:!0}),aJ=eU(tq,{isPromise:!0}),aQ=eU(tz,{isPromise:!0});rI=rb("52cQ1"),nb=rb("bzNgi"),rS=rb("ER74K"),ng=rb("kY0n1"),n2=n3.resolve(__dirname,"../../src/msvc"),nb=rb("bzNgi"),nb=rb("bzNgi"),rS=rb("ER74K"),ng=rb("kY0n1"),nb=rb("bzNgi");let aZ=!1;const a0={nala:tQ,cmake:eP,ninja:tR,python:eV,vcpkg:t4,bazel:ed,conan:function(e,t,r){return e7("conan",e);},meson:function(e,t,r){return e7("meson",e);},gcovr:function(e,t,r){return e7("gcovr",e);},opencppcoverage:tZ,llvm:tB,gcc:tg,choco:el,brew:eo,powershell:t1,ccache:function(e,t,r){switch(process.platform){case"win32":return ec("ccache",e);case"darwin":return ea("ccache",e);case"linux":if(D())return ef("ccache",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return K([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return ec("sccache",e);case"linux":case"darwin":return ea("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tf,graphviz:tc,cppcheck:ta,clangtidy:function(e,t,r){return tV(e,t,r);},clangformat:function(e,t,r){return tV(e,t,r,n0.ClangFormat);},msvc:tY,vcvarsall:t_,kcov:tC,make:tW,task:function(e,t,r){return e_("task",e,t2,t,r);},sevenzip:eI},a1=Object.keys(a0),a2=["compiler","architecture","timeout",...a1];nv=rb("4t50X"),rS=rb("ER74K"),nz=rb("l655J"),t8(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rS.error)("main() panicked!"),(0,rS.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map \ No newline at end of file diff --git a/dist/modern/setup-cpp.js.map b/dist/modern/setup-cpp.js.map index 26b6bdb8..6b7c6949 100644 --- a/dist/modern/setup-cpp.js.map +++ b/dist/modern/setup-cpp.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rF","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rj","sync","command","path","rG","pathExt","n1","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iR","file","original","h","rk","rt","spawn","rX","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ra","execPath","URL","rl","fileURLToPath","ro","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r0","getBufferedLength","rQ","MAX_LENGTH","bufferedData","getBufferedValue","od","on","of","x","oG","oA","o$","oM","oa","rs","ChildProcess","oS","reject","iV","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","oO","os","ol","kill","i9","bind","cancel","oi","rK","exitCode","signal","ob","oB","aborted","failed","oE","oy","op","b","ov","spawnSync","input","status","R","getuid","CI","rT","nothrow","I","oq","o_","O","T","S","map","C","SUDO_USER","n2","statSync","isDirectory","A","n0","homedir","replace","oz","$","next","throw","done","value","then","apply","_","return","call","label","ops","pop","trys","sent","Symbol","iterator","N","r3","pkg","nd","rb","warning","message","stack","P","Array","isArray","L","D","k","U","s$","sy","sw","sC","o9","sm","oJ","sv","o7","se","o1","o8","sd","s_","sl","sc","sn","j","stdio","M","sL","nm","nv","shouldEscapeSpace","rx","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nf","info","exportVariable","G","setFailed","F","sD","some","test","PATH","split","includes","addPath","B","H","appendFileSync","sk","sU","nh","pathExists","readFileSync","V","Set","writeFileSync","q","K","name","version","DEBIAN_FRONTEND","sM","W","sF","Y","flatMap","repositories","X","sG","binDir","z","ng","default","trim","Q","J","Z","ee","toString","sj","et","startsWith","er","ny","dirname","tmpdir","nw","mkdirP","NONINTERACTIVE","en","ei","sB","arch","eo","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","es","sH","TMP","TEMP","Path","extendEnv","ea","el","ec","eu","sV","sq","ep","matchAll","sz","ed","sJ","sQ","eE","sW","existsSync","readdirSync","ev","ef","ey","s4","sK","eh","s0","clean","sX","debug","rmRF","em","valid","eg","sort","gt","satisfies","RUNNER_TOOL_CACHE","t7","ok","RUNNER_TEMP","ew","rv","ex","eb","eR","eI","eS","eO","eT","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","s7","current","catch","RegExp","Math","pow","eC","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nx","installDir","nk","downloadTool","s9","cacheDir","eA","nL","nD","addExeExt","extractTar","e$","e_","nj","eN","eP","eL","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nU","nM","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","eD","n6","request","method","statusCode","end","ek","from","filter","nB","localeCompare","eU","nG","has","JSON","stringify","ej","am","nC","getExecOutput","console","eM","eF","eG","eV","bin","eK","eB","eH","e5","e8","upgrade","usePipx","tn","isLibrary","ez","setupActionsPython","ry","eq","eX","ag","python","eW","eJ","eY","pip","eQ","eZ","e0","e1","aE","parseInt","av","e2","execFile","encoding","shell","e4","e3","nV","getUbuntuVersion","e6","aR","user","tt","PIPX_HOME","ax","PIPX_BIN_DIR","ab","ay","tr","e7","ah","e9","te","aw","findIndex","ti","to","ts","ta","tl","ArchiveHdi","read","extract","tc","tu","tp","aS","notice","td","tf","aO","releaseName","fileSuffix","th","tv","tg","tm","nq","tE","nz","ty","tw","tx","tb","tR","tI","nX","tS","tO","aD","tT","execSync","entries","aL","aN","aP","a_","tC","nY","tA","aU","startGroup","milliseconds","fallback","customTimers","sign","a$","addEventListener","Number","POSITIVE_INFINITY","aT","finally","clear","t$","endGroup","aJ","t1","t_","tN","aF","aj","NODE_DEBUG","tP","aM","rm","tL","tD","tk","aB","tU","aH","aV","get","aG","aq","az","tj","tM","aX","tV","tF","tG","aW","tq","nJ","All","nH","aK","tB","tH","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","nQ","tz","tX","nK","nW","tK","nZ","tW","tY","tJ","tQ","tZ","t0","aY","addShExt","addShRelativePrefix","t2","compiler","t4","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","aZ","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rS","create","autoloadLocales","addLocale","rO","rR","rI","forEach","cppcheck","gcovr","aQ","isCI","now","parseFloat","format","success","t3","t6","r_","rN","rP","rL","rB","rH","rY","rZ","r1","r4","r8","r5","r7","r9","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nF","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","random","rng","n4","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n3","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t8","connect","localAddress","defaultPort","t9","inherits","t5","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","appendFile","writeFile","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","re","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","rr","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rn","HandleTimeout","rw","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","rC","n8","n7","rA","n5","n9","groups","getgroups","r$","ie","ii","it","ir","io","_ISEXE_TEST_PLATFORM_","is","isexe","ia","posix","il","ic","iu","source","ip","pathEnv","pathExtExe","ih","im","rD","rU","iv","OSTYPE","ig","rM","iE","iy","colon","iw","ix","rV","rq","rz","openSync","readSync","closeSync","ib","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iI","getOwnPropertyDescriptor","iS","iO","getPrototypeOf","iT","iC","Function","iA","i$","i_","WeakMap","iN","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","iP","ik","iD","iL","number","action","description","standard","iU","forced","ij","iM","signals","rc","supported","iF","iG","iB","iH","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iq","iz","iX","iK","reallyExit","pid","iW","iY","iJ","iQ","iZ","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i0","i4","i2","i5","i6","rW","equal","i3","alwaysLast","unload","i1","i7","i8","oe","ot","unref","forceKillAfterTimeout","or","SIGTERM","isFinite","oo","killSignal","race","cleanup","detached","oc","ou","createWriteStream","pipeStdout","pipeStderr","pipeAll","ru","rp","PassThrough","array","objectMode","setEncoding","pipeline","rJ","buffer","MaxBufferError","r2","readable","isEmpty","oh","om","inputFile","og","createReadStream","ow","ox","oR","oI","oT","oC","oN","ri","isBuffer","oP","oL","templates","expressions","template","oD","rd","debuglog","enabled","oU","padStart","oj","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oF","preferLocal","localDir","stripFinalNewline","windowsHide","oH","oV","rf","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r6","padEnd","isTTY","shouldNotifyInNpmScript","oX","oK","release","oW","oY","oQ","oZ","o0","o2","o4","o6","o3","o5","st","sr","si","so","ss","sa","su","sp","sf","sh","sg","sE","sx","sb","sR","sI","sS","sO","sT","sA","sN","sP","nE","nS","sY","sZ","s1","s2","nT","s3","nN","nA","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s6","httpStatusCode","new","target","HTTPError","s8","s5","nO","authorization","statusMessage","extract7z","nb","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","ae","fs","mkdirAsync","statAsync","at","ar","an","ai","ao","as","aa","__TESTING_MKDIRP_PLATFORM__","al","root","ac","__TESTING_MKDIRP_NODE_VERSION__","au","ap","ad","af","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rh","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aI","aC","aA","globalThis","DOMException","reason","ProgramFiles","ak","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-fd61ca5b164aabc9.js","../../node_modules/@parcel/runtime-js/lib/runtime-3933bfab24449cc5.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $d7DIX$os = require(\"os\");\nvar $d7DIX$path = require(\"path\");\nvar $d7DIX$fs = require(\"fs\");\nvar $d7DIX$crypto = require(\"crypto\");\nvar $d7DIX$http = require(\"http\");\nvar $d7DIX$https = require(\"https\");\nrequire(\"net\");\nvar $d7DIX$tls = require(\"tls\");\nvar $d7DIX$events = require(\"events\");\nvar $d7DIX$assert = require(\"assert\");\nvar $d7DIX$util = require(\"util\");\nvar $d7DIX$nodefs = require(\"node:fs\");\nvar $d7DIX$child_process = require(\"child_process\");\nvar $d7DIX$string_decoder = require(\"string_decoder\");\nvar $d7DIX$timers = require(\"timers\");\nvar $d7DIX$nodebuffer = require(\"node:buffer\");\nvar $d7DIX$nodepath = require(\"node:path\");\nvar $d7DIX$nodechild_process = require(\"node:child_process\");\nvar $d7DIX$nodeprocess = require(\"node:process\");\nvar $d7DIX$nodeurl = require(\"node:url\");\nvar $d7DIX$nodeos = require(\"node:os\");\nvar $d7DIX$buffer = require(\"buffer\");\nvar $d7DIX$stream = require(\"stream\");\nvar $d7DIX$nodeutil = require(\"node:util\");\nvar $d7DIX$process = require(\"process\");\nvar $d7DIX$url = require(\"url\");\nvar $d7DIX$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"52cQ1\", function(module, exports) {\n\"use strict\";\n\nvar $jgqtC = parcelRequire(\"jgqtC\");\nconst $3aa719050363449a$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $jgqtC.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$jgqtC.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $3aa719050363449a$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$3aa719050363449a$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $3aa719050363449a$var$env && $3aa719050363449a$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$3aa719050363449a$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $3aa719050363449a$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($3aa719050363449a$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($3aa719050363449a$var$env.BUILD_ID || // Jenkins, Cloudbees\n$3aa719050363449a$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$3aa719050363449a$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$3aa719050363449a$var$env.CI_APP_ID || // Appflow\n$3aa719050363449a$var$env.CI_BUILD_ID || // Appflow\n$3aa719050363449a$var$env.CI_BUILD_NUMBER || // Appflow\n$3aa719050363449a$var$env.CI_NAME || // Codeship and others\n$3aa719050363449a$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$3aa719050363449a$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $3aa719050363449a$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$3aa719050363449a$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $3aa719050363449a$var$env[obj.env] && $3aa719050363449a$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$3aa719050363449a$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $3aa719050363449a$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"jgqtC\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"ER74K\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $59a05e0535061862$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $59a05e0535061862$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $59a05e0535061862$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $59a05e0535061862$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $59a05e0535061862$export$a80b3bd66acc52ff);\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\nfunction $59a05e0535061862$export$a3bc9b8ed74fc(err) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$491112666e282270(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$b31f6ae88848cf15(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$a80b3bd66acc52ff(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"4t50X\", function(module, exports) {\n\"use strict\";\nvar $340dc29cb75a8fc5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $340dc29cb75a8fc5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $340dc29cb75a8fc5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $340dc29cb75a8fc5$var$__createBinding(result, mod, k);\n }\n $340dc29cb75a8fc5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $340dc29cb75a8fc5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $dIPEE = parcelRequire(\"dIPEE\");\n\nvar $aSbHp = parcelRequire(\"aSbHp\");\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\n\nconst $340dc29cb75a8fc5$var$os = $340dc29cb75a8fc5$var$__importStar($d7DIX$os);\n\nconst $340dc29cb75a8fc5$var$path = $340dc29cb75a8fc5$var$__importStar($d7DIX$path);\n\nvar $6dNYa = parcelRequire(\"6dNYa\");\n/**\n * The code to exit an action\n */ var $340dc29cb75a8fc5$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($340dc29cb75a8fc5$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$exportVariable(name, val) {\n const convertedVal = $i0ItD.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"ENV\", $aSbHp.prepareKeyValueMessage(name, val));\n $dIPEE.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $340dc29cb75a8fc5$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $340dc29cb75a8fc5$var$setSecret(secret) {\n $dIPEE.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $340dc29cb75a8fc5$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $340dc29cb75a8fc5$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $aSbHp.issueFileCommand(\"PATH\", inputPath);\n else $dIPEE.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$340dc29cb75a8fc5$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $340dc29cb75a8fc5$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $340dc29cb75a8fc5$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $340dc29cb75a8fc5$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $340dc29cb75a8fc5$var$getMultilineInput(name, options) {\n const inputs = $340dc29cb75a8fc5$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $340dc29cb75a8fc5$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $340dc29cb75a8fc5$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $340dc29cb75a8fc5$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $340dc29cb75a8fc5$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"OUTPUT\", $aSbHp.prepareKeyValueMessage(name, value));\n process.stdout.write($340dc29cb75a8fc5$var$os.EOL);\n $dIPEE.issueCommand(\"set-output\", {\n name: name\n }, $i0ItD.toCommandValue(value));\n}\nmodule.exports.setOutput = $340dc29cb75a8fc5$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $340dc29cb75a8fc5$var$setCommandEcho(enabled) {\n $dIPEE.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $340dc29cb75a8fc5$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $340dc29cb75a8fc5$var$setFailed(message) {\n process.exitCode = $340dc29cb75a8fc5$var$ExitCode.Failure;\n $340dc29cb75a8fc5$var$error(message);\n}\nmodule.exports.setFailed = $340dc29cb75a8fc5$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $340dc29cb75a8fc5$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $340dc29cb75a8fc5$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $340dc29cb75a8fc5$var$debug(message) {\n $dIPEE.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $340dc29cb75a8fc5$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$error(message, properties = {}) {\n $dIPEE.issueCommand(\"error\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $340dc29cb75a8fc5$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$warning(message, properties = {}) {\n $dIPEE.issueCommand(\"warning\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $340dc29cb75a8fc5$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$notice(message, properties = {}) {\n $dIPEE.issueCommand(\"notice\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $340dc29cb75a8fc5$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $340dc29cb75a8fc5$var$info(message) {\n process.stdout.write(message + $340dc29cb75a8fc5$var$os.EOL);\n}\nmodule.exports.info = $340dc29cb75a8fc5$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $340dc29cb75a8fc5$var$startGroup(name) {\n $dIPEE.issue(\"group\", name);\n}\nmodule.exports.startGroup = $340dc29cb75a8fc5$var$startGroup;\n/**\n * End an output group.\n */ function $340dc29cb75a8fc5$var$endGroup() {\n $dIPEE.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $340dc29cb75a8fc5$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $340dc29cb75a8fc5$var$group(name, fn) {\n return $340dc29cb75a8fc5$var$__awaiter(this, void 0, void 0, function*() {\n $340dc29cb75a8fc5$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $340dc29cb75a8fc5$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $340dc29cb75a8fc5$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"STATE\", $aSbHp.prepareKeyValueMessage(name, value));\n $dIPEE.issueCommand(\"save-state\", {\n name: name\n }, $i0ItD.toCommandValue(value));\n}\nmodule.exports.saveState = $340dc29cb75a8fc5$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $340dc29cb75a8fc5$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $340dc29cb75a8fc5$var$getState;\nfunction $340dc29cb75a8fc5$var$getIDToken(aud) {\n return $340dc29cb75a8fc5$var$__awaiter(this, void 0, void 0, function*() {\n return yield $6dNYa.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $340dc29cb75a8fc5$var$getIDToken;\n\nvar $dTpO2 = parcelRequire(\"dTpO2\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $dTpO2.summary;\n }\n});\n\nvar $dTpO2 = parcelRequire(\"dTpO2\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $dTpO2.markdownSummary;\n }\n});\n\nvar $azKnO = parcelRequire(\"azKnO\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $azKnO.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $azKnO.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $azKnO.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"dIPEE\", function(module, exports) {\n\"use strict\";\nvar $9fd773f80bf7d36c$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $9fd773f80bf7d36c$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $9fd773f80bf7d36c$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $9fd773f80bf7d36c$var$__createBinding(result, mod, k);\n }\n $9fd773f80bf7d36c$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $9fd773f80bf7d36c$var$os = $9fd773f80bf7d36c$var$__importStar($d7DIX$os);\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $9fd773f80bf7d36c$var$issueCommand(command, properties, message) {\n const cmd = new $9fd773f80bf7d36c$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $9fd773f80bf7d36c$var$os.EOL);\n}\nmodule.exports.issueCommand = $9fd773f80bf7d36c$var$issueCommand;\nfunction $9fd773f80bf7d36c$var$issue(name, message = \"\") {\n $9fd773f80bf7d36c$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $9fd773f80bf7d36c$var$issue;\nconst $9fd773f80bf7d36c$var$CMD_STRING = \"::\";\nclass $9fd773f80bf7d36c$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $9fd773f80bf7d36c$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$9fd773f80bf7d36c$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$9fd773f80bf7d36c$var$CMD_STRING}${$9fd773f80bf7d36c$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $9fd773f80bf7d36c$var$escapeData(s) {\n return $i0ItD.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $9fd773f80bf7d36c$var$escapeProperty(s) {\n return $i0ItD.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"i0ItD\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $d1caba43517904de$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $d1caba43517904de$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $d1caba43517904de$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $d1caba43517904de$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"aSbHp\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $7ea805c232758762$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7ea805c232758762$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7ea805c232758762$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7ea805c232758762$var$__createBinding(result, mod, k);\n }\n $7ea805c232758762$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $7ea805c232758762$var$fs = $7ea805c232758762$var$__importStar($d7DIX$fs);\n\nconst $7ea805c232758762$var$os = $7ea805c232758762$var$__importStar($d7DIX$os);\n\nvar $e3G3w = parcelRequire(\"e3G3w\");\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\nfunction $7ea805c232758762$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$7ea805c232758762$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $7ea805c232758762$var$fs.appendFileSync(filePath, `${$i0ItD.toCommandValue(message)}${$7ea805c232758762$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $7ea805c232758762$var$issueFileCommand;\nfunction $7ea805c232758762$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$e3G3w.default()}`;\n const convertedValue = $i0ItD.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$7ea805c232758762$var$os.EOL}${convertedValue}${$7ea805c232758762$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $7ea805c232758762$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"e3G3w\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $a3c1f7e44989a758$export$2e2bcd8739ae039);\n\nvar $kDGEy = parcelRequire(\"kDGEy\");\n\nvar $2ckr2 = parcelRequire(\"2ckr2\");\nfunction $a3c1f7e44989a758$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $kDGEy.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $2ckr2.default)(rnds);\n}\nvar $a3c1f7e44989a758$export$2e2bcd8739ae039 = $a3c1f7e44989a758$var$v4;\n\n});\nparcelRegister(\"kDGEy\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $f0688929972e8cca$export$2e2bcd8739ae039);\n\nconst $f0688929972e8cca$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $f0688929972e8cca$var$poolPtr = $f0688929972e8cca$var$rnds8Pool.length;\nfunction $f0688929972e8cca$export$2e2bcd8739ae039() {\n if ($f0688929972e8cca$var$poolPtr > $f0688929972e8cca$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($d7DIX$crypto))).randomFillSync($f0688929972e8cca$var$rnds8Pool);\n $f0688929972e8cca$var$poolPtr = 0;\n }\n return $f0688929972e8cca$var$rnds8Pool.slice($f0688929972e8cca$var$poolPtr, $f0688929972e8cca$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"2ckr2\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $199c8db8e94efcb9$export$2e2bcd8739ae039);\n\nvar $9IL8W = parcelRequire(\"9IL8W\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $199c8db8e94efcb9$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$199c8db8e94efcb9$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $199c8db8e94efcb9$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($199c8db8e94efcb9$var$byteToHex[arr[offset + 0]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 1]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 2]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 3]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 4]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 5]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 6]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 7]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 8]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 9]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 10]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 11]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 12]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 13]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 14]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $9IL8W.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $199c8db8e94efcb9$export$2e2bcd8739ae039 = $199c8db8e94efcb9$var$stringify;\n\n});\nparcelRegister(\"9IL8W\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $713ccacc4438b458$export$2e2bcd8739ae039);\n\nvar $hDU47 = parcelRequire(\"hDU47\");\nfunction $713ccacc4438b458$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $hDU47.default).test(uuid);\n}\nvar $713ccacc4438b458$export$2e2bcd8739ae039 = $713ccacc4438b458$var$validate;\n\n});\nparcelRegister(\"hDU47\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $cd81919c4b3b9e01$export$2e2bcd8739ae039);\nvar $cd81919c4b3b9e01$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"6dNYa\", function(module, exports) {\n\"use strict\";\nvar $487ab7ded41d44aa$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $a7JAS = parcelRequire(\"a7JAS\");\n\nvar $3T6Pq = parcelRequire(\"3T6Pq\");\n\nvar $4t50X = parcelRequire(\"4t50X\");\nclass $487ab7ded41d44aa$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $a7JAS.HttpClient(\"actions/oidc-client\", [\n new $3T6Pq.BearerCredentialHandler($487ab7ded41d44aa$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $487ab7ded41d44aa$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $487ab7ded41d44aa$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $487ab7ded41d44aa$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $487ab7ded41d44aa$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $4t50X.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $487ab7ded41d44aa$var$OidcClient.getCall(id_token_url);\n $4t50X.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $487ab7ded41d44aa$var$OidcClient;\n\n});\nparcelRegister(\"a7JAS\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $75edecd1a4092d7a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $75edecd1a4092d7a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $75edecd1a4092d7a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $75edecd1a4092d7a$var$__createBinding(result, mod, k);\n }\n $75edecd1a4092d7a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $75edecd1a4092d7a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $75edecd1a4092d7a$var$http = $75edecd1a4092d7a$var$__importStar($d7DIX$http);\n\nconst $75edecd1a4092d7a$var$https = $75edecd1a4092d7a$var$__importStar($d7DIX$https);\n\nconst $75edecd1a4092d7a$var$pm = $75edecd1a4092d7a$var$__importStar((parcelRequire(\"8gh3V\")));\n\nconst $75edecd1a4092d7a$var$tunnel = $75edecd1a4092d7a$var$__importStar((parcelRequire(\"7i1qo\")));\nvar $75edecd1a4092d7a$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($75edecd1a4092d7a$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $75edecd1a4092d7a$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($75edecd1a4092d7a$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $75edecd1a4092d7a$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($75edecd1a4092d7a$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $75edecd1a4092d7a$var$getProxyUrl(serverUrl) {\n const proxyUrl = $75edecd1a4092d7a$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $75edecd1a4092d7a$var$getProxyUrl;\nconst $75edecd1a4092d7a$var$HttpRedirectCodes = [\n $75edecd1a4092d7a$var$HttpCodes.MovedPermanently,\n $75edecd1a4092d7a$var$HttpCodes.ResourceMoved,\n $75edecd1a4092d7a$var$HttpCodes.SeeOther,\n $75edecd1a4092d7a$var$HttpCodes.TemporaryRedirect,\n $75edecd1a4092d7a$var$HttpCodes.PermanentRedirect\n];\nconst $75edecd1a4092d7a$var$HttpResponseRetryCodes = [\n $75edecd1a4092d7a$var$HttpCodes.BadGateway,\n $75edecd1a4092d7a$var$HttpCodes.ServiceUnavailable,\n $75edecd1a4092d7a$var$HttpCodes.GatewayTimeout\n];\nconst $75edecd1a4092d7a$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $75edecd1a4092d7a$var$ExponentialBackoffCeiling = 10;\nconst $75edecd1a4092d7a$var$ExponentialBackoffTimeSlice = 5;\nclass $75edecd1a4092d7a$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $75edecd1a4092d7a$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $75edecd1a4092d7a$var$HttpClientError;\nclass $75edecd1a4092d7a$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $75edecd1a4092d7a$var$HttpClientResponse;\nfunction $75edecd1a4092d7a$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $75edecd1a4092d7a$var$isHttps;\nclass $75edecd1a4092d7a$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $75edecd1a4092d7a$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $75edecd1a4092d7a$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $75edecd1a4092d7a$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$75edecd1a4092d7a$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $75edecd1a4092d7a$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $75edecd1a4092d7a$var$https : $75edecd1a4092d7a$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $75edecd1a4092d7a$var$lowercaseKeys(this.requestOptions.headers), $75edecd1a4092d7a$var$lowercaseKeys(headers || {}));\n return $75edecd1a4092d7a$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $75edecd1a4092d7a$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $75edecd1a4092d7a$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $75edecd1a4092d7a$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $75edecd1a4092d7a$var$tunnel.httpsOverHttps : $75edecd1a4092d7a$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $75edecd1a4092d7a$var$tunnel.httpOverHttps : $75edecd1a4092d7a$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $75edecd1a4092d7a$var$https.Agent(options) : new $75edecd1a4092d7a$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $75edecd1a4092d7a$var$https.globalAgent : $75edecd1a4092d7a$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($75edecd1a4092d7a$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $75edecd1a4092d7a$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $75edecd1a4092d7a$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $75edecd1a4092d7a$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $75edecd1a4092d7a$var$HttpClient;\nconst $75edecd1a4092d7a$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"8gh3V\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $603d0d99277438f4$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($603d0d99277438f4$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $603d0d99277438f4$var$getProxyUrl;\nfunction $603d0d99277438f4$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($603d0d99277438f4$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $603d0d99277438f4$var$checkBypass;\nfunction $603d0d99277438f4$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"7i1qo\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"fbmJm\"));\n\n});\nparcelRegister(\"fbmJm\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $b0d983e8249a2cc9$export$25cbd437c61a3835, (v) => $b0d983e8249a2cc9$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $b0d983e8249a2cc9$export$c06e3df7111bae43, (v) => $b0d983e8249a2cc9$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $b0d983e8249a2cc9$export$5d50e36ef656139f, (v) => $b0d983e8249a2cc9$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $b0d983e8249a2cc9$export$212d6605025321cc, (v) => $b0d983e8249a2cc9$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $b0d983e8249a2cc9$export$1c9f709888824e05, (v) => $b0d983e8249a2cc9$export$1c9f709888824e05 = v);\nvar $b0d983e8249a2cc9$export$25cbd437c61a3835;\nvar $b0d983e8249a2cc9$export$c06e3df7111bae43;\nvar $b0d983e8249a2cc9$export$5d50e36ef656139f;\nvar $b0d983e8249a2cc9$export$212d6605025321cc;\nvar $b0d983e8249a2cc9$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$b0d983e8249a2cc9$export$25cbd437c61a3835 = $b0d983e8249a2cc9$var$httpOverHttp;\n$b0d983e8249a2cc9$export$c06e3df7111bae43 = $b0d983e8249a2cc9$var$httpsOverHttp;\n$b0d983e8249a2cc9$export$5d50e36ef656139f = $b0d983e8249a2cc9$var$httpOverHttps;\n$b0d983e8249a2cc9$export$212d6605025321cc = $b0d983e8249a2cc9$var$httpsOverHttps;\nfunction $b0d983e8249a2cc9$var$httpOverHttp(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$http.request;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpsOverHttp(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$http.request;\n agent.createSocket = $b0d983e8249a2cc9$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpOverHttps(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$https.request;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpsOverHttps(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$https.request;\n agent.createSocket = $b0d983e8249a2cc9$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $d7DIX$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $b0d983e8249a2cc9$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$d7DIX$util.inherits($b0d983e8249a2cc9$var$TunnelingAgent, $d7DIX$events.EventEmitter);\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $b0d983e8249a2cc9$var$mergeOptions({\n request: req\n }, self.options, $b0d983e8249a2cc9$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $b0d983e8249a2cc9$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $b0d983e8249a2cc9$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $b0d983e8249a2cc9$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $b0d983e8249a2cc9$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $b0d983e8249a2cc9$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $b0d983e8249a2cc9$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $b0d983e8249a2cc9$var$createSecureSocket(options, cb) {\n var self = this;\n $b0d983e8249a2cc9$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $b0d983e8249a2cc9$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $d7DIX$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $b0d983e8249a2cc9$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $b0d983e8249a2cc9$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $b0d983e8249a2cc9$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $b0d983e8249a2cc9$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $b0d983e8249a2cc9$var$debug = function() {};\n$b0d983e8249a2cc9$export$1c9f709888824e05 = $b0d983e8249a2cc9$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"3T6Pq\", function(module, exports) {\n\"use strict\";\nvar $2d4bce26bfd1284d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $2d4bce26bfd1284d$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $2d4bce26bfd1284d$var$BasicCredentialHandler;\nclass $2d4bce26bfd1284d$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $2d4bce26bfd1284d$var$BearerCredentialHandler;\nclass $2d4bce26bfd1284d$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $2d4bce26bfd1284d$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"dTpO2\", function(module, exports) {\n\"use strict\";\nvar $a1d46df778449c59$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $a1d46df778449c59$var$access, appendFile: $a1d46df778449c59$var$appendFile, writeFile: $a1d46df778449c59$var$writeFile } = $d7DIX$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $a1d46df778449c59$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $a1d46df778449c59$var$access(pathFromEnv, $d7DIX$fs.constants.R_OK | $d7DIX$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $a1d46df778449c59$var$writeFile : $a1d46df778449c59$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($d7DIX$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $a1d46df778449c59$var$_summary = new $a1d46df778449c59$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $a1d46df778449c59$var$_summary;\nmodule.exports.summary = $a1d46df778449c59$var$_summary;\n\n});\n\nparcelRegister(\"azKnO\", function(module, exports) {\n\"use strict\";\nvar $7b3126f8d7bd7b01$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7b3126f8d7bd7b01$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7b3126f8d7bd7b01$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7b3126f8d7bd7b01$var$__createBinding(result, mod, k);\n }\n $7b3126f8d7bd7b01$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $7b3126f8d7bd7b01$var$path = $7b3126f8d7bd7b01$var$__importStar($d7DIX$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $7b3126f8d7bd7b01$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $7b3126f8d7bd7b01$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $7b3126f8d7bd7b01$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $7b3126f8d7bd7b01$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $7b3126f8d7bd7b01$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $7b3126f8d7bd7b01$var$path.sep);\n}\nmodule.exports.toPlatformPath = $7b3126f8d7bd7b01$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"eCDnw\", function(module, exports) {\n\nvar $aa532906b08b4bb5$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($aa532906b08b4bb5$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"gMm9F\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $iWDmx = parcelRequire(\"iWDmx\");\n\nvar $9xs9T = parcelRequire(\"9xs9T\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $c372508a6b96a969$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $c372508a6b96a969$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $c372508a6b96a969$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $c372508a6b96a969$var$timeDeltaFactory,\n addLocale: $c372508a6b96a969$var$addLocale,\n defaultConfig: $c372508a6b96a969$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $c372508a6b96a969$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $c372508a6b96a969$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $c372508a6b96a969$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $c372508a6b96a969$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $c372508a6b96a969$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $c372508a6b96a969$var$format(firstDate, secondDate, config) {\n $c372508a6b96a969$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $c372508a6b96a969$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($c372508a6b96a969$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $c372508a6b96a969$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($c372508a6b96a969$var$hasLocale(locale)) return;\n if ($9xs9T && autoload) $c372508a6b96a969$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $c372508a6b96a969$var$hasLocale(localeId) {\n return Boolean($c372508a6b96a969$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $c372508a6b96a969$var$requireLocale(localeId) {\n try {\n $c372508a6b96a969$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $c372508a6b96a969$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $c372508a6b96a969$var$pluralize(unit, value, config) {\n const unitTypeData = $c372508a6b96a969$var$getLocaleDataForUnitType(config);\n const unitString = $iWDmx.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$getLocaleDataForUnitType(config) {\n const localeData = $c372508a6b96a969$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $c372508a6b96a969$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"iWDmx\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"eCDnw\"));\n\n});\n\nparcelRegister(\"9xs9T\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"4oHc1\", function(module, exports) {\n\n$parcel$export(module.exports, \"chmod\", () => $5873751dcaaa8049$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $5873751dcaaa8049$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $5873751dcaaa8049$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $5873751dcaaa8049$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $5873751dcaaa8049$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readlink\", () => $5873751dcaaa8049$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $5873751dcaaa8049$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $5873751dcaaa8049$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $5873751dcaaa8049$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $5873751dcaaa8049$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $5873751dcaaa8049$export$a1f77f18af3aebd5);\n\n\nvar $5873751dcaaa8049$export$2e2bcd8739ae039 = $d7DIX$fs.promises;\nconst { access: $5873751dcaaa8049$export$9bb0e144ba4929ca, appendFile: $5873751dcaaa8049$export$31f54b44f813a103, chmod: $5873751dcaaa8049$export$fe07cae62e774a05, chown: $5873751dcaaa8049$export$86560bc0b866a003, copyFile: $5873751dcaaa8049$export$c763efb2c06e223f, lchmod: $5873751dcaaa8049$export$4d4374c7ea08c49f, lchown: $5873751dcaaa8049$export$b34a65c440b523a2, link: $5873751dcaaa8049$export$9c30223ca0a664fb, lstat: $5873751dcaaa8049$export$c29f07eab13966a4, mkdir: $5873751dcaaa8049$export$d9fa9670717a639d, mkdtemp: $5873751dcaaa8049$export$bb440dc863a3b46a, open: $5873751dcaaa8049$export$3ce6949f20cea765, readdir: $5873751dcaaa8049$export$b1e07c405f785337, readFile: $5873751dcaaa8049$export$72c04af63de9061a, readlink: $5873751dcaaa8049$export$3d3ca76659ee9f39, realpath: $5873751dcaaa8049$export$9f2c45015a422c45, rename: $5873751dcaaa8049$export$7ac989ec0c9c279, rmdir: $5873751dcaaa8049$export$3f660f6332b9a01d, stat: $5873751dcaaa8049$export$f82f04a91eb6144a, symlink: $5873751dcaaa8049$export$ed42c6f39f07f97, truncate: $5873751dcaaa8049$export$6a506b36fdea397d, unlink: $5873751dcaaa8049$export$5e0808041271ce04, utimes: $5873751dcaaa8049$export$d85d919a687a608f, writeFile: $5873751dcaaa8049$export$552bfb764b5cd2b4 } = $d7DIX$fs.promises;\nconst $5873751dcaaa8049$export$a1f77f18af3aebd5 = \"rm\" in $d7DIX$fs.promises ? $d7DIX$fs.promises.rm : (0, $d7DIX$util.promisify)($d7DIX$fs.unlink);\n\n});\n\nparcelRegister(\"bGwAu\", function(module, exports) {\nmodule.exports = $881ce52b35d88d20$var$isexe;\n$881ce52b35d88d20$var$isexe.sync = $881ce52b35d88d20$var$sync;\n\nfunction $881ce52b35d88d20$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $881ce52b35d88d20$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $881ce52b35d88d20$var$checkPathExt(path, options);\n}\nfunction $881ce52b35d88d20$var$isexe(path, options, cb) {\n $d7DIX$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $881ce52b35d88d20$var$checkStat(stat, path, options));\n });\n}\nfunction $881ce52b35d88d20$var$sync(path, options) {\n return $881ce52b35d88d20$var$checkStat($d7DIX$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"d3qS7\", function(module, exports) {\nmodule.exports = $9810665efbefe038$var$isexe;\n$9810665efbefe038$var$isexe.sync = $9810665efbefe038$var$sync;\n\nfunction $9810665efbefe038$var$isexe(path, options, cb) {\n $d7DIX$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $9810665efbefe038$var$checkStat(stat, options));\n });\n}\nfunction $9810665efbefe038$var$sync(path, options) {\n return $9810665efbefe038$var$checkStat($d7DIX$fs.statSync(path), options);\n}\nfunction $9810665efbefe038$var$checkStat(stat, options) {\n return stat.isFile() && $9810665efbefe038$var$checkMode(stat, options);\n}\nfunction $9810665efbefe038$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"e1Rfe\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"bSUdl\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $9J5od = parcelRequire(\"9J5od\");\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $fx8Ft = parcelRequire(\"fx8Ft\");\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\n\nvar $l655J = parcelRequire(\"l655J\");\n\nvar $jzJq8 = parcelRequire(\"jzJq8\");\n\nvar $b1nH1 = parcelRequire(\"b1nH1\");\n\nvar $inG4j = parcelRequire(\"inG4j\");\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $h6Ixq = parcelRequire(\"h6Ixq\");\n\nvar $90ROK = parcelRequire(\"90ROK\");\n\nvar $8m4O1 = parcelRequire(\"8m4O1\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n\nvar $hYBTv = parcelRequire(\"hYBTv\");\n\nvar $ftcZo = parcelRequire(\"ftcZo\");\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\n\nvar $exBHN = parcelRequire(\"exBHN\");\n\nvar $lm1lq = parcelRequire(\"lm1lq\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $fXQFJ = parcelRequire(\"fXQFJ\");\n\nvar $bu0Ra = parcelRequire(\"bu0Ra\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $8gipG = parcelRequire(\"8gipG\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $eRnrA = parcelRequire(\"eRnrA\");\n\nvar $aAvhf = parcelRequire(\"aAvhf\");\n\nvar $iWAcu = parcelRequire(\"iWAcu\");\n\nvar $32TwK = parcelRequire(\"32TwK\");\n\nvar $194Ox = parcelRequire(\"194Ox\");\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\n\nvar $2yv5J = parcelRequire(\"2yv5J\");\n\nvar $46KXA = parcelRequire(\"46KXA\");\n\nvar $e3Thp = parcelRequire(\"e3Thp\");\n\nvar $8g51l = parcelRequire(\"8g51l\");\n\nvar $96YVB = parcelRequire(\"96YVB\");\nmodule.exports = {\n parse: $UI3XL,\n valid: $l655J,\n clean: $jzJq8,\n inc: $b1nH1,\n diff: $inG4j,\n major: $2aJGP,\n minor: $h6Ixq,\n patch: $90ROK,\n prerelease: $8m4O1,\n compare: $3uysP,\n rcompare: $hYBTv,\n compareLoose: $ftcZo,\n compareBuild: $1CIrW,\n sort: $exBHN,\n rsort: $lm1lq,\n gt: $cPjhN,\n lt: $avz3V,\n eq: $fXQFJ,\n neq: $bu0Ra,\n gte: $9xdhv,\n lte: $8aNoG,\n cmp: $8gipG,\n coerce: $l8hao,\n Comparator: $dSz9p,\n Range: $4FTez,\n satisfies: $2bU8Y,\n toComparators: $eRnrA,\n maxSatisfying: $aAvhf,\n minSatisfying: $iWAcu,\n minVersion: $32TwK,\n validRange: $194Ox,\n outside: $a8VZj,\n gtr: $2yv5J,\n ltr: $46KXA,\n intersects: $e3Thp,\n simplifyRange: $8g51l,\n subset: $96YVB,\n SemVer: $aMLnW,\n re: $9J5od.re,\n src: $9J5od.src,\n tokens: $9J5od.t,\n SEMVER_SPEC_VERSION: $3qgxS.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $3qgxS.RELEASE_TYPES,\n compareIdentifiers: $fx8Ft.compareIdentifiers,\n rcompareIdentifiers: $fx8Ft.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"9J5od\", function(module, exports) {\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH = $3qgxS.MAX_SAFE_COMPONENT_LENGTH;\nvar $714c7f42b7f0e43a$require$MAX_SAFE_BUILD_LENGTH = $3qgxS.MAX_SAFE_BUILD_LENGTH;\nvar $714c7f42b7f0e43a$require$MAX_LENGTH = $3qgxS.MAX_LENGTH;\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $714c7f42b7f0e43a$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $714c7f42b7f0e43a$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $3CqZ1(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"3qgxS\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $27e0a264f9f9f368$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $27e0a264f9f9f368$var$MAX_LENGTH = 256;\nconst $27e0a264f9f9f368$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $27e0a264f9f9f368$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $27e0a264f9f9f368$var$MAX_SAFE_BUILD_LENGTH = $27e0a264f9f9f368$var$MAX_LENGTH - 6;\nconst $27e0a264f9f9f368$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $27e0a264f9f9f368$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $27e0a264f9f9f368$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $27e0a264f9f9f368$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $27e0a264f9f9f368$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $27e0a264f9f9f368$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $27e0a264f9f9f368$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"3CqZ1\", function(module, exports) {\nconst $2a29da066bedbbfc$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $2a29da066bedbbfc$var$debug;\n\n});\n\n\nparcelRegister(\"aMLnW\", function(module, exports) {\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $7da324c382d6a88a$require$MAX_LENGTH = $3qgxS.MAX_LENGTH;\nvar $7da324c382d6a88a$require$MAX_SAFE_INTEGER = $3qgxS.MAX_SAFE_INTEGER;\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $7da324c382d6a88a$require$re = $9J5od.safeRe;\nvar $7da324c382d6a88a$require$t = $9J5od.t;\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $fx8Ft = parcelRequire(\"fx8Ft\");\nvar $7da324c382d6a88a$require$compareIdentifiers = $fx8Ft.compareIdentifiers;\nclass $7da324c382d6a88a$var$SemVer {\n constructor(version, options){\n options = $6omBt(options);\n if (version instanceof $7da324c382d6a88a$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $7da324c382d6a88a$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$7da324c382d6a88a$require$MAX_LENGTH} characters`);\n $3CqZ1(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $7da324c382d6a88a$require$re[$7da324c382d6a88a$require$t.LOOSE] : $7da324c382d6a88a$require$re[$7da324c382d6a88a$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $7da324c382d6a88a$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $3CqZ1(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n return $7da324c382d6a88a$require$compareIdentifiers(this.major, other.major) || $7da324c382d6a88a$require$compareIdentifiers(this.minor, other.minor) || $7da324c382d6a88a$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $3CqZ1(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $7da324c382d6a88a$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $3CqZ1(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $7da324c382d6a88a$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($7da324c382d6a88a$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $7da324c382d6a88a$var$SemVer;\n\n});\nparcelRegister(\"6omBt\", function(module, exports) {\n// parse out just the options we care about\nconst $4a7684854438b3a8$var$looseOption = Object.freeze({\n loose: true\n});\nconst $4a7684854438b3a8$var$emptyOpts = Object.freeze({});\nconst $4a7684854438b3a8$var$parseOptions = (options)=>{\n if (!options) return $4a7684854438b3a8$var$emptyOpts;\n if (typeof options !== \"object\") return $4a7684854438b3a8$var$looseOption;\n return options;\n};\nmodule.exports = $4a7684854438b3a8$var$parseOptions;\n\n});\n\nparcelRegister(\"fx8Ft\", function(module, exports) {\nconst $b4f0a9608bfa578c$var$numeric = /^[0-9]+$/;\nconst $b4f0a9608bfa578c$var$compareIdentifiers = (a, b)=>{\n const anum = $b4f0a9608bfa578c$var$numeric.test(a);\n const bnum = $b4f0a9608bfa578c$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $b4f0a9608bfa578c$var$rcompareIdentifiers = (a, b)=>$b4f0a9608bfa578c$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $b4f0a9608bfa578c$var$compareIdentifiers,\n rcompareIdentifiers: $b4f0a9608bfa578c$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"UI3XL\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $0aa7690e2bf9b583$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $aMLnW) return version;\n try {\n return new $aMLnW(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $0aa7690e2bf9b583$var$parse;\n\n});\n\nparcelRegister(\"l655J\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $f5be1b9124e8a995$var$valid = (version, options)=>{\n const v = $UI3XL(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $f5be1b9124e8a995$var$valid;\n\n});\n\nparcelRegister(\"jzJq8\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $e40484ca80391047$var$clean = (version, options)=>{\n const s = $UI3XL(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $e40484ca80391047$var$clean;\n\n});\n\nparcelRegister(\"b1nH1\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $80622aa1b4dfbc9d$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $aMLnW(version instanceof $aMLnW ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $80622aa1b4dfbc9d$var$inc;\n\n});\n\nparcelRegister(\"inG4j\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $d61b01eb687284bf$var$diff = (version1, version2)=>{\n const v1 = $UI3XL(version1, null, true);\n const v2 = $UI3XL(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $d61b01eb687284bf$var$diff;\n\n});\n\nparcelRegister(\"2aJGP\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $194ff4fade75e049$var$major = (a, loose)=>new $aMLnW(a, loose).major;\nmodule.exports = $194ff4fade75e049$var$major;\n\n});\n\nparcelRegister(\"h6Ixq\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $c7458b89940ed03b$var$minor = (a, loose)=>new $aMLnW(a, loose).minor;\nmodule.exports = $c7458b89940ed03b$var$minor;\n\n});\n\nparcelRegister(\"90ROK\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $68fddc2c226bc011$var$patch = (a, loose)=>new $aMLnW(a, loose).patch;\nmodule.exports = $68fddc2c226bc011$var$patch;\n\n});\n\nparcelRegister(\"8m4O1\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $61541b255fd4fd5d$var$prerelease = (version, options)=>{\n const parsed = $UI3XL(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $61541b255fd4fd5d$var$prerelease;\n\n});\n\nparcelRegister(\"3uysP\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $28aee843a4df7f72$var$compare = (a, b, loose)=>new $aMLnW(a, loose).compare(new $aMLnW(b, loose));\nmodule.exports = $28aee843a4df7f72$var$compare;\n\n});\n\nparcelRegister(\"hYBTv\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $d1656f45798b406b$var$rcompare = (a, b, loose)=>$3uysP(b, a, loose);\nmodule.exports = $d1656f45798b406b$var$rcompare;\n\n});\n\nparcelRegister(\"ftcZo\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $b433a3da1df2f705$var$compareLoose = (a, b)=>$3uysP(a, b, true);\nmodule.exports = $b433a3da1df2f705$var$compareLoose;\n\n});\n\nparcelRegister(\"1CIrW\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $12ebd1da918dc016$var$compareBuild = (a, b, loose)=>{\n const versionA = new $aMLnW(a, loose);\n const versionB = new $aMLnW(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $12ebd1da918dc016$var$compareBuild;\n\n});\n\nparcelRegister(\"exBHN\", function(module, exports) {\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\nconst $a96165462e76b234$var$sort = (list, loose)=>list.sort((a, b)=>$1CIrW(a, b, loose));\nmodule.exports = $a96165462e76b234$var$sort;\n\n});\n\nparcelRegister(\"lm1lq\", function(module, exports) {\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\nconst $f8bcb207b3a73186$var$rsort = (list, loose)=>list.sort((a, b)=>$1CIrW(b, a, loose));\nmodule.exports = $f8bcb207b3a73186$var$rsort;\n\n});\n\nparcelRegister(\"cPjhN\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $0268ec36b6100c2c$var$gt = (a, b, loose)=>$3uysP(a, b, loose) > 0;\nmodule.exports = $0268ec36b6100c2c$var$gt;\n\n});\n\nparcelRegister(\"avz3V\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $7a67ff4b4e69975e$var$lt = (a, b, loose)=>$3uysP(a, b, loose) < 0;\nmodule.exports = $7a67ff4b4e69975e$var$lt;\n\n});\n\nparcelRegister(\"fXQFJ\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $b9f539425bdf4b62$var$eq = (a, b, loose)=>$3uysP(a, b, loose) === 0;\nmodule.exports = $b9f539425bdf4b62$var$eq;\n\n});\n\nparcelRegister(\"bu0Ra\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $85c32928d6534f6b$var$neq = (a, b, loose)=>$3uysP(a, b, loose) !== 0;\nmodule.exports = $85c32928d6534f6b$var$neq;\n\n});\n\nparcelRegister(\"9xdhv\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $6f117f82d38ad331$var$gte = (a, b, loose)=>$3uysP(a, b, loose) >= 0;\nmodule.exports = $6f117f82d38ad331$var$gte;\n\n});\n\nparcelRegister(\"8aNoG\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $5f359321e34a81b1$var$lte = (a, b, loose)=>$3uysP(a, b, loose) <= 0;\nmodule.exports = $5f359321e34a81b1$var$lte;\n\n});\n\nparcelRegister(\"8gipG\", function(module, exports) {\n\nvar $fXQFJ = parcelRequire(\"fXQFJ\");\n\nvar $bu0Ra = parcelRequire(\"bu0Ra\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\nconst $603e19dc5fbb1a16$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $fXQFJ(a, b, loose);\n case \"!=\":\n return $bu0Ra(a, b, loose);\n case \">\":\n return $cPjhN(a, b, loose);\n case \">=\":\n return $9xdhv(a, b, loose);\n case \"<\":\n return $avz3V(a, b, loose);\n case \"<=\":\n return $8aNoG(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $603e19dc5fbb1a16$var$cmp;\n\n});\n\nparcelRegister(\"l8hao\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $f627a93f3b8c4872$require$re = $9J5od.safeRe;\nvar $f627a93f3b8c4872$require$t = $9J5od.t;\nconst $f627a93f3b8c4872$var$coerce = (version, options)=>{\n if (version instanceof $aMLnW) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCEFULL] : $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCERTLFULL] : $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $UI3XL(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $f627a93f3b8c4872$var$coerce;\n\n});\n\nparcelRegister(\"dSz9p\", function(module, exports) {\nconst $a1ab95b4a6509cb8$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $a1ab95b4a6509cb8$var$Comparator {\n static get ANY() {\n return $a1ab95b4a6509cb8$var$ANY;\n }\n constructor(comp, options){\n options = $6omBt(options);\n if (comp instanceof $a1ab95b4a6509cb8$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $3CqZ1(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $a1ab95b4a6509cb8$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $3CqZ1(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $a1ab95b4a6509cb8$require$re[$a1ab95b4a6509cb8$require$t.COMPARATORLOOSE] : $a1ab95b4a6509cb8$require$re[$a1ab95b4a6509cb8$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $a1ab95b4a6509cb8$var$ANY;\n else this.semver = new $aMLnW(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $3CqZ1(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $a1ab95b4a6509cb8$var$ANY || version === $a1ab95b4a6509cb8$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $aMLnW(version, this.options);\n } catch (er) {\n return false;\n }\n return $8gipG(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $a1ab95b4a6509cb8$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $4FTez(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $4FTez(this.value, options).test(comp.semver);\n }\n options = $6omBt(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($8gipG(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($8gipG(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $a1ab95b4a6509cb8$var$Comparator;\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $a1ab95b4a6509cb8$require$re = $9J5od.safeRe;\nvar $a1ab95b4a6509cb8$require$t = $9J5od.t;\n\nvar $8gipG = parcelRequire(\"8gipG\");\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\n});\nparcelRegister(\"4FTez\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $3675d6171478137e$var$Range {\n constructor(range, options){\n options = $6omBt(options);\n if (range instanceof $3675d6171478137e$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $3675d6171478137e$var$Range(range.raw, options);\n }\n if (range instanceof $dSz9p) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$3675d6171478137e$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $3675d6171478137e$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $3675d6171478137e$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $3675d6171478137e$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $3675d6171478137e$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.HYPHENRANGELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.HYPHENRANGE];\n range = range.replace(hr, $3675d6171478137e$var$hyphenReplace(this.options.includePrerelease));\n $3CqZ1(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.COMPARATORTRIM], $3675d6171478137e$require$comparatorTrimReplace);\n $3CqZ1(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDETRIM], $3675d6171478137e$require$tildeTrimReplace);\n $3CqZ1(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.CARETTRIM], $3675d6171478137e$require$caretTrimReplace);\n $3CqZ1(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$3675d6171478137e$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$3675d6171478137e$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $3CqZ1(\"loose invalid filter\", comp, this.options);\n return !!comp.match($3675d6171478137e$require$re[$3675d6171478137e$require$t.COMPARATORLOOSE]);\n });\n $3CqZ1(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $dSz9p(comp, this.options));\n for (const comp of comparators){\n if ($3675d6171478137e$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $3675d6171478137e$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $3675d6171478137e$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $3675d6171478137e$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $3675d6171478137e$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $aMLnW(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($3675d6171478137e$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $3675d6171478137e$var$Range;\n\nvar $eGCLk = parcelRequire(\"eGCLk\");\nconst $3675d6171478137e$var$cache = new $eGCLk({\n max: 1000\n});\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $3675d6171478137e$require$re = $9J5od.safeRe;\nvar $3675d6171478137e$require$t = $9J5od.t;\nvar $3675d6171478137e$require$comparatorTrimReplace = $9J5od.comparatorTrimReplace;\nvar $3675d6171478137e$require$tildeTrimReplace = $9J5od.tildeTrimReplace;\nvar $3675d6171478137e$require$caretTrimReplace = $9J5od.caretTrimReplace;\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $3675d6171478137e$require$FLAG_INCLUDE_PRERELEASE = $3qgxS.FLAG_INCLUDE_PRERELEASE;\nvar $3675d6171478137e$require$FLAG_LOOSE = $3qgxS.FLAG_LOOSE;\nconst $3675d6171478137e$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $3675d6171478137e$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $3675d6171478137e$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $3675d6171478137e$var$parseComparator = (comp, options)=>{\n $3CqZ1(\"comp\", comp, options);\n comp = $3675d6171478137e$var$replaceCarets(comp, options);\n $3CqZ1(\"caret\", comp);\n comp = $3675d6171478137e$var$replaceTildes(comp, options);\n $3CqZ1(\"tildes\", comp);\n comp = $3675d6171478137e$var$replaceXRanges(comp, options);\n $3CqZ1(\"xrange\", comp);\n comp = $3675d6171478137e$var$replaceStars(comp, options);\n $3CqZ1(\"stars\", comp);\n return comp;\n};\nconst $3675d6171478137e$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $3675d6171478137e$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceTilde(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $3CqZ1(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($3675d6171478137e$var$isX(M)) ret = \"\";\n else if ($3675d6171478137e$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $3CqZ1(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $3CqZ1(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $3675d6171478137e$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceCaret(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceCaret = (comp, options)=>{\n $3CqZ1(\"caret\", comp, options);\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.CARETLOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $3CqZ1(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($3675d6171478137e$var$isX(M)) ret = \"\";\n else if ($3675d6171478137e$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $3CqZ1(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $3CqZ1(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $3CqZ1(\"caret return\", ret);\n return ret;\n });\n};\nconst $3675d6171478137e$var$replaceXRanges = (comp, options)=>{\n $3CqZ1(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceXRange(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.XRANGELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $3CqZ1(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $3675d6171478137e$var$isX(M);\n const xm = xM || $3675d6171478137e$var$isX(m);\n const xp = xm || $3675d6171478137e$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $3CqZ1(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $3675d6171478137e$var$replaceStars = (comp, options)=>{\n $3CqZ1(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.STAR], \"\");\n};\nconst $3675d6171478137e$var$replaceGTE0 = (comp, options)=>{\n $3CqZ1(\"replaceGTE0\", comp, options);\n return comp.trim().replace($3675d6171478137e$require$re[options.includePrerelease ? $3675d6171478137e$require$t.GTE0PRE : $3675d6171478137e$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $3675d6171478137e$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($3675d6171478137e$var$isX(fM)) from = \"\";\n else if ($3675d6171478137e$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($3675d6171478137e$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($3675d6171478137e$var$isX(tM)) to = \"\";\n else if ($3675d6171478137e$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $3675d6171478137e$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $3CqZ1(set[i].semver);\n if (set[i].semver === $dSz9p.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"eGCLk\", function(module, exports) {\n\"use strict\";\n\nvar $JD6z9 = parcelRequire(\"JD6z9\");\nconst $ab130e548a2d4b38$var$MAX = Symbol(\"max\");\nconst $ab130e548a2d4b38$var$LENGTH = Symbol(\"length\");\nconst $ab130e548a2d4b38$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $ab130e548a2d4b38$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $ab130e548a2d4b38$var$MAX_AGE = Symbol(\"maxAge\");\nconst $ab130e548a2d4b38$var$DISPOSE = Symbol(\"dispose\");\nconst $ab130e548a2d4b38$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $ab130e548a2d4b38$var$LRU_LIST = Symbol(\"lruList\");\nconst $ab130e548a2d4b38$var$CACHE = Symbol(\"cache\");\nconst $ab130e548a2d4b38$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $ab130e548a2d4b38$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $ab130e548a2d4b38$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$ab130e548a2d4b38$var$MAX] = options.max || Infinity;\n const lc = options.length || $ab130e548a2d4b38$var$naiveLength;\n this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $ab130e548a2d4b38$var$naiveLength : lc;\n this[$ab130e548a2d4b38$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$ab130e548a2d4b38$var$MAX_AGE] = options.maxAge || 0;\n this[$ab130e548a2d4b38$var$DISPOSE] = options.dispose;\n this[$ab130e548a2d4b38$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$ab130e548a2d4b38$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$ab130e548a2d4b38$var$MAX] = mL || Infinity;\n $ab130e548a2d4b38$var$trim(this);\n }\n get max() {\n return this[$ab130e548a2d4b38$var$MAX];\n }\n set allowStale(allowStale) {\n this[$ab130e548a2d4b38$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$ab130e548a2d4b38$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$ab130e548a2d4b38$var$MAX_AGE] = mA;\n $ab130e548a2d4b38$var$trim(this);\n }\n get maxAge() {\n return this[$ab130e548a2d4b38$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $ab130e548a2d4b38$var$naiveLength;\n if (lC !== this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR]) {\n this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR] = lC;\n this[$ab130e548a2d4b38$var$LENGTH] = 0;\n this[$ab130e548a2d4b38$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$ab130e548a2d4b38$var$LENGTH] += hit.length;\n });\n }\n $ab130e548a2d4b38$var$trim(this);\n }\n get lengthCalculator() {\n return this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$ab130e548a2d4b38$var$LENGTH];\n }\n get itemCount() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$ab130e548a2d4b38$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $ab130e548a2d4b38$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$ab130e548a2d4b38$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $ab130e548a2d4b38$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$ab130e548a2d4b38$var$DISPOSE] && this[$ab130e548a2d4b38$var$LRU_LIST] && this[$ab130e548a2d4b38$var$LRU_LIST].length) this[$ab130e548a2d4b38$var$LRU_LIST].forEach((hit)=>this[$ab130e548a2d4b38$var$DISPOSE](hit.key, hit.value));\n this[$ab130e548a2d4b38$var$CACHE] = new Map() // hash of items by key\n ;\n this[$ab130e548a2d4b38$var$LRU_LIST] = new $JD6z9() // list of items in order of use recency\n ;\n this[$ab130e548a2d4b38$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].map((hit)=>$ab130e548a2d4b38$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$ab130e548a2d4b38$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$ab130e548a2d4b38$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR](value, key);\n if (this[$ab130e548a2d4b38$var$CACHE].has(key)) {\n if (len > this[$ab130e548a2d4b38$var$MAX]) {\n $ab130e548a2d4b38$var$del(this, this[$ab130e548a2d4b38$var$CACHE].get(key));\n return false;\n }\n const node = this[$ab130e548a2d4b38$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$ab130e548a2d4b38$var$DISPOSE]) {\n if (!this[$ab130e548a2d4b38$var$NO_DISPOSE_ON_SET]) this[$ab130e548a2d4b38$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$ab130e548a2d4b38$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $ab130e548a2d4b38$var$trim(this);\n return true;\n }\n const hit = new $ab130e548a2d4b38$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$ab130e548a2d4b38$var$MAX]) {\n if (this[$ab130e548a2d4b38$var$DISPOSE]) this[$ab130e548a2d4b38$var$DISPOSE](key, value);\n return false;\n }\n this[$ab130e548a2d4b38$var$LENGTH] += hit.length;\n this[$ab130e548a2d4b38$var$LRU_LIST].unshift(hit);\n this[$ab130e548a2d4b38$var$CACHE].set(key, this[$ab130e548a2d4b38$var$LRU_LIST].head);\n $ab130e548a2d4b38$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$ab130e548a2d4b38$var$CACHE].has(key)) return false;\n const hit = this[$ab130e548a2d4b38$var$CACHE].get(key).value;\n return !$ab130e548a2d4b38$var$isStale(this, hit);\n }\n get(key) {\n return $ab130e548a2d4b38$var$get(this, key, true);\n }\n peek(key) {\n return $ab130e548a2d4b38$var$get(this, key, false);\n }\n pop() {\n const node = this[$ab130e548a2d4b38$var$LRU_LIST].tail;\n if (!node) return null;\n $ab130e548a2d4b38$var$del(this, node);\n return node.value;\n }\n del(key) {\n $ab130e548a2d4b38$var$del(this, this[$ab130e548a2d4b38$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$ab130e548a2d4b38$var$CACHE].forEach((value, key)=>$ab130e548a2d4b38$var$get(this, key, false));\n }\n}\nconst $ab130e548a2d4b38$var$get = (self, key, doUse)=>{\n const node = self[$ab130e548a2d4b38$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($ab130e548a2d4b38$var$isStale(self, hit)) {\n $ab130e548a2d4b38$var$del(self, node);\n if (!self[$ab130e548a2d4b38$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$ab130e548a2d4b38$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$ab130e548a2d4b38$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $ab130e548a2d4b38$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$ab130e548a2d4b38$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$ab130e548a2d4b38$var$MAX_AGE] && diff > self[$ab130e548a2d4b38$var$MAX_AGE];\n};\nconst $ab130e548a2d4b38$var$trim = (self)=>{\n if (self[$ab130e548a2d4b38$var$LENGTH] > self[$ab130e548a2d4b38$var$MAX]) for(let walker = self[$ab130e548a2d4b38$var$LRU_LIST].tail; self[$ab130e548a2d4b38$var$LENGTH] > self[$ab130e548a2d4b38$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $ab130e548a2d4b38$var$del(self, walker);\n walker = prev;\n }\n};\nconst $ab130e548a2d4b38$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$ab130e548a2d4b38$var$DISPOSE]) self[$ab130e548a2d4b38$var$DISPOSE](hit.key, hit.value);\n self[$ab130e548a2d4b38$var$LENGTH] -= hit.length;\n self[$ab130e548a2d4b38$var$CACHE].delete(hit.key);\n self[$ab130e548a2d4b38$var$LRU_LIST].removeNode(node);\n }\n};\nclass $ab130e548a2d4b38$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $ab130e548a2d4b38$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($ab130e548a2d4b38$var$isStale(self, hit)) {\n $ab130e548a2d4b38$var$del(self, node);\n if (!self[$ab130e548a2d4b38$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $ab130e548a2d4b38$var$LRUCache;\n\n});\nparcelRegister(\"JD6z9\", function(module, exports) {\n\"use strict\";\nmodule.exports = $08928980bda7e450$var$Yallist;\n$08928980bda7e450$var$Yallist.Node = $08928980bda7e450$var$Node;\n$08928980bda7e450$var$Yallist.create = $08928980bda7e450$var$Yallist;\nfunction $08928980bda7e450$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $08928980bda7e450$var$Yallist)) self = new $08928980bda7e450$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$08928980bda7e450$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$08928980bda7e450$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$08928980bda7e450$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$08928980bda7e450$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$08928980bda7e450$var$push(this, arguments[i]);\n return this.length;\n};\n$08928980bda7e450$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$08928980bda7e450$var$unshift(this, arguments[i]);\n return this.length;\n};\n$08928980bda7e450$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$08928980bda7e450$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$08928980bda7e450$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$08928980bda7e450$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$08928980bda7e450$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $08928980bda7e450$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $08928980bda7e450$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$08928980bda7e450$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$08928980bda7e450$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$08928980bda7e450$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$08928980bda7e450$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $08928980bda7e450$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $08928980bda7e450$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $08928980bda7e450$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $08928980bda7e450$var$insert(self, node, value) {\n var inserted = node === self.head ? new $08928980bda7e450$var$Node(value, null, node, self) : new $08928980bda7e450$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $08928980bda7e450$var$push(self, item) {\n self.tail = new $08928980bda7e450$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $08928980bda7e450$var$unshift(self, item) {\n self.head = new $08928980bda7e450$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $08928980bda7e450$var$Node(value, prev, next, list) {\n if (!(this instanceof $08928980bda7e450$var$Node)) return new $08928980bda7e450$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"6mmJJ\"))($08928980bda7e450$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"6mmJJ\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"2bU8Y\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $198828d4690f72ab$var$satisfies = (version, range, options)=>{\n try {\n range = new $4FTez(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $198828d4690f72ab$var$satisfies;\n\n});\n\nparcelRegister(\"eRnrA\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\n// Mostly just for testing and legacy API reasons\nconst $ad183366a1601ea2$var$toComparators = (range, options)=>new $4FTez(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $ad183366a1601ea2$var$toComparators;\n\n});\n\nparcelRegister(\"aAvhf\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $7b55873206bf39b9$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $4FTez(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $aMLnW(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $7b55873206bf39b9$var$maxSatisfying;\n\n});\n\nparcelRegister(\"iWAcu\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $dca9b97392366ccd$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $4FTez(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $aMLnW(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $dca9b97392366ccd$var$minSatisfying;\n\n});\n\nparcelRegister(\"32TwK\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\nconst $237ca191c3ae55cc$var$minVersion = (range, loose)=>{\n range = new $4FTez(range, loose);\n let minver = new $aMLnW(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $aMLnW(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $aMLnW(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cPjhN(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cPjhN(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $237ca191c3ae55cc$var$minVersion;\n\n});\n\nparcelRegister(\"194Ox\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $0d5a5dad0eeb3de1$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $4FTez(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $0d5a5dad0eeb3de1$var$validRange;\n\n});\n\nparcelRegister(\"a8VZj\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\nconst { ANY: $7627a1f1d8b68e56$var$ANY } = $dSz9p;\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\nconst $7627a1f1d8b68e56$var$outside = (version, range, hilo, options)=>{\n version = new $aMLnW(version, options);\n range = new $4FTez(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cPjhN;\n ltefn = $8aNoG;\n ltfn = $avz3V;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $avz3V;\n ltefn = $9xdhv;\n ltfn = $cPjhN;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($2bU8Y(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $7627a1f1d8b68e56$var$ANY) comparator = new $dSz9p(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $7627a1f1d8b68e56$var$outside;\n\n});\n\nparcelRegister(\"2yv5J\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\nconst $1dc6dfd60f6d4b61$var$gtr = (version, range, options)=>$a8VZj(version, range, \">\", options);\nmodule.exports = $1dc6dfd60f6d4b61$var$gtr;\n\n});\n\nparcelRegister(\"46KXA\", function(module, exports) {\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\n// Determine if version is less than all the versions possible in the range\nconst $2fdc264220ba3549$var$ltr = (version, range, options)=>$a8VZj(version, range, \"<\", options);\nmodule.exports = $2fdc264220ba3549$var$ltr;\n\n});\n\nparcelRegister(\"e3Thp\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $a3cc39e8e39a0af8$var$intersects = (r1, r2, options)=>{\n r1 = new $4FTez(r1, options);\n r2 = new $4FTez(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $a3cc39e8e39a0af8$var$intersects;\n\n});\n\nparcelRegister(\"8g51l\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$3uysP(a, b, options));\n for (const version of v){\n const included = $2bU8Y(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"96YVB\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\nconst { ANY: $6a23efa6855afc70$var$ANY } = $dSz9p;\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $6a23efa6855afc70$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $4FTez(sub, options);\n dom = new $4FTez(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $6a23efa6855afc70$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $6a23efa6855afc70$var$minimumVersionWithPreRelease = [\n new $dSz9p(\">=0.0.0-0\")\n];\nconst $6a23efa6855afc70$var$minimumVersion = [\n new $dSz9p(\">=0.0.0\")\n];\nconst $6a23efa6855afc70$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $6a23efa6855afc70$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $6a23efa6855afc70$var$ANY) return true;\n else if (options.includePrerelease) sub = $6a23efa6855afc70$var$minimumVersionWithPreRelease;\n else sub = $6a23efa6855afc70$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $6a23efa6855afc70$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $6a23efa6855afc70$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $6a23efa6855afc70$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $6a23efa6855afc70$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $3uysP(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$2bU8Y(eq, String(gt), options)) return null;\n if (lt && !$2bU8Y(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$2bU8Y(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $6a23efa6855afc70$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$2bU8Y(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $6a23efa6855afc70$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$2bU8Y(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $6a23efa6855afc70$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $3uysP(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $6a23efa6855afc70$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $3uysP(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $6a23efa6855afc70$var$subset;\n\n});\n\n\nparcelRegister(\"kY0n1\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $f439b2cda090cb68$export$f8b9fb4db095815b);\n\nasync function $f439b2cda090cb68$export$f8b9fb4db095815b(path) {\n try {\n await (0, $d7DIX$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $f439b2cda090cb68$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($d7DIX$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"i8A01\", function(module, exports) {\n\"use strict\";\nvar $d344e60cef0315df$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($d344e60cef0315df$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"bzNgi\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $3294af0a12e8cafb$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $3294af0a12e8cafb$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $3294af0a12e8cafb$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $d7DIX$path.dirname);\n$parcel$export(module.exports, \"join\", () => $d7DIX$path.join);\n\n\nvar $iNGpn = parcelRequire(\"iNGpn\");\n\nvar $axeRu = parcelRequire(\"axeRu\");\nfunction $3294af0a12e8cafb$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $3294af0a12e8cafb$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $3294af0a12e8cafb$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $d7DIX$path.basename)(e) : (0, $d7DIX$path.basename)(e, (0, $d7DIX$path.extname)(e));\n}\nfunction $3294af0a12e8cafb$export$873fead74fe2f1ff(e) {\n return (0, $d7DIX$path.normalize)(e).replace(RegExp((0, $iNGpn.default)((0, $d7DIX$path.sep)) + \"$\"), \"\");\n}\nfunction $3294af0a12e8cafb$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3294af0a12e8cafb$export$3e333f8cb13439c(e, a) {\n const r = (0, $d7DIX$path.extname)(e), s = `${a}${(0, $d7DIX$path.basename)(e, r)}${r}`;\n return (0, $d7DIX$path.join)((0, $d7DIX$path.dirname)(e), s);\n}\nfunction $3294af0a12e8cafb$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $d7DIX$path.extname)(e), s = `${(0, $d7DIX$path.basename)(e, r)}${a}${r}`;\n return (0, $d7DIX$path.join)((0, $d7DIX$path.dirname)(e), s);\n}\nfunction $3294af0a12e8cafb$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3294af0a12e8cafb$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $3294af0a12e8cafb$export$19c5468f88f6e968(e) {\n const a = (0, $d7DIX$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $3294af0a12e8cafb$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($axeRu)))(e, a);\n}\nfunction $3294af0a12e8cafb$export$7d0573375890d05c(e, a) {\n const r = (0, $d7DIX$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $d7DIX$path.sep)) || r === (0, $d7DIX$path.resolve)(e));\n}\nvar $3294af0a12e8cafb$var$O = {}, $3294af0a12e8cafb$var$R = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$R, \"name\", ()=>$3294af0a12e8cafb$export$a8ff84c12d48cfa6);\nvar $3294af0a12e8cafb$var$A = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$A, \"normalizeTrim\", ()=>$3294af0a12e8cafb$export$873fead74fe2f1ff);\nvar $3294af0a12e8cafb$var$I = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$I, \"addExeExt\", ()=>$3294af0a12e8cafb$export$2d20c564cade3c93);\nvar $3294af0a12e8cafb$var$T = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$T, \"addNamePrefix\", ()=>$3294af0a12e8cafb$export$3e333f8cb13439c);\nvar $3294af0a12e8cafb$var$_ = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$_, \"addNameSuffix\", ()=>$3294af0a12e8cafb$export$3b60a3e9bd1aef9d);\nvar $3294af0a12e8cafb$var$k = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$k, \"addShExt\", ()=>$3294af0a12e8cafb$export$609be29b80b555e1);\nvar $3294af0a12e8cafb$var$M = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$M, \"addShRelativePrefix\", ()=>$3294af0a12e8cafb$export$e1f23f8d3e53fe6);\nvar $3294af0a12e8cafb$var$W = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$W, \"removeExt\", ()=>$3294af0a12e8cafb$export$19c5468f88f6e968);\nvar $3294af0a12e8cafb$var$q = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$q, \"replaceExt\", ()=>$3294af0a12e8cafb$export$e9c34737ac8e53d2);\nvar $3294af0a12e8cafb$var$B = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$B, \"isPathInside\", ()=>$3294af0a12e8cafb$export$7d0573375890d05c), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$R), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$A), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$I), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$T), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$_), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$k), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$M), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$W), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$q), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$B);\n\n});\nparcelRegister(\"iNGpn\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $dafdb304e43595c1$export$2e2bcd8739ae039);\nfunction $dafdb304e43595c1$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"axeRu\", function(module, exports) {\n\"use strict\";\n\nfunction $7ab883abb47fe1b1$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $d7DIX$path.basename(npath, $d7DIX$path.extname(npath)) + ext;\n var nFilepath = $d7DIX$path.join($d7DIX$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($7ab883abb47fe1b1$var$startsWithSingleDot(npath)) return \".\" + $d7DIX$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $7ab883abb47fe1b1$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $d7DIX$path.sep || first2chars === \"./\";\n}\nmodule.exports = $7ab883abb47fe1b1$var$replaceExt;\n\n});\n\n\nparcelRegister(\"hZdK0\", function(module, exports) {\n\"use strict\";\nvar $d182cae0c6b8c393$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d182cae0c6b8c393$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d182cae0c6b8c393$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d182cae0c6b8c393$var$__createBinding(result, mod, k);\n }\n $d182cae0c6b8c393$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d182cae0c6b8c393$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $d182cae0c6b8c393$var$path = $d182cae0c6b8c393$var$__importStar($d7DIX$path);\n\nconst $d182cae0c6b8c393$var$ioUtil = $d182cae0c6b8c393$var$__importStar((parcelRequire(\"ipB3d\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $d182cae0c6b8c393$var$cp(source, dest, options = {}) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $d182cae0c6b8c393$var$readCopyOptions(options);\n const destStat = (yield $d182cae0c6b8c393$var$ioUtil.exists(dest)) ? yield $d182cae0c6b8c393$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $d182cae0c6b8c393$var$path.join(dest, $d182cae0c6b8c393$var$path.basename(source)) : dest;\n if (!(yield $d182cae0c6b8c393$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $d182cae0c6b8c393$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $d182cae0c6b8c393$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($d182cae0c6b8c393$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $d182cae0c6b8c393$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $d182cae0c6b8c393$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $d182cae0c6b8c393$var$mv(source, dest, options = {}) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $d182cae0c6b8c393$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $d182cae0c6b8c393$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $d182cae0c6b8c393$var$path.join(dest, $d182cae0c6b8c393$var$path.basename(source));\n destExists = yield $d182cae0c6b8c393$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $d182cae0c6b8c393$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $d182cae0c6b8c393$var$mkdirP($d182cae0c6b8c393$var$path.dirname(dest));\n yield $d182cae0c6b8c393$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $d182cae0c6b8c393$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $d182cae0c6b8c393$var$rmRF(inputPath) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $d182cae0c6b8c393$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $d182cae0c6b8c393$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $d182cae0c6b8c393$var$mkdirP(fsPath) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok(fsPath, \"a path argument must be provided\");\n yield $d182cae0c6b8c393$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $d182cae0c6b8c393$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $d182cae0c6b8c393$var$which(tool, check) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $d182cae0c6b8c393$var$which(tool, false);\n if (!result) {\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $d182cae0c6b8c393$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $d182cae0c6b8c393$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $d182cae0c6b8c393$var$findInPath(tool) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($d182cae0c6b8c393$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($d182cae0c6b8c393$var$ioUtil.isRooted(tool)) {\n const filePath = yield $d182cae0c6b8c393$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($d182cae0c6b8c393$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($d182cae0c6b8c393$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $d182cae0c6b8c393$var$ioUtil.tryGetExecutablePath($d182cae0c6b8c393$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $d182cae0c6b8c393$var$findInPath;\nfunction $d182cae0c6b8c393$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $d182cae0c6b8c393$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $d182cae0c6b8c393$var$mkdirP(destDir);\n const files = yield $d182cae0c6b8c393$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $d182cae0c6b8c393$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $d182cae0c6b8c393$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $d182cae0c6b8c393$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $d182cae0c6b8c393$var$ioUtil.chmod(destDir, (yield $d182cae0c6b8c393$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $d182cae0c6b8c393$var$copyFile(srcFile, destFile, force) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $d182cae0c6b8c393$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $d182cae0c6b8c393$var$ioUtil.lstat(destFile);\n yield $d182cae0c6b8c393$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $d182cae0c6b8c393$var$ioUtil.chmod(destFile, \"0666\");\n yield $d182cae0c6b8c393$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $d182cae0c6b8c393$var$ioUtil.readlink(srcFile);\n yield $d182cae0c6b8c393$var$ioUtil.symlink(symlinkFull, destFile, $d182cae0c6b8c393$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $d182cae0c6b8c393$var$ioUtil.exists(destFile)) || force) yield $d182cae0c6b8c393$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"ipB3d\", function(module, exports) {\n\"use strict\";\nvar $d6774d525a29799d$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d6774d525a29799d$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d6774d525a29799d$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d6774d525a29799d$var$__createBinding(result, mod, k);\n }\n $d6774d525a29799d$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d6774d525a29799d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $d6774d525a29799d$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $d6774d525a29799d$var$fs = $d6774d525a29799d$var$__importStar($d7DIX$fs);\n\nconst $d6774d525a29799d$var$path = $d6774d525a29799d$var$__importStar($d7DIX$path);\n$d6774d525a29799d$var$_a = $d6774d525a29799d$var$fs.promises, module.exports.chmod = $d6774d525a29799d$var$_a.chmod, module.exports.copyFile = $d6774d525a29799d$var$_a.copyFile, module.exports.lstat = $d6774d525a29799d$var$_a.lstat, module.exports.mkdir = $d6774d525a29799d$var$_a.mkdir, module.exports.open = $d6774d525a29799d$var$_a.open, module.exports.readdir = $d6774d525a29799d$var$_a.readdir, module.exports.readlink = $d6774d525a29799d$var$_a.readlink, module.exports.rename = $d6774d525a29799d$var$_a.rename, module.exports.rm = $d6774d525a29799d$var$_a.rm, module.exports.rmdir = $d6774d525a29799d$var$_a.rmdir, module.exports.stat = $d6774d525a29799d$var$_a.stat, module.exports.symlink = $d6774d525a29799d$var$_a.symlink, module.exports.unlink = $d6774d525a29799d$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $d6774d525a29799d$var$fs.constants.O_RDONLY;\nfunction $d6774d525a29799d$var$exists(fsPath) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $d6774d525a29799d$var$exists;\nfunction $d6774d525a29799d$var$isDirectory(fsPath, useStat = false) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $d6774d525a29799d$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $d6774d525a29799d$var$isRooted(p) {\n p = $d6774d525a29799d$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $d6774d525a29799d$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $d6774d525a29799d$var$tryGetExecutablePath(filePath, extensions) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $d6774d525a29799d$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($d6774d525a29799d$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $d6774d525a29799d$var$path.dirname(filePath);\n const upperName = $d6774d525a29799d$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $d6774d525a29799d$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($d6774d525a29799d$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $d6774d525a29799d$var$tryGetExecutablePath;\nfunction $d6774d525a29799d$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $d6774d525a29799d$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $d6774d525a29799d$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $d6774d525a29799d$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"42L4Y\", function(module, exports) {\n\"use strict\";\nvar $2f1bde43f3e1d36b$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $2f1bde43f3e1d36b$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $2f1bde43f3e1d36b$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $2f1bde43f3e1d36b$var$__createBinding(result, mod, k);\n }\n $2f1bde43f3e1d36b$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $2f1bde43f3e1d36b$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $2f1bde43f3e1d36b$var$semver = $2f1bde43f3e1d36b$var$__importStar((parcelRequire(\"lroIv\")));\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\n\nfunction $2f1bde43f3e1d36b$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $2f1bde43f3e1d36b$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $d7DIX$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $4t50X.debug(`check ${version} satisfies ${versionSpec}`);\n if ($2f1bde43f3e1d36b$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $4t50X.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $2f1bde43f3e1d36b$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $4t50X.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $2f1bde43f3e1d36b$var$_findMatch;\nfunction $2f1bde43f3e1d36b$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $d7DIX$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $d7DIX$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $2f1bde43f3e1d36b$var$_getOsVersion;\nfunction $2f1bde43f3e1d36b$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($d7DIX$fs.existsSync(lsbReleaseFile)) contents = $d7DIX$fs.readFileSync(lsbReleaseFile).toString();\n else if ($d7DIX$fs.existsSync(osReleaseFile)) contents = $d7DIX$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $2f1bde43f3e1d36b$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"lroIv\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"eAF86\", function(module, exports) {\n\nvar $1W8as = parcelRequire(\"1W8as\");\n\nvar $hTpVN = parcelRequire(\"hTpVN\");\nfunction $a9f454f8e288d649$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $1W8as)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $hTpVN(rnds);\n}\nmodule.exports = $a9f454f8e288d649$var$v4;\n\n});\nparcelRegister(\"1W8as\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $d7DIX$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"hTpVN\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $d06bb019f71e9144$var$byteToHex = [];\nfor(var $d06bb019f71e9144$var$i = 0; $d06bb019f71e9144$var$i < 256; ++$d06bb019f71e9144$var$i)$d06bb019f71e9144$var$byteToHex[$d06bb019f71e9144$var$i] = ($d06bb019f71e9144$var$i + 0x100).toString(16).substr(1);\nfunction $d06bb019f71e9144$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $d06bb019f71e9144$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $d06bb019f71e9144$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"1f6JF\", function(module, exports) {\n\"use strict\";\nvar $0e7c6aae7f120a88$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0e7c6aae7f120a88$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0e7c6aae7f120a88$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0e7c6aae7f120a88$var$__createBinding(result, mod, k);\n }\n $0e7c6aae7f120a88$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $0e7c6aae7f120a88$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $0e7c6aae7f120a88$var$tr = $0e7c6aae7f120a88$var$__importStar((parcelRequire(\"4B2AJ\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $0e7c6aae7f120a88$var$exec(commandLine, args, options) {\n return $0e7c6aae7f120a88$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $0e7c6aae7f120a88$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $0e7c6aae7f120a88$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $0e7c6aae7f120a88$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $0e7c6aae7f120a88$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $0e7c6aae7f120a88$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $d7DIX$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $d7DIX$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $0e7c6aae7f120a88$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $0e7c6aae7f120a88$var$getExecOutput;\n\n});\nparcelRegister(\"4B2AJ\", function(module, exports) {\n\"use strict\";\nvar $358ca0c13f34538f$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $358ca0c13f34538f$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $358ca0c13f34538f$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $358ca0c13f34538f$var$__createBinding(result, mod, k);\n }\n $358ca0c13f34538f$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $358ca0c13f34538f$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $358ca0c13f34538f$var$os = $358ca0c13f34538f$var$__importStar($d7DIX$os);\n\nconst $358ca0c13f34538f$var$events = $358ca0c13f34538f$var$__importStar($d7DIX$events);\n\nconst $358ca0c13f34538f$var$child = $358ca0c13f34538f$var$__importStar($d7DIX$child_process);\n\nconst $358ca0c13f34538f$var$path = $358ca0c13f34538f$var$__importStar($d7DIX$path);\n\nconst $358ca0c13f34538f$var$io = $358ca0c13f34538f$var$__importStar((parcelRequire(\"hZdK0\")));\n\nconst $358ca0c13f34538f$var$ioUtil = $358ca0c13f34538f$var$__importStar((parcelRequire(\"ipB3d\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $358ca0c13f34538f$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $358ca0c13f34538f$var$ToolRunner extends $358ca0c13f34538f$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($358ca0c13f34538f$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $358ca0c13f34538f$var$os.EOL.length);\n n = s.indexOf($358ca0c13f34538f$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $358ca0c13f34538f$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$358ca0c13f34538f$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $358ca0c13f34538f$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $358ca0c13f34538f$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $358ca0c13f34538f$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$358ca0c13f34538f$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $358ca0c13f34538f$var$os.EOL);\n const state = new $358ca0c13f34538f$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $358ca0c13f34538f$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $358ca0c13f34538f$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $358ca0c13f34538f$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $358ca0c13f34538f$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $358ca0c13f34538f$var$argStringToArray;\nclass $358ca0c13f34538f$var$ExecState extends $358ca0c13f34538f$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $d7DIX$timers.setTimeout($358ca0c13f34538f$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"4JiFg\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.c4cbfdde.js\")).then(()=>parcelRequire(\"4kQHk\"));\n\n});\n\nparcelRegister(\"2tlzJ\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.340fbf70.js\")).then(()=>parcelRequire(\"8Fs7q\"));\n\n});\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $iWDmx = parcelRequire(\"iWDmx\");\nvar $adccf2292ac17dc9$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"eCDnw\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($adccf2292ac17dc9$exports);\n\n\nvar $0759e10a4c20508a$exports = {};\n\n$0759e10a4c20508a$exports = (parcelRequire(\"gMm9F\"));\n\n\nvar $7bf1341a48aa89d2$exports = {};\n$7bf1341a48aa89d2$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $851ef3bcd445adf9$exports = {};\nvar $ecfbb3ffe7838491$exports = {};\n\n$parcel$export($ecfbb3ffe7838491$exports, \"isexe\", () => $ecfbb3ffe7838491$export$35888d6059c232d4);\n$parcel$export($ecfbb3ffe7838491$exports, \"sync\", () => $ecfbb3ffe7838491$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $4oHc1 = parcelRequire(\"4oHc1\");\nconst $ecfbb3ffe7838491$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ecfbb3ffe7838491$var$checkStat(await (0, $4oHc1.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ecfbb3ffe7838491$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ecfbb3ffe7838491$var$checkStat((0, $d7DIX$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ecfbb3ffe7838491$var$checkStat = (stat, options)=>stat.isFile() && $ecfbb3ffe7838491$var$checkMode(stat, options);\nconst $ecfbb3ffe7838491$var$checkMode = (stat, options)=>{\n const myUid = options.uid ?? process.getuid?.();\n const myGroups = options.groups ?? process.getgroups?.() ?? [];\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $ffc0b2c0400971fb$exports = {};\n\n$parcel$export($ffc0b2c0400971fb$exports, \"isexe\", () => $ffc0b2c0400971fb$export$35888d6059c232d4);\n$parcel$export($ffc0b2c0400971fb$exports, \"sync\", () => $ffc0b2c0400971fb$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $4oHc1 = parcelRequire(\"4oHc1\");\nconst $ffc0b2c0400971fb$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ffc0b2c0400971fb$var$checkStat(await (0, $4oHc1.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ffc0b2c0400971fb$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ffc0b2c0400971fb$var$checkStat((0, $d7DIX$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ffc0b2c0400971fb$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $ffc0b2c0400971fb$var$checkStat = (stat, path, options)=>stat.isFile() && $ffc0b2c0400971fb$var$checkPathExt(path, options);\n\n\n\n\nconst $9ff644244aa23fe9$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $9ff644244aa23fe9$var$impl = $9ff644244aa23fe9$var$platform === \"win32\" ? $ffc0b2c0400971fb$exports : $ecfbb3ffe7838491$exports;\nconst $9ff644244aa23fe9$export$35888d6059c232d4 = $9ff644244aa23fe9$var$impl.isexe;\nconst $9ff644244aa23fe9$export$92d6409d68f0739a = $9ff644244aa23fe9$var$impl.sync;\n\n\nvar $851ef3bcd445adf9$require$isexe = $9ff644244aa23fe9$export$35888d6059c232d4;\nvar $851ef3bcd445adf9$require$isexeSync = $9ff644244aa23fe9$export$92d6409d68f0739a;\n\nvar $851ef3bcd445adf9$require$join = $d7DIX$path.join;\nvar $851ef3bcd445adf9$require$delimiter = $d7DIX$path.delimiter;\nvar $851ef3bcd445adf9$require$sep = $d7DIX$path.sep;\nvar $851ef3bcd445adf9$require$posix = $d7DIX$path.posix;\nconst $851ef3bcd445adf9$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $851ef3bcd445adf9$var$rSlash = new RegExp(`[${$851ef3bcd445adf9$require$posix.sep}${$851ef3bcd445adf9$require$sep === $851ef3bcd445adf9$require$posix.sep ? \"\" : $851ef3bcd445adf9$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $851ef3bcd445adf9$var$rRel = new RegExp(`^\\\\.${$851ef3bcd445adf9$var$rSlash.source}`);\nconst $851ef3bcd445adf9$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $851ef3bcd445adf9$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $851ef3bcd445adf9$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($851ef3bcd445adf9$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$851ef3bcd445adf9$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($851ef3bcd445adf9$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $851ef3bcd445adf9$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $851ef3bcd445adf9$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $851ef3bcd445adf9$require$join(pathPart, cmd);\n};\nconst $851ef3bcd445adf9$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $851ef3bcd445adf9$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $851ef3bcd445adf9$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $851ef3bcd445adf9$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $851ef3bcd445adf9$var$getNotFoundError(cmd);\n};\nconst $851ef3bcd445adf9$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $851ef3bcd445adf9$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $851ef3bcd445adf9$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $851ef3bcd445adf9$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $851ef3bcd445adf9$var$getNotFoundError(cmd);\n};\n$851ef3bcd445adf9$exports = $851ef3bcd445adf9$var$which;\n$851ef3bcd445adf9$var$which.sync = $851ef3bcd445adf9$var$whichSync;\n\n\n\n\n\n\nvar $8b1434f30c2df0f5$exports = {};\n\"use strict\";\n\nvar $da7da1299c2703da$exports = {};\n\"use strict\";\n\nvar $cd28c864980cfd0f$exports = {};\n\"use strict\";\n\nvar $27b76a3de3367027$exports = {};\nconst $27b76a3de3367027$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $27b76a3de3367027$var$COLON = $27b76a3de3367027$var$isWindows ? \";\" : \":\";\nvar $4812ae26153c6e1d$exports = {};\n\nvar $4812ae26153c6e1d$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $4812ae26153c6e1d$var$core = (parcelRequire(\"bGwAu\"));\nelse $4812ae26153c6e1d$var$core = (parcelRequire(\"d3qS7\"));\n$4812ae26153c6e1d$exports = $4812ae26153c6e1d$var$isexe;\n$4812ae26153c6e1d$var$isexe.sync = $4812ae26153c6e1d$var$sync;\nfunction $4812ae26153c6e1d$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $4812ae26153c6e1d$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $4812ae26153c6e1d$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $4812ae26153c6e1d$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $4812ae26153c6e1d$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $27b76a3de3367027$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $27b76a3de3367027$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $27b76a3de3367027$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $27b76a3de3367027$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$27b76a3de3367027$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $27b76a3de3367027$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $27b76a3de3367027$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($27b76a3de3367027$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $27b76a3de3367027$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $27b76a3de3367027$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($27b76a3de3367027$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $d7DIX$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $4812ae26153c6e1d$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $27b76a3de3367027$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $27b76a3de3367027$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $d7DIX$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $4812ae26153c6e1d$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $27b76a3de3367027$var$getNotFoundError(cmd);\n};\n$27b76a3de3367027$exports = $27b76a3de3367027$var$which;\n$27b76a3de3367027$var$which.sync = $27b76a3de3367027$var$whichSync;\n\n\nvar $2543a0baf4fc0f49$exports = {};\n\"use strict\";\nconst $2543a0baf4fc0f49$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$2543a0baf4fc0f49$exports = $2543a0baf4fc0f49$var$pathKey;\n// TODO: Remove this for the next major release\n$2543a0baf4fc0f49$exports.default = $2543a0baf4fc0f49$var$pathKey;\n\n\nfunction $cd28c864980cfd0f$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $27b76a3de3367027$exports.sync(parsed.command, {\n path: env[$2543a0baf4fc0f49$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $d7DIX$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $d7DIX$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $cd28c864980cfd0f$var$resolveCommand(parsed) {\n return $cd28c864980cfd0f$var$resolveCommandAttempt(parsed) || $cd28c864980cfd0f$var$resolveCommandAttempt(parsed, true);\n}\n$cd28c864980cfd0f$exports = $cd28c864980cfd0f$var$resolveCommand;\n\n\nvar $fc5e53341be77269$export$ae50443ffc990749;\nvar $fc5e53341be77269$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $fc5e53341be77269$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $fc5e53341be77269$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $fc5e53341be77269$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$fc5e53341be77269$export$ae50443ffc990749 = $fc5e53341be77269$var$escapeCommand;\n$fc5e53341be77269$export$6ea29ee575e3f5ff = $fc5e53341be77269$var$escapeArgument;\n\n\nvar $fe8eaff5ac0ea2ba$exports = {};\n\"use strict\";\n\nvar $f0c7da0bdc12447f$exports = {};\n\"use strict\";\nvar $ced97cb735cf4572$exports = {};\n\"use strict\";\n$ced97cb735cf4572$exports = /^#!(.*)/;\n\n\n$f0c7da0bdc12447f$exports = (string = \"\")=>{\n const match = string.match($ced97cb735cf4572$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $fe8eaff5ac0ea2ba$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $d7DIX$fs.openSync(command, \"r\");\n $d7DIX$fs.readSync(fd, buffer, 0, size, 0);\n $d7DIX$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $f0c7da0bdc12447f$exports(buffer.toString());\n}\n$fe8eaff5ac0ea2ba$exports = $fe8eaff5ac0ea2ba$var$readShebang;\n\n\nconst $da7da1299c2703da$var$isWin = process.platform === \"win32\";\nconst $da7da1299c2703da$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $da7da1299c2703da$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $da7da1299c2703da$var$detectShebang(parsed) {\n parsed.file = $cd28c864980cfd0f$exports(parsed);\n const shebang = parsed.file && $fe8eaff5ac0ea2ba$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $cd28c864980cfd0f$exports(parsed);\n }\n return parsed.file;\n}\nfunction $da7da1299c2703da$var$parseNonShell(parsed) {\n if (!$da7da1299c2703da$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $da7da1299c2703da$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$da7da1299c2703da$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $da7da1299c2703da$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $d7DIX$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $fc5e53341be77269$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$fc5e53341be77269$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $da7da1299c2703da$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $da7da1299c2703da$var$parseNonShell(parsed);\n}\n$da7da1299c2703da$exports = $da7da1299c2703da$var$parse;\n\n\nvar $1b55d4feb1802c97$exports = {};\n\"use strict\";\nconst $1b55d4feb1802c97$var$isWin = process.platform === \"win32\";\nfunction $1b55d4feb1802c97$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $1b55d4feb1802c97$var$hookChildProcess(cp, parsed) {\n if (!$1b55d4feb1802c97$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $1b55d4feb1802c97$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $1b55d4feb1802c97$var$verifyENOENT(status, parsed) {\n if ($1b55d4feb1802c97$var$isWin && status === 1 && !parsed.file) return $1b55d4feb1802c97$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $1b55d4feb1802c97$var$verifyENOENTSync(status, parsed) {\n if ($1b55d4feb1802c97$var$isWin && status === 1 && !parsed.file) return $1b55d4feb1802c97$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$1b55d4feb1802c97$exports = {\n hookChildProcess: $1b55d4feb1802c97$var$hookChildProcess,\n verifyENOENT: $1b55d4feb1802c97$var$verifyENOENT,\n verifyENOENTSync: $1b55d4feb1802c97$var$verifyENOENTSync,\n notFoundError: $1b55d4feb1802c97$var$notFoundError\n};\n\n\nfunction $8b1434f30c2df0f5$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $da7da1299c2703da$exports(command, args, options);\n // Spawn the child process\n const spawned = $d7DIX$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $1b55d4feb1802c97$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $8b1434f30c2df0f5$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $da7da1299c2703da$exports(command, args, options);\n // Spawn the child process\n const result = $d7DIX$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $1b55d4feb1802c97$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$8b1434f30c2df0f5$exports = $8b1434f30c2df0f5$var$spawn;\n$8b1434f30c2df0f5$exports.spawn = $8b1434f30c2df0f5$var$spawn;\n$8b1434f30c2df0f5$exports.sync = $8b1434f30c2df0f5$var$spawnSync;\n$8b1434f30c2df0f5$exports._parse = $da7da1299c2703da$exports;\n$8b1434f30c2df0f5$exports._enoent = $1b55d4feb1802c97$exports;\n\n\nfunction $c36cfccc5e0479d9$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $42db316b4a96ee74$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $79a4a337e08e5260$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).env[(0, $42db316b4a96ee74$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($d7DIX$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($d7DIX$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($d7DIX$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($d7DIX$nodepath))).delimiter);\n}\nfunction $79a4a337e08e5260$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $42db316b4a96ee74$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $79a4a337e08e5260$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $702ede05dcd57805$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$702ede05dcd57805$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $702ede05dcd57805$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $702ede05dcd57805$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $702ede05dcd57805$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $702ede05dcd57805$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $702ede05dcd57805$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $702ede05dcd57805$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $702ede05dcd57805$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $702ede05dcd57805$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$702ede05dcd57805$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $702ede05dcd57805$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$702ede05dcd57805$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $702ede05dcd57805$var$changePrototype(to, from);\n $702ede05dcd57805$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $a257f7b521fbcd70$var$calledFunctions = new WeakMap();\nconst $a257f7b521fbcd70$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $a257f7b521fbcd70$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $702ede05dcd57805$export$2e2bcd8739ae039)(onetime, function_);\n $a257f7b521fbcd70$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$a257f7b521fbcd70$var$onetime.callCount = (function_)=>{\n if (!$a257f7b521fbcd70$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $a257f7b521fbcd70$var$calledFunctions.get(function_);\n};\nvar $a257f7b521fbcd70$export$2e2bcd8739ae039 = $a257f7b521fbcd70$var$onetime;\n\n\n\n\nconst $d2c8ffb2ce6a67dd$export$e221a98f4fd84d36 = ()=>{\n const length = $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4 - $d2c8ffb2ce6a67dd$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $d2c8ffb2ce6a67dd$var$getRealtimeSignal);\n};\nconst $d2c8ffb2ce6a67dd$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $d2c8ffb2ce6a67dd$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $d2c8ffb2ce6a67dd$var$SIGRTMIN = 34;\nconst $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $446e774b21157476$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $7e8da5d5d06f2cc3$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $d2c8ffb2ce6a67dd$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $446e774b21157476$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($7e8da5d5d06f2cc3$var$normalizeSignal);\n return signals;\n};\nconst $7e8da5d5d06f2cc3$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $d7DIX$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $e8ce250ce43ec2f1$var$getSignalsByName = ()=>{\n const signals = (0, $7e8da5d5d06f2cc3$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($e8ce250ce43ec2f1$var$getSignalByName));\n};\nconst $e8ce250ce43ec2f1$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $e8ce250ce43ec2f1$export$c3fcb39d6848c78d = $e8ce250ce43ec2f1$var$getSignalsByName();\nconst $e8ce250ce43ec2f1$var$getSignalsByNumber = ()=>{\n const signals = (0, $7e8da5d5d06f2cc3$export$c50078d4faa171f0)();\n const length = (0, $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$e8ce250ce43ec2f1$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $e8ce250ce43ec2f1$var$getSignalByNumber = (number, signals)=>{\n const signal = $e8ce250ce43ec2f1$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $e8ce250ce43ec2f1$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $d7DIX$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $e8ce250ce43ec2f1$export$12f57f97a08d2468 = $e8ce250ce43ec2f1$var$getSignalsByNumber();\n\n\nconst $db32f6282de80f14$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $db32f6282de80f14$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $e8ce250ce43ec2f1$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $db32f6282de80f14$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $af1945b2831f1830$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $af1945b2831f1830$var$hasAlias = (options)=>$af1945b2831f1830$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $af1945b2831f1830$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $af1945b2831f1830$var$aliases.map((alias)=>options[alias]);\n if ($af1945b2831f1830$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$af1945b2831f1830$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $af1945b2831f1830$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $af1945b2831f1830$export$889423b478ae2ba = (options)=>{\n const stdio = $af1945b2831f1830$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $4f2755c484ab0bb9$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $4f2755c484ab0bb9$var$process = $parcel$global.process;\nconst $4f2755c484ab0bb9$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($4f2755c484ab0bb9$var$process)) $4f2755c484ab0bb9$exports = function() {\n return function() {};\n};\nelse {\n var $4f2755c484ab0bb9$var$assert = $d7DIX$assert;\n var $4f2755c484ab0bb9$var$signals = (parcelRequire(\"e1Rfe\"));\n var $4f2755c484ab0bb9$var$isWin = /^win/i.test($4f2755c484ab0bb9$var$process.platform);\n var $4f2755c484ab0bb9$var$EE = $d7DIX$events;\n /* istanbul ignore if */ if (typeof $4f2755c484ab0bb9$var$EE !== \"function\") $4f2755c484ab0bb9$var$EE = $4f2755c484ab0bb9$var$EE.EventEmitter;\n var $4f2755c484ab0bb9$var$emitter;\n if ($4f2755c484ab0bb9$var$process.__signal_exit_emitter__) $4f2755c484ab0bb9$var$emitter = $4f2755c484ab0bb9$var$process.__signal_exit_emitter__;\n else {\n $4f2755c484ab0bb9$var$emitter = $4f2755c484ab0bb9$var$process.__signal_exit_emitter__ = new $4f2755c484ab0bb9$var$EE();\n $4f2755c484ab0bb9$var$emitter.count = 0;\n $4f2755c484ab0bb9$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$4f2755c484ab0bb9$var$emitter.infinite) {\n $4f2755c484ab0bb9$var$emitter.setMaxListeners(Infinity);\n $4f2755c484ab0bb9$var$emitter.infinite = true;\n }\n $4f2755c484ab0bb9$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return function() {};\n $4f2755c484ab0bb9$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($4f2755c484ab0bb9$var$loaded === false) $4f2755c484ab0bb9$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $4f2755c484ab0bb9$var$emitter.removeListener(ev, cb);\n if ($4f2755c484ab0bb9$var$emitter.listeners(\"exit\").length === 0 && $4f2755c484ab0bb9$var$emitter.listeners(\"afterexit\").length === 0) $4f2755c484ab0bb9$var$unload();\n };\n $4f2755c484ab0bb9$var$emitter.on(ev, cb);\n return remove;\n };\n var $4f2755c484ab0bb9$var$unload = function unload() {\n if (!$4f2755c484ab0bb9$var$loaded || !$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$loaded = false;\n $4f2755c484ab0bb9$var$signals.forEach(function(sig) {\n try {\n $4f2755c484ab0bb9$var$process.removeListener(sig, $4f2755c484ab0bb9$var$sigListeners[sig]);\n } catch (er) {}\n });\n $4f2755c484ab0bb9$var$process.emit = $4f2755c484ab0bb9$var$originalProcessEmit;\n $4f2755c484ab0bb9$var$process.reallyExit = $4f2755c484ab0bb9$var$originalProcessReallyExit;\n $4f2755c484ab0bb9$var$emitter.count -= 1;\n };\n $4f2755c484ab0bb9$exports.unload = $4f2755c484ab0bb9$var$unload;\n var $4f2755c484ab0bb9$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($4f2755c484ab0bb9$var$emitter.emitted[event]) return;\n $4f2755c484ab0bb9$var$emitter.emitted[event] = true;\n $4f2755c484ab0bb9$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $4f2755c484ab0bb9$var$sigListeners = {};\n $4f2755c484ab0bb9$var$signals.forEach(function(sig) {\n $4f2755c484ab0bb9$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $4f2755c484ab0bb9$var$process.listeners(sig);\n if (listeners.length === $4f2755c484ab0bb9$var$emitter.count) {\n $4f2755c484ab0bb9$var$unload();\n $4f2755c484ab0bb9$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($4f2755c484ab0bb9$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$process.kill($4f2755c484ab0bb9$var$process.pid, sig);\n }\n };\n });\n $4f2755c484ab0bb9$exports.signals = function() {\n return $4f2755c484ab0bb9$var$signals;\n };\n var $4f2755c484ab0bb9$var$loaded = false;\n var $4f2755c484ab0bb9$var$load = function load() {\n if ($4f2755c484ab0bb9$var$loaded || !$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $4f2755c484ab0bb9$var$emitter.count += 1;\n $4f2755c484ab0bb9$var$signals = $4f2755c484ab0bb9$var$signals.filter(function(sig) {\n try {\n $4f2755c484ab0bb9$var$process.on(sig, $4f2755c484ab0bb9$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $4f2755c484ab0bb9$var$process.emit = $4f2755c484ab0bb9$var$processEmit;\n $4f2755c484ab0bb9$var$process.reallyExit = $4f2755c484ab0bb9$var$processReallyExit;\n };\n $4f2755c484ab0bb9$exports.load = $4f2755c484ab0bb9$var$load;\n var $4f2755c484ab0bb9$var$originalProcessReallyExit = $4f2755c484ab0bb9$var$process.reallyExit;\n var $4f2755c484ab0bb9$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $4f2755c484ab0bb9$var$emit(\"exit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$originalProcessReallyExit.call($4f2755c484ab0bb9$var$process, $4f2755c484ab0bb9$var$process.exitCode);\n };\n var $4f2755c484ab0bb9$var$originalProcessEmit = $4f2755c484ab0bb9$var$process.emit;\n var $4f2755c484ab0bb9$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $4f2755c484ab0bb9$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $4f2755c484ab0bb9$var$process.exitCode = arg;\n var ret = $4f2755c484ab0bb9$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"exit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $4f2755c484ab0bb9$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $fa741d3d5361c52d$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $fa741d3d5361c52d$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $fa741d3d5361c52d$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $fa741d3d5361c52d$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$fa741d3d5361c52d$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $fa741d3d5361c52d$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $fa741d3d5361c52d$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$fa741d3d5361c52d$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $fa741d3d5361c52d$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($d7DIX$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $fa741d3d5361c52d$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $fa741d3d5361c52d$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $fa741d3d5361c52d$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $fa741d3d5361c52d$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $fa741d3d5361c52d$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $fa741d3d5361c52d$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $fa741d3d5361c52d$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $fa741d3d5361c52d$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($4f2755c484ab0bb9$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $a56021186667e1ae$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $a56021186667e1ae$export$b58a61c52edb4f66(stream) {\n return $a56021186667e1ae$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $a56021186667e1ae$export$ac613ff475b69d05(stream) {\n return $a56021186667e1ae$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $a56021186667e1ae$export$f92d8ccfaec172d4(stream) {\n return $a56021186667e1ae$export$b58a61c52edb4f66(stream) && $a56021186667e1ae$export$ac613ff475b69d05(stream);\n}\nfunction $a56021186667e1ae$export$3053cdc6f2e088fd(stream) {\n return $a56021186667e1ae$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $1116c8395866a081$var$isExecaChildProcess = (target)=>target instanceof (0, $d7DIX$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $1116c8395866a081$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $d7DIX$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $a56021186667e1ae$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$1116c8395866a081$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $a56021186667e1ae$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $1116c8395866a081$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $7797ec8e8589a175$exports = {};\n\"use strict\";\n\nvar $7797ec8e8589a175$require$BufferConstants = $d7DIX$buffer.constants;\n\n\nvar $7797ec8e8589a175$require$promisify = $d7DIX$util.promisify;\nvar $dc2cdad9b6bc28de$exports = {};\n\"use strict\";\n\nvar $dc2cdad9b6bc28de$require$PassThroughStream = $d7DIX$stream.PassThrough;\n$dc2cdad9b6bc28de$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $dc2cdad9b6bc28de$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $7797ec8e8589a175$var$streamPipelinePromisified = $7797ec8e8589a175$require$promisify($d7DIX$stream.pipeline);\nclass $7797ec8e8589a175$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $7797ec8e8589a175$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $dc2cdad9b6bc28de$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $7797ec8e8589a175$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $7797ec8e8589a175$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $7797ec8e8589a175$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$7797ec8e8589a175$exports = $7797ec8e8589a175$var$getStream;\n$7797ec8e8589a175$exports.buffer = (stream, options)=>$7797ec8e8589a175$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$7797ec8e8589a175$exports.array = (stream, options)=>$7797ec8e8589a175$var$getStream(stream, {\n ...options,\n array: true\n });\n$7797ec8e8589a175$exports.MaxBufferError = $7797ec8e8589a175$var$MaxBufferError;\n\n\nvar $c96fa5900af93c80$exports = {};\n\"use strict\";\n\nvar $c96fa5900af93c80$require$PassThrough = $d7DIX$stream.PassThrough;\n$c96fa5900af93c80$exports = function() {\n var sources = [];\n var output = new $c96fa5900af93c80$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $cd75f6210a259c45$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $cd75f6210a259c45$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $cd75f6210a259c45$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.readFileSync)(inputFile);\n};\nconst $cd75f6210a259c45$export$7f2f9b6457412b41 = (options)=>{\n const input = $cd75f6210a259c45$var$getInputSync(options);\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $cd75f6210a259c45$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $cd75f6210a259c45$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.createReadStream)(inputFile);\n};\nconst $cd75f6210a259c45$export$412508d679148d5c = (spawned, options)=>{\n const input = $cd75f6210a259c45$var$getInput(options);\n if (input === undefined) return;\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $cd75f6210a259c45$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($c96fa5900af93c80$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $cd75f6210a259c45$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $cd75f6210a259c45$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $cd75f6210a259c45$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $cd75f6210a259c45$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $cd75f6210a259c45$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $cd75f6210a259c45$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $cd75f6210a259c45$var$getBufferedData(stdout, stdoutPromise),\n $cd75f6210a259c45$var$getBufferedData(stderr, stderrPromise),\n $cd75f6210a259c45$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $bff0e92d62b2f2ec$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $bff0e92d62b2f2ec$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($bff0e92d62b2f2ec$var$nativePromisePrototype, property)\n ]);\nconst $bff0e92d62b2f2ec$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $bff0e92d62b2f2ec$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $bff0e92d62b2f2ec$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $5b3216da0133be0b$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $5b3216da0133be0b$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $5b3216da0133be0b$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $5b3216da0133be0b$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $5b3216da0133be0b$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($5b3216da0133be0b$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $5b3216da0133be0b$export$ab3db8fe5ebf3a1 = (file, args)=>$5b3216da0133be0b$var$normalizeArgs(file, args).join(\" \");\nconst $5b3216da0133be0b$export$9d3099014bd914f8 = (file, args)=>$5b3216da0133be0b$var$normalizeArgs(file, args).map((arg)=>$5b3216da0133be0b$var$escapeArg(arg)).join(\" \");\nconst $5b3216da0133be0b$var$SPACES_REGEXP = / +/g;\nconst $5b3216da0133be0b$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($5b3216da0133be0b$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $5b3216da0133be0b$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $d7DIX$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $d7DIX$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $5b3216da0133be0b$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $5b3216da0133be0b$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($5b3216da0133be0b$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $5b3216da0133be0b$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$5b3216da0133be0b$var$parseExpression(expression)) : [\n $5b3216da0133be0b$var$parseExpression(expression)\n ];\n return $5b3216da0133be0b$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $5b3216da0133be0b$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $5b3216da0133be0b$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $8619df7f75275a6d$export$38bb3c1fbaa0bdcf = (0, $d7DIX$nodeutil.debuglog)(\"execa\").enabled;\nconst $8619df7f75275a6d$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $8619df7f75275a6d$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$8619df7f75275a6d$var$padField(date.getHours(), 2)}:${$8619df7f75275a6d$var$padField(date.getMinutes(), 2)}:${$8619df7f75275a6d$var$padField(date.getSeconds(), 2)}.${$8619df7f75275a6d$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $8619df7f75275a6d$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($d7DIX$nodeprocess))).stderr.write(`[${$8619df7f75275a6d$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $54908482e02f4b6d$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $54908482e02f4b6d$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($d7DIX$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $79a4a337e08e5260$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $54908482e02f4b6d$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($8b1434f30c2df0f5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $54908482e02f4b6d$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $8619df7f75275a6d$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $54908482e02f4b6d$var$getEnv(options);\n options.stdio = (0, $af1945b2831f1830$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($d7DIX$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($d7DIX$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $54908482e02f4b6d$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $d7DIX$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $c36cfccc5e0479d9$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $54908482e02f4b6d$export$db6b1668e3758717(file, args, options) {\n const parsed = $54908482e02f4b6d$var$handleArguments(file, args, options);\n const command = (0, $5b3216da0133be0b$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $5b3216da0133be0b$export$9d3099014bd914f8)(file, args);\n (0, $8619df7f75275a6d$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $fa741d3d5361c52d$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($d7DIX$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $bff0e92d62b2f2ec$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $bff0e92d62b2f2ec$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $fa741d3d5361c52d$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $fa741d3d5361c52d$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $fa741d3d5361c52d$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $fa741d3d5361c52d$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $cd75f6210a259c45$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $54908482e02f4b6d$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $54908482e02f4b6d$var$handleOutput(parsed.options, stderrResult);\n const all = $54908482e02f4b6d$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a257f7b521fbcd70$export$2e2bcd8739ae039)(handlePromise);\n (0, $cd75f6210a259c45$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $cd75f6210a259c45$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $1116c8395866a081$export$14becf8d91886424)(spawned);\n (0, $bff0e92d62b2f2ec$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $54908482e02f4b6d$export$28823a701bb5a12d(file, args, options) {\n const parsed = $54908482e02f4b6d$var$handleArguments(file, args, options);\n const command = (0, $5b3216da0133be0b$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $5b3216da0133be0b$export$9d3099014bd914f8)(file, args);\n (0, $8619df7f75275a6d$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $cd75f6210a259c45$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $54908482e02f4b6d$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $54908482e02f4b6d$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $54908482e02f4b6d$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $54908482e02f4b6d$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$54908482e02f4b6d$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $54908482e02f4b6d$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $54908482e02f4b6d$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $5b3216da0133be0b$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $54908482e02f4b6d$export$db6b1668e3758717(file, args, $54908482e02f4b6d$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $5b3216da0133be0b$export$4a6ee54de9b0f25d)(templates, expressions);\n return $54908482e02f4b6d$export$28823a701bb5a12d(file, args, $54908482e02f4b6d$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $54908482e02f4b6d$export$3d8c2f653ac9d0b9 = $54908482e02f4b6d$var$create$();\nfunction $54908482e02f4b6d$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $5b3216da0133be0b$export$78bcee23e0849f6a)(command);\n return $54908482e02f4b6d$export$db6b1668e3758717(file, args, options);\n}\nfunction $54908482e02f4b6d$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $5b3216da0133be0b$export$78bcee23e0849f6a)(command);\n return $54908482e02f4b6d$export$28823a701bb5a12d(file, args, options);\n}\nfunction $54908482e02f4b6d$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $af1945b2831f1830$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $54908482e02f4b6d$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $4467f131fc22cbb2$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $4467f131fc22cbb2$export$e3140dc7d0c35e48() {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI);\n}\nfunction $4467f131fc22cbb2$export$316200228f28b8ce() {\n return $4467f131fc22cbb2$export$e3140dc7d0c35e48() && $4467f131fc22cbb2$export$7683bf1311d8252();\n}\nfunction $4467f131fc22cbb2$export$d976d47922ae9667(command) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $4467f131fc22cbb2$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $4467f131fc22cbb2$export$58f152936f209932(program, args = [], execOptions = $4467f131fc22cbb2$export$151aeb0ade3989e1) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) {\n const command = $4467f131fc22cbb2$var$getSudoCommand(program, args);\n return (0, $54908482e02f4b6d$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $54908482e02f4b6d$export$28823a701bb5a12d)(program, $4467f131fc22cbb2$var$quote(args), execOptions);\n}\nfunction $4467f131fc22cbb2$export$351270479e2eef26(program, args = [], execOptions = $4467f131fc22cbb2$export$151aeb0ade3989e1) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) {\n const command = $4467f131fc22cbb2$var$getSudoCommand(program, args);\n return (0, $54908482e02f4b6d$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $54908482e02f4b6d$export$db6b1668e3758717)(program, $4467f131fc22cbb2$var$quote(args), execOptions);\n}\nfunction $4467f131fc22cbb2$var$getSudoCommand(program, args) {\n return `sudo ${$4467f131fc22cbb2$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $4467f131fc22cbb2$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $7020ab17cd399ddb$var$testFltmc() {\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $7020ab17cd399ddb$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n process.env.systemdrive ?? \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $7020ab17cd399ddb$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $04f5a339f0d90ee6$export$36ad181701cee597 = (0, $7020ab17cd399ddb$export$2e2bcd8739ae039);\nconst $04f5a339f0d90ee6$export$2ebf12717e6b5bb8 = (0, $4467f131fc22cbb2$export$e3140dc7d0c35e48);\nfunction $04f5a339f0d90ee6$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $04f5a339f0d90ee6$export$36ad181701cee597();\n else return (0, $4467f131fc22cbb2$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $8c9709291dc275bc$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $4467f131fc22cbb2$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($d7DIX$fs))).statSync(path).isDirectory();\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $4467f131fc22cbb2$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $cc03115747abd396$export$3ce714bda98f65f0() {\n if ((0, $4467f131fc22cbb2$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $d7DIX$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $d7DIX$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $d7DIX$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $cc03115747abd396$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $cc03115747abd396$export$8312d9eeba321950(path) {\n const maybeHomeDir = $cc03115747abd396$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($cc03115747abd396$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $fdb448df0bdfb0de$exports = {};\n\"use strict\";\n\n\nvar $bSUdl = parcelRequire(\"bSUdl\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $fdb448df0bdfb0de$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $fdb448df0bdfb0de$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $fdb448df0bdfb0de$var$packageJson = $d7DIX$process.env.npm_package_json;\nvar $fdb448df0bdfb0de$var$userAgent = $d7DIX$process.env.npm_config_user_agent;\nvar $fdb448df0bdfb0de$var$isNpm6 = Boolean($fdb448df0bdfb0de$var$userAgent && $fdb448df0bdfb0de$var$userAgent.startsWith(\"npm\"));\nvar $fdb448df0bdfb0de$var$isNpm7 = Boolean($fdb448df0bdfb0de$var$packageJson && $fdb448df0bdfb0de$var$packageJson.endsWith(\"package.json\"));\nvar $fdb448df0bdfb0de$var$isNpm = $fdb448df0bdfb0de$var$isNpm6 || $fdb448df0bdfb0de$var$isNpm7;\nvar $fdb448df0bdfb0de$var$isYarn = Boolean($fdb448df0bdfb0de$var$userAgent && $fdb448df0bdfb0de$var$userAgent.startsWith(\"yarn\"));\nvar $fdb448df0bdfb0de$var$isNpmOrYarn = $fdb448df0bdfb0de$var$isNpm || $fdb448df0bdfb0de$var$isYarn;\nvar $fdb448df0bdfb0de$var$homeDirectory = $d7DIX$os.homedir();\nvar $fdb448df0bdfb0de$var$configDir = process.env.XDG_CONFIG_HOME || $d7DIX$path.join($fdb448df0bdfb0de$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $fdb448df0bdfb0de$var$getConfigFile = function(packageName) {\n return $d7DIX$path.join($fdb448df0bdfb0de$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $fdb448df0bdfb0de$var$createConfigDir = function() {\n if (!$d7DIX$fs.existsSync($fdb448df0bdfb0de$var$configDir)) $d7DIX$fs.mkdirSync($fdb448df0bdfb0de$var$configDir, {\n recursive: true\n });\n};\nvar $fdb448df0bdfb0de$var$getLastUpdate = function(packageName) {\n var configFile = $fdb448df0bdfb0de$var$getConfigFile(packageName);\n try {\n if (!$d7DIX$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($d7DIX$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $fdb448df0bdfb0de$var$saveLastUpdate = function(packageName) {\n var configFile = $fdb448df0bdfb0de$var$getConfigFile(packageName);\n $d7DIX$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $fdb448df0bdfb0de$var$getDistVersion = function(packageName, distTag) {\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $fdb448df0bdfb0de$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $d7DIX$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $fdb448df0bdfb0de$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $fdb448df0bdfb0de$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $fdb448df0bdfb0de$var$createConfigDir();\n lastUpdateCheck = $fdb448df0bdfb0de$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $fdb448df0bdfb0de$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $fdb448df0bdfb0de$var$saveLastUpdate(pkg.name);\n if ($bSUdl.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $fdb448df0bdfb0de$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $fdb448df0bdfb0de$var$simpleUpdateNotifier = function(args) {\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $fdb448df0bdfb0de$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $fdb448df0bdfb0de$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $fdb448df0bdfb0de$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($fdb448df0bdfb0de$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$fdb448df0bdfb0de$exports = $fdb448df0bdfb0de$var$simpleUpdateNotifier;\n\n\nvar $276f0975e227ff36$exports = {};\n$276f0975e227ff36$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $cb87868918740ed3$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($fdb448df0bdfb0de$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($276f0975e227ff36$exports)))\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nfunction $9db6cbd493c17e7d$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $9db6cbd493c17e7d$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $9db6cbd493c17e7d$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $9db6cbd493c17e7d$var$toArr(opts.string);\n opts.boolean = $9db6cbd493c17e7d$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $9db6cbd493c17e7d$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $9db6cbd493c17e7d$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $3cbfee605ac1e082$var$hasDnfCache = undefined;\nfunction $3cbfee605ac1e082$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($3cbfee605ac1e082$var$hasDnfCache === undefined) $3cbfee605ac1e082$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $3cbfee605ac1e082$var$hasDnfCache;\n}\n\n\n\nlet $84785c71f430250a$var$isArchCache = undefined;\nfunction $84785c71f430250a$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($84785c71f430250a$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $84785c71f430250a$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $84785c71f430250a$var$isArchCache;\n}\n\n\n\nlet $7b55ac603b97ae6e$var$isUbuntuCache = undefined;\nfunction $7b55ac603b97ae6e$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($7b55ac603b97ae6e$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $7b55ac603b97ae6e$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $7b55ac603b97ae6e$var$isUbuntuCache;\n}\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $2adb2deed09dfe8c$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $2adb2deed09dfe8c$var$is_posix_os = $d7DIX$os.platform() !== \"win32\";\nconst $2adb2deed09dfe8c$var$version = $d7DIX$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $2adb2deed09dfe8c$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $2adb2deed09dfe8c$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$2adb2deed09dfe8c$exports = function(given_path) {\n return $2adb2deed09dfe8c$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $2adb2deed09dfe8c$var$should_not_escape(...$2adb2deed09dfe8c$var$windows_version_regex.exec($2adb2deed09dfe8c$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $6fbce53baf96bc95$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"i8A01\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $6fbce53baf96bc95$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($6fbce53baf96bc95$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $66be15f27277e552$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $66be15f27277e552$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $e8ce250ce43ec2f1$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $66be15f27277e552$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $e3142e39d503d843$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $e3142e39d503d843$var$hasAlias = (options)=>$e3142e39d503d843$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $e3142e39d503d843$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $e3142e39d503d843$var$aliases.map((alias)=>options[alias]);\n if ($e3142e39d503d843$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$e3142e39d503d843$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $e3142e39d503d843$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $e3142e39d503d843$export$889423b478ae2ba = (options)=>{\n const stdio = $e3142e39d503d843$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $ae33ff7ab47dac97$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $ae33ff7ab47dac97$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $ae33ff7ab47dac97$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $ae33ff7ab47dac97$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$ae33ff7ab47dac97$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $ae33ff7ab47dac97$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $ae33ff7ab47dac97$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$ae33ff7ab47dac97$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $ae33ff7ab47dac97$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($d7DIX$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $ae33ff7ab47dac97$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $ae33ff7ab47dac97$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $ae33ff7ab47dac97$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $ae33ff7ab47dac97$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $ae33ff7ab47dac97$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $ae33ff7ab47dac97$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $ae33ff7ab47dac97$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $ae33ff7ab47dac97$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($4f2755c484ab0bb9$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $37b6e981f68ce4cf$var$isExecaChildProcess = (target)=>target instanceof (0, $d7DIX$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $37b6e981f68ce4cf$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $d7DIX$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $a56021186667e1ae$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$37b6e981f68ce4cf$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $a56021186667e1ae$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $37b6e981f68ce4cf$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $b766a69ffb9d264e$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $b766a69ffb9d264e$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $b766a69ffb9d264e$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.readFileSync)(inputFile);\n};\nconst $b766a69ffb9d264e$export$7f2f9b6457412b41 = (options)=>{\n const input = $b766a69ffb9d264e$var$getInputSync(options);\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $b766a69ffb9d264e$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $b766a69ffb9d264e$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.createReadStream)(inputFile);\n};\nconst $b766a69ffb9d264e$export$412508d679148d5c = (spawned, options)=>{\n const input = $b766a69ffb9d264e$var$getInput(options);\n if (input === undefined) return;\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $b766a69ffb9d264e$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($c96fa5900af93c80$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $b766a69ffb9d264e$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $b766a69ffb9d264e$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $b766a69ffb9d264e$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $b766a69ffb9d264e$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $b766a69ffb9d264e$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $b766a69ffb9d264e$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $b766a69ffb9d264e$var$getBufferedData(stdout, stdoutPromise),\n $b766a69ffb9d264e$var$getBufferedData(stderr, stderrPromise),\n $b766a69ffb9d264e$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $7e356ac2b63932e6$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $7e356ac2b63932e6$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($7e356ac2b63932e6$var$nativePromisePrototype, property)\n ]);\nconst $7e356ac2b63932e6$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $7e356ac2b63932e6$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $7e356ac2b63932e6$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $7e1026ca054d0f7e$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $7e1026ca054d0f7e$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $7e1026ca054d0f7e$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $7e1026ca054d0f7e$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $7e1026ca054d0f7e$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($7e1026ca054d0f7e$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1 = (file, args)=>$7e1026ca054d0f7e$var$normalizeArgs(file, args).join(\" \");\nconst $7e1026ca054d0f7e$export$9d3099014bd914f8 = (file, args)=>$7e1026ca054d0f7e$var$normalizeArgs(file, args).map((arg)=>$7e1026ca054d0f7e$var$escapeArg(arg)).join(\" \");\nconst $7e1026ca054d0f7e$var$SPACES_REGEXP = / +/g;\nconst $7e1026ca054d0f7e$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($7e1026ca054d0f7e$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $7e1026ca054d0f7e$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $d7DIX$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $d7DIX$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $7e1026ca054d0f7e$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $7e1026ca054d0f7e$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($7e1026ca054d0f7e$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $7e1026ca054d0f7e$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$7e1026ca054d0f7e$var$parseExpression(expression)) : [\n $7e1026ca054d0f7e$var$parseExpression(expression)\n ];\n return $7e1026ca054d0f7e$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $7e1026ca054d0f7e$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $7e1026ca054d0f7e$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $7f710d5fbb2d2f32$export$38bb3c1fbaa0bdcf = (0, $d7DIX$nodeutil.debuglog)(\"execa\").enabled;\nconst $7f710d5fbb2d2f32$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $7f710d5fbb2d2f32$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$7f710d5fbb2d2f32$var$padField(date.getHours(), 2)}:${$7f710d5fbb2d2f32$var$padField(date.getMinutes(), 2)}:${$7f710d5fbb2d2f32$var$padField(date.getSeconds(), 2)}.${$7f710d5fbb2d2f32$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $7f710d5fbb2d2f32$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($d7DIX$nodeprocess))).stderr.write(`[${$7f710d5fbb2d2f32$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $1198021bdb6b74fc$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $1198021bdb6b74fc$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($d7DIX$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $79a4a337e08e5260$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $1198021bdb6b74fc$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($8b1434f30c2df0f5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $1198021bdb6b74fc$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $7f710d5fbb2d2f32$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $1198021bdb6b74fc$var$getEnv(options);\n options.stdio = (0, $e3142e39d503d843$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($d7DIX$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($d7DIX$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $1198021bdb6b74fc$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $d7DIX$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $c36cfccc5e0479d9$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $1198021bdb6b74fc$export$db6b1668e3758717(file, args, options) {\n const parsed = $1198021bdb6b74fc$var$handleArguments(file, args, options);\n const command = (0, $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $7e1026ca054d0f7e$export$9d3099014bd914f8)(file, args);\n (0, $7f710d5fbb2d2f32$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $ae33ff7ab47dac97$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($d7DIX$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $7e356ac2b63932e6$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $7e356ac2b63932e6$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $ae33ff7ab47dac97$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $ae33ff7ab47dac97$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $ae33ff7ab47dac97$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $ae33ff7ab47dac97$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $b766a69ffb9d264e$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $1198021bdb6b74fc$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $1198021bdb6b74fc$var$handleOutput(parsed.options, stderrResult);\n const all = $1198021bdb6b74fc$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a257f7b521fbcd70$export$2e2bcd8739ae039)(handlePromise);\n (0, $b766a69ffb9d264e$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $b766a69ffb9d264e$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $37b6e981f68ce4cf$export$14becf8d91886424)(spawned);\n (0, $7e356ac2b63932e6$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, options) {\n const parsed = $1198021bdb6b74fc$var$handleArguments(file, args, options);\n const command = (0, $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $7e1026ca054d0f7e$export$9d3099014bd914f8)(file, args);\n (0, $7f710d5fbb2d2f32$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $b766a69ffb9d264e$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $1198021bdb6b74fc$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $1198021bdb6b74fc$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $1198021bdb6b74fc$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $1198021bdb6b74fc$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$1198021bdb6b74fc$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $1198021bdb6b74fc$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $1198021bdb6b74fc$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $1198021bdb6b74fc$export$db6b1668e3758717(file, args, $1198021bdb6b74fc$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$4a6ee54de9b0f25d)(templates, expressions);\n return $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, $1198021bdb6b74fc$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $1198021bdb6b74fc$export$3d8c2f653ac9d0b9 = $1198021bdb6b74fc$var$create$();\nfunction $1198021bdb6b74fc$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$78bcee23e0849f6a)(command);\n return $1198021bdb6b74fc$export$db6b1668e3758717(file, args, options);\n}\nfunction $1198021bdb6b74fc$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$78bcee23e0849f6a)(command);\n return $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, options);\n}\nfunction $1198021bdb6b74fc$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $e3142e39d503d843$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $1198021bdb6b74fc$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $beaad862f625dcb6$var$powershell;\nfunction $beaad862f625dcb6$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $1198021bdb6b74fc$export$db6b1668e3758717($beaad862f625dcb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $beaad862f625dcb6$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $1198021bdb6b74fc$export$28823a701bb5a12d($beaad862f625dcb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $beaad862f625dcb6$export$4dfdd3964d242d20() {\n if ($beaad862f625dcb6$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $beaad862f625dcb6$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $beaad862f625dcb6$var$powershell = maybePowerShell;\n }\n if ($beaad862f625dcb6$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $beaad862f625dcb6$var$powershell;\n}\n\n\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nconst $85fd7153285bfba5$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $85fd7153285bfba5$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $85fd7153285bfba5$var$defaultAddEnvOptions) {\n const options = {\n ...$85fd7153285bfba5$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $85fd7153285bfba5$var$escapeString(valGiven ?? \"\", options.shouldEscapeSpace);\n try {\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $4t50X.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $4t50X.exportVariable)(name, val);\n } catch (err) {\n (0, $ER74K.error)(err);\n await $85fd7153285bfba5$var$addEnvSystem(name, val, options);\n }\n else await $85fd7153285bfba5$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $ER74K.error)(err);\n (0, $4t50X.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $85fd7153285bfba5$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($2adb2deed09dfe8c$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($6fbce53baf96bc95$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $85fd7153285bfba5$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $85fd7153285bfba5$var$isIgnoredPath(path) {\n if ($85fd7153285bfba5$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n const paths = process.env.PATH?.split((0, $d7DIX$path.delimiter)) ?? [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $85fd7153285bfba5$export$4c25481b843feb0b(path) {\n if ($85fd7153285bfba5$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $d7DIX$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n (0, $4t50X.addPath)(path);\n } catch (err) {\n (0, $ER74K.error)(err);\n await $85fd7153285bfba5$var$addPathSystem(path);\n }\n else await $85fd7153285bfba5$var$addPathSystem(path);\n } catch (err) {\n (0, $ER74K.error)(err);\n (0, $4t50X.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $85fd7153285bfba5$export$1bbbc3a810c5799d = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $85fd7153285bfba5$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven ?? \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $4t50X.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $beaad862f625dcb6$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $4t50X.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $85fd7153285bfba5$export$bd1dffd792f43c41();\n if (options.shouldAddOnlyIfNotDefined) {\n (0, $d7DIX$fs.appendFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $4t50X.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n } else {\n (0, $d7DIX$fs.appendFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $4t50X.info)(`${name}=\"${val}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $85fd7153285bfba5$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $beaad862f625dcb6$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $4t50X.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $85fd7153285bfba5$export$bd1dffd792f43c41();\n (0, $d7DIX$fs.appendFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $4t50X.info)(`\"${path}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $85fd7153285bfba5$var$setupCppInProfile_called = false;\nasync function $85fd7153285bfba5$export$bd1dffd792f43c41() {\n if ($85fd7153285bfba5$var$setupCppInProfile_called) return;\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $kY0n1.pathExists)($85fd7153285bfba5$export$1bbbc3a810c5799d)) {\n const cpprc_content = (0, $d7DIX$fs.readFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n (0, $d7DIX$fs.appendFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\n${source_cpprc_str}\\n`);\n (0, $4t50X.info)(`Added ${source_cpprc_str} to ${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n }\n }\n // source cpprc in bashrc/profile\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\" ]]; then source \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n // source cpprc in .profile\n const profile_path = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $kY0n1.pathExists)(profile_path)) {\n const profileContent = (0, $d7DIX$fs.readFileSync)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n (0, $d7DIX$fs.appendFileSync)(profile_path, source_cpprc_string);\n (0, $4t50X.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n // source cpprc in .bashrc too\n const bashrc_path = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $kY0n1.pathExists)(bashrc_path)) {\n const bashrcContent = (0, $d7DIX$fs.readFileSync)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n (0, $d7DIX$fs.appendFileSync)(bashrc_path, source_cpprc_string);\n (0, $4t50X.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n } catch (err) {\n (0, $ER74K.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $85fd7153285bfba5$var$setupCppInProfile_called = true;\n}\nasync function $85fd7153285bfba5$export$ca46151966bee7ba() {\n if (await (0, $kY0n1.pathExists)($85fd7153285bfba5$export$1bbbc3a810c5799d)) {\n const entries = (0, $d7DIX$fs.readFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, \"utf-8\").split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n (0, $d7DIX$fs.writeFileSync)($85fd7153285bfba5$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $8c9709291dc275bc$export$4718e061a205eab)($85fd7153285bfba5$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $iNGpn = parcelRequire(\"iNGpn\");\n\n\nconst { appendFile: $f0410b58de32386f$var$appendFile } = (0, $d7DIX$fs.promises);\n/* eslint-disable require-atomic-updates */ let $f0410b58de32386f$var$didUpdate = false;\nlet $f0410b58de32386f$var$didInit = false;\nconst $f0410b58de32386f$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $f0410b58de32386f$export$d73dc343f5abf26(packages, update = false) {\n const apt = $f0410b58de32386f$var$getApt();\n for (const { name: name, version: version } of packages)(0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$f0410b58de32386f$var$didUpdate || update) {\n $f0410b58de32386f$var$updateRepos(apt);\n $f0410b58de32386f$var$didUpdate = true;\n }\n if (!$f0410b58de32386f$var$didInit) {\n await $f0410b58de32386f$var$initApt(apt);\n $f0410b58de32386f$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>pack.repositories ?? []))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $f0410b58de32386f$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$f0410b58de32386f$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($f0410b58de32386f$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $ER74K.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $f0410b58de32386f$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($f0410b58de32386f$export$e6e2160a140a491e || ($f0410b58de32386f$export$e6e2160a140a491e = {}));\nasync function $f0410b58de32386f$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $iNGpn.default)(name)}-${(0, $iNGpn.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $f0410b58de32386f$var$getAptArg(name, version) {\n const package_type = await $f0410b58de32386f$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`);\n }\n}\nfunction $f0410b58de32386f$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $f0410b58de32386f$var$getApt() {\n let apt;\n if ($f0410b58de32386f$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $f0410b58de32386f$var$updateRepos(apt) {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $f0410b58de32386f$var$initApt(apt) {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $f0410b58de32386f$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $f0410b58de32386f$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $f0410b58de32386f$var$initGpg() {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $f0410b58de32386f$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $kY0n1.pathExists)(fileName)) {\n $f0410b58de32386f$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $ER74K.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $f0410b58de32386f$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $kY0n1.pathExists)(fileName)) {\n $f0410b58de32386f$var$initGpg();\n await $f0410b58de32386f$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $f0410b58de32386f$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $52cQ1.GITHUB_ACTIONS) return (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $85fd7153285bfba5$export$bd1dffd792f43c41)();\n return $f0410b58de32386f$var$appendFile((0, $85fd7153285bfba5$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $f0410b58de32386f$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $4t50X = parcelRequire(\"4t50X\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nvar $hZdK0 = parcelRequire(\"hZdK0\");\n\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/* eslint-disable require-atomic-updates */ let $b05e6e28215ee948$var$binDir;\nasync function $b05e6e28215ee948$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $b05e6e28215ee948$var$binDir === \"string\") return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $b05e6e28215ee948$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($d7DIX$path))).join((0, $d7DIX$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $hZdK0.mkdirP)(brewTempDirectory);\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $d7DIX$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $d7DIX$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $b05e6e28215ee948$var$binDir = $b05e6e28215ee948$export$cba19b0564b654bf();\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)($b05e6e28215ee948$var$binDir);\n return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n}\nfunction $b05e6e28215ee948$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $10ddbd636565d4da$var$hasBrew = false;\nasync function $10ddbd636565d4da$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $4t50X.info)(`Installing ${name} ${version ?? \"\"} via brew`);\n if (!$10ddbd636565d4da$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $b05e6e28215ee948$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $10ddbd636565d4da$var$hasBrew = true;\n }\n const binDir = (0, $b05e6e28215ee948$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)((0, $bzNgi.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nlet $5540d46c90af649b$var$binDir;\nasync function $5540d46c90af649b$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $5540d46c90af649b$var$binDir === \"string\") return {\n binDir: $5540d46c90af649b$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $5540d46c90af649b$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $5540d46c90af649b$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeChoco !== null) $5540d46c90af649b$var$binDir = (0, $bzNgi.dirname)(maybeChoco);\n else $5540d46c90af649b$var$binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $kY0n1.pathExists)($5540d46c90af649b$var$binDir)) return {\n binDir: $5540d46c90af649b$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $ca3ee4fd324ae5e9$var$hasChoco = false;\nasync function $ca3ee4fd324ae5e9$export$9f6912bc890040b2(name, version, args = []) {\n (0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via chocolatey`);\n if (!$ca3ee4fd324ae5e9$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $5540d46c90af649b$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $ca3ee4fd324ae5e9$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $ER74K.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nasync function $7e2451edad050552$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$7e2451edad050552$var$getDnfArg(pack.name, pack.version)));\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $7e2451edad050552$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $ER74K.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $8550ac0edfced131$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $f0410b58de32386f$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n/* eslint-disable require-atomic-updates */ let $6f126e8fe01fa080$var$didUpdate = false;\nlet $6f126e8fe01fa080$var$didInit = false;\nasync function $6f126e8fe01fa080$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$6f126e8fe01fa080$var$didUpdate && aur !== \"yay\") {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $6f126e8fe01fa080$var$didUpdate = true;\n }\n // install base-devel\n if (!$6f126e8fe01fa080$var$didInit && aur !== \"yay\") {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $6f126e8fe01fa080$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $54908482e02f4b6d$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $4467f131fc22cbb2$export$58f152936f209932)(aur ?? pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $6f126e8fe01fa080$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $ER74K.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $6f126e8fe01fa080$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $6f126e8fe01fa080$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($6f126e8fe01fa080$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $ER74K.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $37a450505a669dce$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $0106ac245720b572$exports = {};\n\nvar $0106ac245720b572$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $0106ac245720b572$var$__createBinding = $0106ac245720b572$exports && $0106ac245720b572$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0106ac245720b572$var$__setModuleDefault = $0106ac245720b572$exports && $0106ac245720b572$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0106ac245720b572$var$__importStar = $0106ac245720b572$exports && $0106ac245720b572$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0106ac245720b572$var$__createBinding(result, mod, k);\n }\n $0106ac245720b572$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $0106ac245720b572$var$__awaiter = $0106ac245720b572$exports && $0106ac245720b572$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $0106ac245720b572$var$__importDefault = $0106ac245720b572$exports && $0106ac245720b572$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($0106ac245720b572$exports, \"__esModule\", {\n value: true\n});\n$0106ac245720b572$exports.evaluateVersions = $0106ac245720b572$exports.isExplicitVersion = $0106ac245720b572$exports.findFromManifest = $0106ac245720b572$exports.getManifestFromRepo = $0106ac245720b572$exports.findAllVersions = $0106ac245720b572$exports.find = $0106ac245720b572$exports.cacheFile = $0106ac245720b572$exports.cacheDir = $0106ac245720b572$exports.extractZip = $0106ac245720b572$exports.extractXar = $0106ac245720b572$exports.extractTar = $0106ac245720b572$exports.extract7z = $0106ac245720b572$exports.downloadTool = $0106ac245720b572$exports.HTTPError = void 0;\n\nconst $0106ac245720b572$var$core = $0106ac245720b572$var$__importStar((parcelRequire(\"4t50X\")));\n\nconst $0106ac245720b572$var$io = $0106ac245720b572$var$__importStar((parcelRequire(\"hZdK0\")));\n\nconst $0106ac245720b572$var$fs = $0106ac245720b572$var$__importStar($d7DIX$fs);\n\nconst $0106ac245720b572$var$mm = $0106ac245720b572$var$__importStar((parcelRequire(\"42L4Y\")));\n\nconst $0106ac245720b572$var$os = $0106ac245720b572$var$__importStar($d7DIX$os);\n\nconst $0106ac245720b572$var$path = $0106ac245720b572$var$__importStar($d7DIX$path);\n\nconst $0106ac245720b572$var$httpm = $0106ac245720b572$var$__importStar((parcelRequire(\"a7JAS\")));\n\nconst $0106ac245720b572$var$semver = $0106ac245720b572$var$__importStar((parcelRequire(\"lroIv\")));\n\nconst $0106ac245720b572$var$stream = $0106ac245720b572$var$__importStar($d7DIX$stream);\n\nconst $0106ac245720b572$var$util = $0106ac245720b572$var$__importStar($d7DIX$util);\n\n\nconst $0106ac245720b572$var$v4_1 = $0106ac245720b572$var$__importDefault((parcelRequire(\"eAF86\")));\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\nvar $6dd61cb0b432635a$exports = {};\n\"use strict\";\nvar $6dd61cb0b432635a$var$__createBinding = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $6dd61cb0b432635a$var$__setModuleDefault = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $6dd61cb0b432635a$var$__importStar = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $6dd61cb0b432635a$var$__createBinding(result, mod, k);\n }\n $6dd61cb0b432635a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $6dd61cb0b432635a$var$__awaiter = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($6dd61cb0b432635a$exports, \"__esModule\", {\n value: true\n});\n$6dd61cb0b432635a$exports.RetryHelper = void 0;\n\nconst $6dd61cb0b432635a$var$core = $6dd61cb0b432635a$var$__importStar((parcelRequire(\"4t50X\")));\n/**\n * Internal class for retries\n */ class $6dd61cb0b432635a$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $6dd61cb0b432635a$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $6dd61cb0b432635a$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $6dd61cb0b432635a$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $6dd61cb0b432635a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$6dd61cb0b432635a$exports.RetryHelper = $6dd61cb0b432635a$var$RetryHelper;\n\n\nclass $0106ac245720b572$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$0106ac245720b572$exports.HTTPError = $0106ac245720b572$var$HTTPError;\nconst $0106ac245720b572$var$IS_WINDOWS = process.platform === \"win32\";\nconst $0106ac245720b572$var$IS_MAC = process.platform === \"darwin\";\nconst $0106ac245720b572$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $0106ac245720b572$var$downloadTool(url, dest, auth, headers) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $0106ac245720b572$var$path.join($0106ac245720b572$var$_getTempDirectory(), $0106ac245720b572$var$v4_1.default());\n yield $0106ac245720b572$var$io.mkdirP($0106ac245720b572$var$path.dirname(dest));\n $0106ac245720b572$var$core.debug(`Downloading ${url}`);\n $0106ac245720b572$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $6dd61cb0b432635a$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n return yield $0106ac245720b572$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $0106ac245720b572$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$0106ac245720b572$exports.downloadTool = $0106ac245720b572$var$downloadTool;\nfunction $0106ac245720b572$var$downloadToolAttempt(url, dest, auth, headers) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if ($0106ac245720b572$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $0106ac245720b572$var$httpm.HttpClient($0106ac245720b572$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $0106ac245720b572$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $0106ac245720b572$var$HTTPError(response.message.statusCode);\n $0106ac245720b572$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $0106ac245720b572$var$util.promisify($0106ac245720b572$var$stream.pipeline);\n const responseMessageFactory = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $0106ac245720b572$var$fs.createWriteStream(dest));\n $0106ac245720b572$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $0106ac245720b572$var$core.debug(\"download failed\");\n try {\n yield $0106ac245720b572$var$io.rmRF(dest);\n } catch (err) {\n $0106ac245720b572$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extract7z(file, dest, _7zPath) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok($0106ac245720b572$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $d7DIX$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $0106ac245720b572$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $1f6JF.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $0106ac245720b572$var$path.join($0106ac245720b572$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $0106ac245720b572$var$io.which(\"powershell\", true);\n yield $1f6JF.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$0106ac245720b572$exports.extract7z = $0106ac245720b572$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractTar(file, dest, flags = \"xz\") {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $0106ac245720b572$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $1f6JF.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $0106ac245720b572$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($0106ac245720b572$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($0106ac245720b572$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $1f6JF.exec(`tar`, args);\n return dest;\n });\n}\n$0106ac245720b572$exports.extractTar = $0106ac245720b572$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractXar(file, dest, flags = []) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok($0106ac245720b572$var$IS_MAC, \"extractXar() not supported on current OS\");\n $d7DIX$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($0106ac245720b572$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $0106ac245720b572$var$io.which(\"xar\", true);\n yield $1f6JF.exec(`\"${xarPath}\"`, $0106ac245720b572$var$_unique(args));\n return dest;\n });\n}\n$0106ac245720b572$exports.extractXar = $0106ac245720b572$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractZip(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n if ($0106ac245720b572$var$IS_WINDOWS) yield $0106ac245720b572$var$extractZipWin(file, dest);\n else yield $0106ac245720b572$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$0106ac245720b572$exports.extractZip = $0106ac245720b572$var$extractZip;\nfunction $0106ac245720b572$var$extractZipWin(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $0106ac245720b572$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $0106ac245720b572$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $1f6JF.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $0106ac245720b572$var$io.which(\"powershell\", true);\n $0106ac245720b572$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $1f6JF.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $0106ac245720b572$var$extractZipNix(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $0106ac245720b572$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$0106ac245720b572$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $1f6JF.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $0106ac245720b572$var$cacheDir(sourceDir, tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n version = $0106ac245720b572$var$semver.clean(version) || version;\n arch = arch || $0106ac245720b572$var$os.arch();\n $0106ac245720b572$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $0106ac245720b572$var$core.debug(`source dir: ${sourceDir}`);\n if (!$0106ac245720b572$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $0106ac245720b572$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $0106ac245720b572$var$fs.readdirSync(sourceDir)){\n const s = $0106ac245720b572$var$path.join(sourceDir, itemName);\n yield $0106ac245720b572$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $0106ac245720b572$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$0106ac245720b572$exports.cacheDir = $0106ac245720b572$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $0106ac245720b572$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n version = $0106ac245720b572$var$semver.clean(version) || version;\n arch = arch || $0106ac245720b572$var$os.arch();\n $0106ac245720b572$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $0106ac245720b572$var$core.debug(`source file: ${sourceFile}`);\n if (!$0106ac245720b572$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $0106ac245720b572$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $0106ac245720b572$var$path.join(destFolder, targetFile);\n $0106ac245720b572$var$core.debug(`destination file ${destPath}`);\n yield $0106ac245720b572$var$io.cp(sourceFile, destPath);\n // write .complete\n $0106ac245720b572$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$0106ac245720b572$exports.cacheFile = $0106ac245720b572$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $0106ac245720b572$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $0106ac245720b572$var$os.arch();\n // attempt to resolve an explicit version\n if (!$0106ac245720b572$var$isExplicitVersion(versionSpec)) {\n const localVersions = $0106ac245720b572$var$findAllVersions(toolName, arch);\n const match = $0106ac245720b572$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $0106ac245720b572$var$semver.clean(versionSpec) || \"\";\n const cachePath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $0106ac245720b572$var$core.debug(`checking cache: ${cachePath}`);\n if ($0106ac245720b572$var$fs.existsSync(cachePath) && $0106ac245720b572$var$fs.existsSync(`${cachePath}.complete`)) {\n $0106ac245720b572$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $0106ac245720b572$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$0106ac245720b572$exports.find = $0106ac245720b572$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $0106ac245720b572$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $0106ac245720b572$var$os.arch();\n const toolPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), toolName);\n if ($0106ac245720b572$var$fs.existsSync(toolPath)) {\n const children = $0106ac245720b572$var$fs.readdirSync(toolPath);\n for (const child of children)if ($0106ac245720b572$var$isExplicitVersion(child)) {\n const fullPath = $0106ac245720b572$var$path.join(toolPath, child, arch || \"\");\n if ($0106ac245720b572$var$fs.existsSync(fullPath) && $0106ac245720b572$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$0106ac245720b572$exports.findAllVersions = $0106ac245720b572$var$findAllVersions;\nfunction $0106ac245720b572$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $0106ac245720b572$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $0106ac245720b572$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $0106ac245720b572$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$0106ac245720b572$exports.getManifestFromRepo = $0106ac245720b572$var$getManifestFromRepo;\nfunction $0106ac245720b572$var$findFromManifest(versionSpec, stable, manifest, archFilter = $0106ac245720b572$var$os.arch()) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $0106ac245720b572$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$0106ac245720b572$exports.findFromManifest = $0106ac245720b572$var$findFromManifest;\nfunction $0106ac245720b572$var$_createExtractFolder(dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getTempDirectory(), $0106ac245720b572$var$v4_1.default());\n yield $0106ac245720b572$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $0106ac245720b572$var$_createToolPath(tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), tool, $0106ac245720b572$var$semver.clean(version) || version, arch || \"\");\n $0106ac245720b572$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $0106ac245720b572$var$io.rmRF(folderPath);\n yield $0106ac245720b572$var$io.rmRF(markerPath);\n yield $0106ac245720b572$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $0106ac245720b572$var$_completeToolPath(tool, version, arch) {\n const folderPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), tool, $0106ac245720b572$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $0106ac245720b572$var$fs.writeFileSync(markerPath, \"\");\n $0106ac245720b572$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $0106ac245720b572$var$isExplicitVersion(versionSpec) {\n const c = $0106ac245720b572$var$semver.clean(versionSpec) || \"\";\n $0106ac245720b572$var$core.debug(`isExplicit: ${c}`);\n const valid = $0106ac245720b572$var$semver.valid(c) != null;\n $0106ac245720b572$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$0106ac245720b572$exports.isExplicitVersion = $0106ac245720b572$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $0106ac245720b572$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $0106ac245720b572$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($0106ac245720b572$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $0106ac245720b572$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $0106ac245720b572$var$core.debug(`matched: ${version}`);\n else $0106ac245720b572$var$core.debug(\"match not found\");\n return version;\n}\n$0106ac245720b572$exports.evaluateVersions = $0106ac245720b572$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $0106ac245720b572$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $d7DIX$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $0106ac245720b572$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $d7DIX$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $0106ac245720b572$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $0106ac245720b572$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $hZdK0 = parcelRequire(\"hZdK0\");\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\n\n\n\n\n\n\n\nfunction $6285d3d29afbf608$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $4615baf4c3b031c2$var$sevenZip;\nasync function $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest) {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(await $4615baf4c3b031c2$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $8c9709291dc275bc$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $4615baf4c3b031c2$var$getSevenZip() {\n if ($4615baf4c3b031c2$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $6285d3d29afbf608$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $4615baf4c3b031c2$var$sevenZip = \"7z\";\n }\n return $4615baf4c3b031c2$var$sevenZip;\n}\nfunction $4615baf4c3b031c2$export$7949938b2681a4f0(file, dest) {\n return $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest);\n}\nfunction $4615baf4c3b031c2$export$6411c5cbab21135b(file, dest) {\n return $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest);\n}\nasync function $4615baf4c3b031c2$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $hZdK0.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $ER74K.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $8c9709291dc275bc$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\nvar $9a76aa2467c494ea$exports = {};\n\"use strict\";\nObject.defineProperty($9a76aa2467c494ea$exports, \"__esModule\", {\n value: true\n});\n$9a76aa2467c494ea$exports.retryAsPromised = $9a76aa2467c494ea$exports.TimeoutError = void 0;\nclass $9a76aa2467c494ea$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$9a76aa2467c494ea$exports.TimeoutError = $9a76aa2467c494ea$var$TimeoutError;\nfunction $9a76aa2467c494ea$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $9a76aa2467c494ea$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $9a76aa2467c494ea$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $9a76aa2467c494ea$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $9a76aa2467c494ea$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $9a76aa2467c494ea$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$9a76aa2467c494ea$exports.retryAsPromised = $9a76aa2467c494ea$var$retryAsPromised;\n$9a76aa2467c494ea$exports.default = $9a76aa2467c494ea$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $d81b351c18e56f74$var$didInit = false;\nasync function $d81b351c18e56f74$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $ER74K.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? (0, $d7DIX$os.tmpdir)();\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? (0, $bzNgi.join)((0, $d7DIX$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n const dir = (0, $0106ac245720b572$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $bzNgi.join)(dir, extractedFolderName);\n const binDir = (0, $bzNgi.join)(installDir, binRelativeDir);\n if (await (0, $kY0n1.pathExists)((0, $bzNgi.join)(binDir, binFileName))) {\n (0, $ER74K.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $bzNgi.join)(setupDir, extractedFolderName);\n const binDir = (0, $bzNgi.join)(installDir, binRelativeDir);\n const binFile = (0, $bzNgi.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $kY0n1.pathExists)(binDir),\n (0, $kY0n1.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $ER74K.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($9a76aa2467c494ea$exports)))(()=>{\n return (0, $0106ac245720b572$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $ER74K.info)(err)\n });\n if (!$d81b351c18e56f74$var$didInit) {\n (0, $ER74K.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $d81b351c18e56f74$var$didInit = true;\n }\n (0, $ER74K.info)(`Extracting ${downloaded} to ${setupDir}`);\n await extractFunction?.(downloaded, setupDir);\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $ER74K.info)(`Add ${binDir} to PATH`);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $52cQ1.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $0106ac245720b572$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $cd6a37a8a2760b1d$var$getCmakePackageInfo(version, platform, arch) {\n const semVersion = (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $cd6a37a8a2760b1d$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"cmake\", version, $cd6a37a8a2760b1d$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $429c83835ea21620$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $429c83835ea21620$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $429c83835ea21620$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $429c83835ea21620$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $429c83835ea21620$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$429c83835ea21620$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $429c83835ea21620$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $429c83835ea21620$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $429c83835ea21620$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $429c83835ea21620$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $429c83835ea21620$var$cloneArray(this.keys),\n size: this.size,\n values: $429c83835ea21620$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $429c83835ea21620$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($429c83835ea21620$var$isMemoized(fn)) return $429c83835ea21620$export$2e2bcd8739ae039(fn.fn, $429c83835ea21620$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $429c83835ea21620$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $429c83835ea21620$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $429c83835ea21620$var$getCustomOptions(options));\n var cache = new $429c83835ea21620$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $429c83835ea21620$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $429c83835ea21620$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $a2e64d197ec61889$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $d7DIX$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $d7DIX$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $d7DIX$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $d7DIX$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $e4ea9f87a1261121$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $d7DIX$path.dirname)(path);\n const opts = {\n ...(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $e4ea9f87a1261121$export$fa6f1b792dc805a5(path, opts, $e4ea9f87a1261121$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $e4ea9f87a1261121$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $e4ea9f87a1261121$export$96a3a6083628c9d8(parent, opts).then((made)=>$e4ea9f87a1261121$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $e4ea9f87a1261121$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $93478d381be8340e$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $93478d381be8340e$export$f0fc1d32fc1d7461(opts, (0, $d7DIX$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $93478d381be8340e$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $93478d381be8340e$export$5bbea51519185a10(opts, (0, $d7DIX$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $427b619c6b7a11b6$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $93478d381be8340e$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $427b619c6b7a11b6$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $93478d381be8340e$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $e4ea9f87a1261121$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $427b619c6b7a11b6$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $2fc5cfcca73afcae$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $2fc5cfcca73afcae$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $d7DIX$path.resolve)(path);\n if ($2fc5cfcca73afcae$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $d7DIX$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $747f9e4efce6ee21$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $747f9e4efce6ee21$var$versArr = $747f9e4efce6ee21$var$version.replace(/^v/, \"\").split(\".\");\nconst $747f9e4efce6ee21$var$hasNative = +$747f9e4efce6ee21$var$versArr[0] > 10 || +$747f9e4efce6ee21$var$versArr[0] === 10 && +$747f9e4efce6ee21$var$versArr[1] >= 12;\nconst $747f9e4efce6ee21$export$f32201cb36e5654a = !$747f9e4efce6ee21$var$hasNative ? ()=>false : (opts)=>(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $d7DIX$fs.mkdirSync);\nconst $747f9e4efce6ee21$export$875f149e5ea533c1 = Object.assign(!$747f9e4efce6ee21$var$hasNative ? ()=>false : (opts)=>(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts).mkdir === (0, $d7DIX$fs.mkdir), {\n sync: $747f9e4efce6ee21$export$f32201cb36e5654a\n});\n\n\nconst $08f425779d18d4ec$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $2fc5cfcca73afcae$export$84f52eb1a6059876)(path);\n const resolved = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts);\n return (0, $747f9e4efce6ee21$export$f32201cb36e5654a)(resolved) ? (0, $427b619c6b7a11b6$export$abcdbcf229aec40d)(path, resolved) : (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $08f425779d18d4ec$export$92d6409d68f0739a = $08f425779d18d4ec$export$f5e50515bfceb13b;\nconst $08f425779d18d4ec$export$d5db38ffe1f43b01 = (0, $e4ea9f87a1261121$export$96a3a6083628c9d8);\nconst $08f425779d18d4ec$export$36e1c11973ff5d6a = (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5);\nconst $08f425779d18d4ec$export$e199e4a0c0335c4f = (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34);\nconst $08f425779d18d4ec$export$dd70f1af61563969 = (0, $427b619c6b7a11b6$export$abcdbcf229aec40d);\nconst $08f425779d18d4ec$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $2fc5cfcca73afcae$export$84f52eb1a6059876)(path);\n const resolved = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts);\n return (0, $747f9e4efce6ee21$export$875f149e5ea533c1)(resolved) ? (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34)(path, resolved) : (0, $e4ea9f87a1261121$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $08f425779d18d4ec$export$f5e50515bfceb13b,\n mkdirpNative: $427b619c6b7a11b6$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $427b619c6b7a11b6$export$abcdbcf229aec40d,\n mkdirpManual: $e4ea9f87a1261121$export$96a3a6083628c9d8,\n mkdirpManualSync: $e4ea9f87a1261121$export$fa6f1b792dc805a5,\n sync: $08f425779d18d4ec$export$f5e50515bfceb13b,\n native: (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34),\n nativeSync: (0, $427b619c6b7a11b6$export$abcdbcf229aec40d),\n manual: (0, $e4ea9f87a1261121$export$96a3a6083628c9d8),\n manualSync: (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5),\n useNative: $747f9e4efce6ee21$export$875f149e5ea533c1,\n useNativeSync: $747f9e4efce6ee21$export$f32201cb36e5654a\n});\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $1f6JF = parcelRequire(\"1f6JF\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n// src/modules/https-utils.ts\n\n\nfunction $19873b61ea31f597$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $19873b61ea31f597$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $d7DIX$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($19873b61ea31f597$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $19873b61ea31f597$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $d7DIX$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $19873b61ea31f597$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $19873b61ea31f597$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $19873b61ea31f597$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $19873b61ea31f597$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $19873b61ea31f597$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n\nvar $l655J = parcelRequire(\"l655J\");\nfunction $5683decf99cdafe6$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($3uysP)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $5683decf99cdafe6$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $5683decf99cdafe6$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $5683decf99cdafe6$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $5683decf99cdafe6$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $5683decf99cdafe6$export$5b54ecc7386538f(file, versionRegex = $5683decf99cdafe6$export$d7ab5e2d33b06cd5) {\n try {\n const execout = await (0, $1f6JF.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = version_output.trim().match(versionRegex)?.[1];\n return (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $5683decf99cdafe6$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $5683decf99cdafe6$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $5683decf99cdafe6$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($3uysP)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $5683decf99cdafe6$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version);\n if (coercedVersion !== null) {\n (0, $ER74K.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $5683decf99cdafe6$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $5683decf99cdafe6$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $eac35b7c3e82d235$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $0965eaed961dcb55$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $0965eaed961dcb55$export$5fb1985a02d8f66f = {\n llvm: $0965eaed961dcb55$var$getLLVMDefault(),\n clangtidy: $0965eaed961dcb55$var$getLLVMDefault(),\n clangformat: $0965eaed961dcb55$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $84785c71f430250a$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $84785c71f430250a$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $0965eaed961dcb55$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $0965eaed961dcb55$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $ae5265b0f840d575$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $ae5265b0f840d575$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($d7DIX$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $ae5265b0f840d575$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $ae5265b0f840d575$var$setupPipx(foundPython);\n await $ae5265b0f840d575$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$setupPipx(foundPython) {\n try {\n if (!await (0, $cfebcec0830c9a7b$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $cfebcec0830c9a7b$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $ae5265b0f840d575$var$setupWheel(foundPython) {\n try {\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $ae5265b0f840d575$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $bzNgi.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $52cQ1.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $ER74K.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"4JiFg\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n const binDir = (0, $bzNgi.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $ER74K.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $ae5265b0f840d575$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $ae5265b0f840d575$var$findPython(setupDir);\n const binDir = (0, $bzNgi.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $bzNgi.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $ae5265b0f840d575$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $bzNgi.join)(binDir, (0, $bzNgi.addExeExt)(candidate));\n if (await (0, $kY0n1.pathExists)(pythonBinPath)) {\n if (await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pythonBinPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n const pythonBinPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports)))(candidate, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pythonBinPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$findOrSetupPip(foundPython) {\n const maybePip = await $ae5265b0f840d575$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $ER74K.info)(\"pip was not found. Installing pip\");\n await $ae5265b0f840d575$var$setupPip(foundPython);\n return $ae5265b0f840d575$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $ae5265b0f840d575$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $ae5265b0f840d575$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$isPipUptoDate(pip) {\n try {\n const pipPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports)))(pip, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pipPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$setupPip(foundPython) {\n const upgraded = await $ae5265b0f840d575$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $cfebcec0830c9a7b$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $ae5265b0f840d575$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $ae5265b0f840d575$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $ER74K.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $ER74K.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $ae5265b0f840d575$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $1f6JF.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $bzNgi.join)(base_exec_prefix, \"Scripts\"), (0, $bzNgi.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $bzNgi.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $eac35b7c3e82d235$export$7a5d5c156e7dc406)(dirs);\n}\nconst $ae5265b0f840d575$export$4bf645347c3b7001 = (0, $429c83835ea21620$export$2e2bcd8739ae039)($ae5265b0f840d575$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($cb3b5dc5a4eadeb1$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $0965eaed961dcb55$export$1bb63c984aa6e760)) return $cb3b5dc5a4eadeb1$var$getDefaultLinuxVersion(osVersion, (0, $0965eaed961dcb55$export$1bb63c984aa6e760)[name]);\n else if ($cb3b5dc5a4eadeb1$var$isVersionDefault(version) && name in (0, $0965eaed961dcb55$export$5fb1985a02d8f66f)) return (0, $0965eaed961dcb55$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version ?? \"\";\n}\nfunction $cb3b5dc5a4eadeb1$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $cb3b5dc5a4eadeb1$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $cb3b5dc5a4eadeb1$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$cb3b5dc5a4eadeb1$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $59102f0f5954cddd$exports = {};\n\"use strict\";\nObject.defineProperty($59102f0f5954cddd$exports, \"__esModule\", {\n value: true\n});\n$59102f0f5954cddd$exports.getUbuntuVersion = void 0;\n\nfunction $59102f0f5954cddd$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $59102f0f5954cddd$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $d7DIX$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($59102f0f5954cddd$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $59102f0f5954cddd$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $59102f0f5954cddd$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$59102f0f5954cddd$exports.getUbuntuVersion = $59102f0f5954cddd$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $d6a4ad0ff65d0a5e$var$ubuntuVersion_raw() {\n try {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $d6a4ad0ff65d0a5e$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $59102f0f5954cddd$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $d6a4ad0ff65d0a5e$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $ER74K.warning)(err.toString());\n return null;\n }\n}\nconst $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee = (0, $429c83835ea21620$export$2e2bcd8739ae039)($d6a4ad0ff65d0a5e$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $d6a4ad0ff65d0a5e$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($d7DIX$os))) && typeof (0, ($parcel$interopDefault($d7DIX$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($d7DIX$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $cfebcec0830c9a7b$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $cfebcec0830c9a7b$export$7c60aea099ad1c1d(await $cfebcec0830c9a7b$var$getPython(), name, version, options);\n}\nasync function $cfebcec0830c9a7b$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $cfebcec0830c9a7b$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $cfebcec0830c9a7b$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $4t50X.info)(`Installing ${name} ${version ?? \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $cfebcec0830c9a7b$var$getPipxHome();\n env.PIPX_BIN_DIR = await $cfebcec0830c9a7b$var$getPipxBinDir();\n }\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $4t50X.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $cfebcec0830c9a7b$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $cfebcec0830c9a7b$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $ae5265b0f840d575$export$4bf645347c3b7001)(givenPython);\n const binDir = await $cfebcec0830c9a7b$var$findBinDir(execPaths, name);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $cfebcec0830c9a7b$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $54908482e02f4b6d$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $cfebcec0830c9a7b$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $kY0n1.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"trash\"));\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"shared\"));\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $cfebcec0830c9a7b$var$getPipxHome = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $cfebcec0830c9a7b$var$getPipxBinDir = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$getPython_raw() {\n const pythonBin = (await (0, $ae5265b0f840d575$export$2b0b68e9df3d4a02)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $cfebcec0830c9a7b$var$getPython = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPython_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$pipHasPackage(python, name) {\n const result = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $cfebcec0830c9a7b$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $kY0n1.pathExists)((0, $bzNgi.join)(dir, (0, $bzNgi.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync((0, $bzNgi.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $bzNgi.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $cfebcec0830c9a7b$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $4t50X.info)(`Installing ${name} via the system package manager`);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $928be18130bb437a$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $6f659008f4a1ac73$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $6f659008f4a1ac73$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $6f659008f4a1ac73$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\nasync function $9f6a19f1eee9e3b6$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"graphviz\", version);\n return $9f6a19f1eee9e3b6$var$activateGraphviz();\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $9f6a19f1eee9e3b6$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\n\n\n\n\nconst $3860300c8c0fdc48$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $3860300c8c0fdc48$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($d7DIX$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $3860300c8c0fdc48$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $baa90ea94af07c06$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $3860300c8c0fdc48$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $baa90ea94af07c06$export$b16fc932ee62ae86 = (0, $429c83835ea21620$export$2e2bcd8739ae039)($baa90ea94af07c06$var$macosVersion_raw);\n\n\n\n\n\nasync function $4e7ff62cf3fa94e2$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"2tlzJ\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $d7DIX$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $4b1f70d03c91cebd$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4e7ff62cf3fa94e2$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $4b1f70d03c91cebd$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($9a76aa2467c494ea$exports)))(()=>{\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $ER74K.info)(err)\n });\n const binDir = await $4b1f70d03c91cebd$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $baa90ea94af07c06$export$b16fc932ee62ae86)()[0] > 11) await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $84785c71f430250a$export$d415ddb6702ec3a2)() || (0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"doxygen\", version, $4b1f70d03c91cebd$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $ER74K.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $ER74K.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $4b1f70d03c91cebd$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $kY0n1.pathExists)((0, $bzNgi.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nasync function $1ebfc945e4f5b17a$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $1f6JF.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $ER74K.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $ER74K.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $bd769018416dc7f2$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $bd769018416dc7f2$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $bd769018416dc7f2$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $bd769018416dc7f2$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $4615baf4c3b031c2$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $bd769018416dc7f2$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"g++\", version, $bd769018416dc7f2$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $ER74K.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $bd769018416dc7f2$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $ER74K.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $bd769018416dc7f2$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $bd769018416dc7f2$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $bd769018416dc7f2$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $bd769018416dc7f2$var$setupChocoMingw(version, arch) {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n if (arch === \"x64\" && await (0, $kY0n1.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $kY0n1.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $kY0n1.pathExists)(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $bd769018416dc7f2$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", (0, $bzNgi.addExeExt)(`${binDir}/gcc`)), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", (0, $bzNgi.addExeExt)(`${binDir}/g++`)));\n else {\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($2aJGP)))((0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? version);\n if (majorVersion >= 5) {\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) promises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) promises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $1ebfc945e4f5b17a$export$28f5fd35e3005b7a)());\n if (0, $52cQ1.GITHUB_ACTIONS) await $bd769018416dc7f2$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $bd769018416dc7f2$var$addGccLoggingMatcher() {\n const matcherPath = (0, $bzNgi.join)($bd769018416dc7f2$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $l655J = parcelRequire(\"l655J\");\n\n\nfunction $9e5689f497201ccc$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $9e5689f497201ccc$export$2a0488baf2a20c0f() {\n return (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $9e5689f497201ccc$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($2aJGP)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $c8e436f083063bf5$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c8e436f083063bf5$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $c8e436f083063bf5$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $c8e436f083063bf5$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"ninja\", version, $c8e436f083063bf5$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $a32e41fd6d9c05e4$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/kcov\");\nfunction $a32e41fd6d9c05e4$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $bzNgi.addExeExt)(\"kcov\"),\n extractFunction: (0, $4615baf4c3b031c2$export$2ab07ac150064014)\n };\n}\nfunction $a32e41fd6d9c05e4$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $bzNgi.addExeExt)(\"kcov\"),\n extractFunction: $a32e41fd6d9c05e4$var$buildKcov\n };\n}\nasync function $a32e41fd6d9c05e4$var$buildKcov(file, dest) {\n const out = await (0, $4615baf4c3b031c2$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $a32e41fd6d9c05e4$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $bzNgi.join)($a32e41fd6d9c05e4$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $ER74K.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $bzNgi.join)(out, \"build\");\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $a32e41fd6d9c05e4$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $cd6a37a8a2760b1d$export$c28663a621f418ce)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), (0, $bzNgi.join)((0, $cc03115747abd396$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $bzNgi.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $c8e436f083063bf5$export$e6190f4bfe2ef71)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), (0, $bzNgi.join)((0, $cc03115747abd396$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $a32e41fd6d9c05e4$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $ER74K.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $5683decf99cdafe6$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $5683decf99cdafe6$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"kcov\", version, $a32e41fd6d9c05e4$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"kcov\", version, $a32e41fd6d9c05e4$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nclass $b9333a802c23edcc$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $b9333a802c23edcc$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $b9333a802c23edcc$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $b9333a802c23edcc$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $b9333a802c23edcc$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $b9333a802c23edcc$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $b9333a802c23edcc$var$getDOMException(reason);\n};\nfunction $b9333a802c23edcc$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($b9333a802c23edcc$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($b9333a802c23edcc$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $b9333a802c23edcc$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $832772e652e526f0$export$3c7cae5a162b1458;\nvar $832772e652e526f0$export$704f0be24425353b;\nvar $832772e652e526f0$export$f49c12d2898d28cb;\nvar $832772e652e526f0$export$a6a3bfb882356813;\nvar $832772e652e526f0$export$443b8bb890f5027e;\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\n\n\nconst $832772e652e526f0$var$PROGRAM_FILES_X86 = $d7DIX$process.env[\"ProgramFiles(x86)\"];\nconst $832772e652e526f0$var$PROGRAM_FILES = [\n $d7DIX$process.env[\"ProgramFiles(x86)\"],\n $d7DIX$process.env[\"ProgramFiles\"]\n];\nconst $832772e652e526f0$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $832772e652e526f0$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $832772e652e526f0$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $832772e652e526f0$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($832772e652e526f0$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $832772e652e526f0$var$VsYearVersion) return $832772e652e526f0$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$832772e652e526f0$export$3c7cae5a162b1458 = $832772e652e526f0$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $832772e652e526f0$var$vsversion_to_year(vsversion) {\n if (Object.keys($832772e652e526f0$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($832772e652e526f0$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$832772e652e526f0$export$704f0be24425353b = $832772e652e526f0$var$vsversion_to_year;\nconst $832772e652e526f0$var$VSWHERE_PATH = `${$832772e652e526f0$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $832772e652e526f0$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $d7DIX$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $4t50X.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$832772e652e526f0$export$f49c12d2898d28cb = $832772e652e526f0$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $832772e652e526f0$var$findVcvarsall(vsversion) {\n const vsversion_number = $832772e652e526f0$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $832772e652e526f0$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found with vswhere: ${path}`);\n return path;\n }\n $4t50X.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $832772e652e526f0$var$vsversion_to_year(vsversion)\n ] : $832772e652e526f0$var$YEARS;\n for (const prog_files of $832772e652e526f0$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $832772e652e526f0$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $4t50X.info(`Trying standard location: ${path}`);\n if ($d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $4t50X.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$832772e652e526f0$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found VS 2015: ${path}`);\n return path;\n }\n $4t50X.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$832772e652e526f0$export$a6a3bfb882356813 = $832772e652e526f0$var$findVcvarsall;\nfunction $832772e652e526f0$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $832772e652e526f0$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $832772e652e526f0$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($d7DIX$process.platform != \"win32\") {\n $4t50X.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $d7DIX$process.env.PATH += $d7DIX$path.delimiter + $832772e652e526f0$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$832772e652e526f0$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $4t50X.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $d7DIX$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $4t50X.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $4t50X.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($832772e652e526f0$var$isPathVariable(name)) new_value = $832772e652e526f0$var$filterPathValue(new_value);\n $4t50X.exportVariable(name, new_value);\n }\n }\n $4t50X.endGroup();\n $4t50X.info(`Configured Developer Command Prompt`);\n}\n$832772e652e526f0$export$443b8bb890f5027e = $832772e652e526f0$var$setupMSVCDevCmd;\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nfunction $ffa3775f67868b5f$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $ffa3775f67868b5f$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $kY0n1.pathExists)(VCTargetsPath)) {\n (0, $ER74K.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $832772e652e526f0$export$443b8bb890f5027e)($ffa3775f67868b5f$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $38b6fc81fd22ef04$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $38b6fc81fd22ef04$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $38b6fc81fd22ef04$export$7bd623b29ec8e1eb) {\n (0, $4t50X.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $b9333a802c23edcc$export$2e2bcd8739ae039)($38b6fc81fd22ef04$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $ER74K.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $4t50X.endGroup)();\n return hasLLVM;\n}\nasync function $38b6fc81fd22ef04$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $ffa3775f67868b5f$export$5dcf571c91fc8369)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $f58f76cc72dbc50d$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $bzNgi.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $cf098dcb81ecb127$var$readFile, writeFile: $cf098dcb81ecb127$var$writeFile, chmod: $cf098dcb81ecb127$var$chmod } = (0, $d7DIX$fs.promises);\nvar $cf098dcb81ecb127$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($cf098dcb81ecb127$export$35fa309210df3df6 || ($cf098dcb81ecb127$export$35fa309210df3df6 = {}));\nasync function $cf098dcb81ecb127$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $cf098dcb81ecb127$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)(neededPackages);\n await $cf098dcb81ecb127$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $38b6fc81fd22ef04$export$7bd623b29ec8e1eb)\n });\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $cf098dcb81ecb127$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $cf098dcb81ecb127$var$readFile(path, \"utf-8\");\n script = $cf098dcb81ecb127$var$debugScript(script);\n script = $cf098dcb81ecb127$var$nonInteractiveScript(script);\n script = $cf098dcb81ecb127$var$choosePackages(packages, script, majorVersion);\n script = await $cf098dcb81ecb127$var$removeConflictingPackages(script);\n script = $cf098dcb81ecb127$var$useNalaScript(script);\n await $cf098dcb81ecb127$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $cf098dcb81ecb127$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $cf098dcb81ecb127$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $cf098dcb81ecb127$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $f0410b58de32386f$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $d7DIX$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $cf098dcb81ecb127$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $f0410b58de32386f$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $cf098dcb81ecb127$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\n\nconst $83abdd9bf69b2f6a$export$aa5307f1aca77413 = (0, $5683decf99cdafe6$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $83abdd9bf69b2f6a$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $83abdd9bf69b2f6a$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $83abdd9bf69b2f6a$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $83abdd9bf69b2f6a$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $83abdd9bf69b2f6a$var$getDarwinUrl(version) {\n if ($83abdd9bf69b2f6a$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\")) return $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n else return $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $83abdd9bf69b2f6a$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $83abdd9bf69b2f6a$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$83abdd9bf69b2f6a$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $5683decf99cdafe6$export$deb1064c8260c54c)($83abdd9bf69b2f6a$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP) linuxVersion = $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP[$83abdd9bf69b2f6a$var$MAX_UBUNTU];\n (0, $ER74K.warning)(`Falling back to LLVM version ${$83abdd9bf69b2f6a$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\")) return $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n else return $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $83abdd9bf69b2f6a$var$getWin32Url(version) {\n if ($83abdd9bf69b2f6a$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $83abdd9bf69b2f6a$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $83abdd9bf69b2f6a$var$getDarwinUrl(version);\n case \"linux\":\n return $83abdd9bf69b2f6a$export$ae24f9682a44836b(version);\n case \"win32\":\n return $83abdd9bf69b2f6a$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $83abdd9bf69b2f6a$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $5683decf99cdafe6$export$4e4d3581f69a6d71)($83abdd9bf69b2f6a$export$aa5307f1aca77413, platform, version, $83abdd9bf69b2f6a$export$94df0e59ebebf4a7);\n (0, $ER74K.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $bzNgi.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $4615baf4c3b031c2$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $4615baf4c3b031c2$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $0213127e07869fde$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/llvm\");\nasync function $0213127e07869fde$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $0213127e07869fde$var$setupLLVMWithoutActivation(version, setupDir, arch);\n await $0213127e07869fde$export$6238b5ebfd6640e7(installationInfo.installDir ?? setupDir);\n return installationInfo;\n}\nasync function $0213127e07869fde$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch),\n $0213127e07869fde$var$setupLLVMDeps(arch),\n $0213127e07869fde$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $0213127e07869fde$var$setupLLVMWithoutActivation = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $0213127e07869fde$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch, (0, $cf098dcb81ecb127$export$35fa309210df3df6).ClangFormat);\n}\nfunction $0213127e07869fde$export$814ccfc953503728(version, setupDir, arch) {\n return $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $cf098dcb81ecb127$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $5683decf99cdafe6$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return await (0, $cf098dcb81ecb127$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $ER74K.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"llvm\", version, (0, $83abdd9bf69b2f6a$export$f203993d12226a27), setupDir, arch);\n await $0213127e07869fde$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $0213127e07869fde$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $0213127e07869fde$var$llvmBinaryDeps = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $0213127e07869fde$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $bd769018416dc7f2$export$405fab3de79b77b)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $0213127e07869fde$var$setupLLVMDeps = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $0213127e07869fde$export$6238b5ebfd6640e7(directory) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\";\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\";\n const actPromises = [\n // the output of this action\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $d7DIX$path.delimiter)}${ld}`),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $d7DIX$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", (0, $bzNgi.addExeExt)(`${directory}/bin/clang`)),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", (0, $bzNgi.addExeExt)(`${directory}/bin/clang++`)),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $1ebfc945e4f5b17a$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $0213127e07869fde$var$addLLVMLoggingMatcher() {\n if (0, $52cQ1.GITHUB_ACTIONS) {\n const matcherPath = (0, $bzNgi.join)($0213127e07869fde$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $b2527beb3f2e4071$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $841211d84f4a44cd$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $756746e991f4f289$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/msvc\");\nasync function $756746e991f4f289$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $832772e652e526f0$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $ER74K.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $832772e652e526f0$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $ER74K.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $ER74K.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $ER74K.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $ffa3775f67868b5f$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $52cQ1.GITHUB_ACTIONS) await $756746e991f4f289$var$addMSVCLoggingMatcher();\n}\nasync function $756746e991f4f289$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $bzNgi.join)($756746e991f4f289$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\nlet $24fc56c48fbaa7ba$var$binDir;\nasync function $24fc56c48fbaa7ba$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $24fc56c48fbaa7ba$var$binDir === \"string\") return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $24fc56c48fbaa7ba$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $f0410b58de32386f$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $24fc56c48fbaa7ba$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n}\nfunction $24fc56c48fbaa7ba$export$2747aa8ef20f818d(script) {\n if ((0, $f0410b58de32386f$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $54ef9c824222402f$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $54ef9c824222402f$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $54ef9c824222402f$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $772fce954f353e90$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $bcbacc5f1ce862e1$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/** Get the platform name task uses in their download links */ function $19fb71dac36c98fd$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $19fb71dac36c98fd$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $19fb71dac36c98fd$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $19fb71dac36c98fd$var$getTaskPlatform(platform);\n const taskArch = $19fb71dac36c98fd$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $4615baf4c3b031c2$export$6411c5cbab21135b) : (0, $4615baf4c3b031c2$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $19fb71dac36c98fd$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"task\", version, $19fb71dac36c98fd$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\nlet $6de10099eaeb725f$var$hasVCPKG = false;\nasync function $6de10099eaeb725f$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$6de10099eaeb725f$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $kY0n1.pathExists)((0, $bzNgi.join)(setupDir, (0, $bzNgi.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $bzNgi.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $ER74K.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)((0, $bzNgi.addShExt)((0, $bzNgi.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $8c9709291dc275bc$export$4718e061a205eab)(setupDir);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $6de10099eaeb725f$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $bzNgi.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $f58f76cc72dbc50d$export$18a3521ac7306af4 = {\n nala: (0, $24fc56c48fbaa7ba$export$d73cbe8caeff03c5),\n cmake: (0, $cd6a37a8a2760b1d$export$c28663a621f418ce),\n ninja: (0, $c8e436f083063bf5$export$e6190f4bfe2ef71),\n python: (0, $ae5265b0f840d575$export$2b0b68e9df3d4a02),\n vcpkg: (0, $6de10099eaeb725f$export$490bdba4ef3e3f82),\n bazel: (0, $8550ac0edfced131$export$a66bc93580b0a849),\n conan: (0, $928be18130bb437a$export$249d0c7d779d362f),\n meson: (0, $841211d84f4a44cd$export$f73905553f087748),\n gcovr: (0, $9e5689f497201ccc$export$b98d69f362caf61f),\n opencppcoverage: (0, $54ef9c824222402f$export$6aa28a97600a8ae3),\n llvm: (0, $0213127e07869fde$export$3016de7ae9d14988),\n gcc: (0, $bd769018416dc7f2$export$405fab3de79b77b),\n choco: (0, $5540d46c90af649b$export$b804d731cdad7ef9),\n brew: (0, $b05e6e28215ee948$export$c5eeb9c87a610a0e),\n powershell: (0, $772fce954f353e90$export$1ff6ad96ee130aba),\n ccache: (0, $37a450505a669dce$export$111263621bbb0768),\n sccache: (0, $bcbacc5f1ce862e1$export$b963b67cda80fdc),\n doxygen: (0, $4b1f70d03c91cebd$export$b6e6613a954051ee),\n graphviz: (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9),\n cppcheck: (0, $6f659008f4a1ac73$export$13d77464c548b5d3),\n clangtidy: (0, $0213127e07869fde$export$814ccfc953503728),\n clangformat: (0, $0213127e07869fde$export$1cf2d186cecf1f54),\n msvc: (0, $756746e991f4f289$export$a91ef0362c1a7298),\n vcvarsall: (0, $ffa3775f67868b5f$export$5dcf571c91fc8369),\n kcov: (0, $a32e41fd6d9c05e4$export$abb7c2ff987b1f6b),\n make: (0, $b2527beb3f2e4071$export$b0a9411329e2916),\n task: (0, $19fb71dac36c98fd$export$4456b3a3d3540077),\n sevenzip: (0, $6285d3d29afbf608$export$5fc39629e14c8173)\n};\nconst $f58f76cc72dbc50d$export$904054328df186b = Object.keys($f58f76cc72dbc50d$export$18a3521ac7306af4);\nconst $f58f76cc72dbc50d$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$f58f76cc72dbc50d$export$904054328df186b\n];\n\n\nfunction $447038b429c54f91$export$7300a92932ee17a3(args) {\n return (0, $9db6cbd493c17e7d$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $f58f76cc72dbc50d$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $f58f76cc72dbc50d$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $447038b429c54f91$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $447038b429c54f91$export$f57ebcae4da846e4() {\n (0, $ER74K.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $447038b429c54f91$export$fc4ce4d885cb1082(key) {\n const value = (0, $4t50X.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $447038b429c54f91$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $l655J = parcelRequire(\"l655J\");\n\n\n\n\n\n\n\nfunction $546e05b24c5c5b72$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $ER74K.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $546e05b24c5c5b72$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $546e05b24c5c5b72$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $4t50X.startGroup)(`Installing ${compiler} ${version ?? \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $0213127e07869fde$export$3016de7ae9d14988)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $d7DIX$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $9e5689f497201ccc$export$2a0488baf2a20c0f)();\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $bd769018416dc7f2$export$f115c01d224b9e9a)(gccVersion, (0, $d7DIX$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $bd769018416dc7f2$export$405fab3de79b77b)(gccVersion, (0, $d7DIX$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $9e5689f497201ccc$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $756746e991f4f289$export$a91ef0362c1a7298)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $d7DIX$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $4t50X.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $ER74K.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $4t50X.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $0e55037d0c830549$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $52cQ1.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $cb87868918740ed3$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $447038b429c54f91$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $447038b429c54f91$export$f57ebcae4da846e4)();\n // cpu architecture\n const arch = opts.architecture ?? process.arch;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? (0, $cc03115747abd396$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $0759e10a4c20508a$exports.create({\n autoloadLocales: true\n });\n $0759e10a4c20508a$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($7bf1341a48aa89d2$exports))));\n $iWDmx.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($adccf2292ac17dc9$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $cb3b5dc5a4eadeb1$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $ER74K.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $ER74K.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $f58f76cc72dbc50d$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $52cQ1.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $38b6fc81fd22ef04$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat(opts.timeout ?? \"20\") * 60000);\n time2 = Date.now();\n (0, $ER74K.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $546e05b24c5c5b72$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $ER74K.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $85fd7153285bfba5$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $ER74K.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $ER74K.success)(tool));\n errorMessages.forEach((tool)=>(0, $ER74K.error)(tool));\n (0, $ER74K.info)(\"setup-cpp finished\");\n if (!(0, $52cQ1.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $ER74K.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $ER74K.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$0e55037d0c830549$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $ER74K.error)(\"main() panicked!\");\n (0, $ER74K.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.c4cbfdde.js\"))).then(() => parcelRequire('4kQHk'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.340fbf70.js\"))).then(() => parcelRequire('8Fs7q'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, setupCppInProfile } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await setupCppInProfile()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFileSync, readFile, readFileSync, writeFileSync } from \"fs\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n if (options.shouldAddOnlyIfNotDefined) {\n appendFileSync(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n appendFileSync(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await setupCppInProfile()\n appendFileSync(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function setupCppInProfile() {\n if (setupCppInProfile_called) {\n return\n }\n\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const source_cpprc_str = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = readFileSync(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(source_cpprc_str)) {\n // already executed setupCppInProfile\n appendFileSync(cpprc_path, `\\n${source_cpprc_str}\\n`)\n info(`Added ${source_cpprc_str} to ${cpprc_path}`)\n }\n }\n\n // source cpprc in bashrc/profile\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n // source cpprc in .profile\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = readFileSync(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n appendFileSync(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n\n // source cpprc in .bashrc too\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = readFileSync(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n appendFileSync(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = readFileSync(cpprc_path, \"utf-8\").split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n writeFileSync(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAA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ACPC,WAAA,CAAY,UACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CACA,oEACAC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,OACPC,WAAA,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,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GAAM,CAAAE,CAAA,GAAW,CAAAF,CAAA,CACpBC,CAAA,CAASglC,GAAG,CAAC,OAAOzD,IAAI,CAACthC,CAAA,CAAS,CAAC,EAAE,EACrCD,CAAA,CAASglC,GAAG,CAAC,YAAYzD,IAAI,CAACthC,CAAA,CAAS,CAAC,EAAE,EAG5C,MAAO,CAAAD,CACT,GwBxBiD,CAC/C,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAGK2hB,EAAA,CAA6B,GAAI,CAAApT,GAAA,CAAI,CAAC,SAAU,SAAU,SAAU,SAAS,EAG7EsT,EAAA,CAAiB,GAAI,CAAAtT,GAAA,CAAI,CAC7B,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SAGA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAOKuT,EAAA,CAAiC,GAAI,CAAAygB,GAAA,GAQrCtgB,EAAA,CAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,eACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,SAAU,gBACV,SAAU,gBACV,SAAU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B,EAAA,CAAcziB,CAAA,CAASC,CAAA,CAAUC,CAAA,CAC1C,G1EEEi+C,WAAA,C0ETK,QAAAA,CAA0Bn+C,CAAe,CAAEC,CAAgB,CAAEC,CAAY,EAC9E,MAAO,CAAAuiB,EAAA,CAAcziB,CAAA,CAASC,CAAA,CAAUC,CAAA,CAAM0iB,EAAA,CAAas9B,WAAW,CACxE,G1EQEC,IAAA,CAAM78B,EAAA,CACN88B,SAAA,CAAWvgC,EAAA,CACX2+B,IAAA,CAAMr/B,EAAA,CACNkhC,IAAA,CAAMh9B,EAAA,CACNo7B,IAAA,CwFXK,QAAAA,CAAmBz+C,CAAe,CAAEC,CAAgB,CAAEC,CAAY,EACvE,MAAO,CAAAsV,EAAA,CAAS,OAAQxV,CAAA,CAAS+jB,EAAA,CAAoB9jB,CAAA,CAAUC,CAAA,CACjE,GxFUEogD,QAAA,CAAUtsC,EACZ,EAKawS,EAAA,CAAQzkB,MAAA,CAAOuB,IAAI,CAACyd,EAAA,EAMpBmE,EAAA,CAAwB,CAAC,WAAY,eAAgB,aAAcsB,EAAA,CAAM,C,6C7DqFtFlC,EAAA,CAAKrjB,OAAA,CAAQs/C,IAAI,EACd32C,IAAI,CAAC5J,CAAC,GACLiB,OAAA,CAAQkG,QAAQ,CAAGnH,CACrB,IACCoV,KAAK,CAACpV,CAAC,GACN,GAAA4K,EAAA,CAAA3E,KAAI,EAAE,oBACN,GAAA2E,EAAA,CAAA3E,KAAI,EAAEjG,CAAA,EACNiB,OAAA,CAAQkG,QAAQ,CAAG,CACrB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"setup-cpp.js","names":["e","t","r","n","i","o","s","a","u","Promise","TypeError","rH","code","ignoreErrors","p","options","env","process","cwd","chdir","disabled","rG","sync","command","path","rV","pathExt","n3","delimiter","resolve","d","Object","assign","Error","errno","syscall","spawnargs","args","f","iO","file","original","h","rF","ri","spawn","rY","hookChildProcess","m","charCodeAt","length","slice","v","platform","keys","reverse","find","toUpperCase","g","c","ru","execPath","URL","rp","fileURLToPath","rl","l","push","join","E","pipe","y","writable","_write","_writableState","w","maxBuffer","r4","getBufferedLength","r1","MAX_LENGTH","bufferedData","getBufferedValue","om","on","ov","x","oV","oN","oP","oB","ou","rc","ChildProcess","oC","reject","iX","error","stdout","stderr","all","escapedCommand","parsed","timedOut","isCanceled","killed","oA","oc","op","kill","or","bind","cancel","oa","rJ","exitCode","signal","oS","oq","aborted","failed","ox","ob","oh","b","oy","spawnSync","input","status","R","getuid","CI","r$","nothrow","I","oK","oL","O","T","S","map","C","SUDO_USER","n6","statSync","isDirectory","A","n4","homedir","replace","oW","$","next","throw","done","value","then","apply","_","return","call","label","ops","pop","trys","sent","Symbol","iterator","N","r5","pkg","nm","rS","warning","message","stack","P","Array","isArray","L","D","k","U","sP","sb","sR","s_","sr","sE","o0","sy","st","sn","o3","o9","sm","sL","sp","sd","ss","j","stdio","F","sU","nE","ny","shouldEscapeSpace","rI","GITHUB_ACTIONS","shouldAddOnlyIfNotDefined","nv","info","exportVariable","G","setFailed","M","sj","some","test","PATH","split","includes","addPath","B","H","rN","appendFile","sF","sM","V","z","q","ng","pathExists","readFile","X","Set","writeFile","K","J","name","version","DEBIAN_FRONTEND","sB","Q","sH","Z","flatMap","repositories","Y","sV","binDir","W","nw","default","trim","et","ee","er","en","toString","sG","ei","startsWith","eo","nb","dirname","tmpdir","nR","mkdirP","readFileSync","NONINTERACTIVE","es","ea","sq","arch","el","SystemRoot","ALLUSERSPROFILE","ChocolateyInstall","ec","sz","TMP","TEMP","Path","extendEnv","eu","ep","ed","ef","sX","sK","eh","matchAll","sW","em","s0","s1","ex","sQ","existsSync","readdirSync","ey","ev","eb","s8","sJ","eg","s4","clean","sY","debug","rmRF","eE","writeFileSync","valid","ew","sort","gt","satisfies","RUNNER_TOOL_CACHE","rt","ok","RUNNER_TEMP","eR","ry","eI","eS","eO","eT","eC","eA","e$","$current","max","timeout","match","backoffBase","backoffExponent","report","Date","toLocaleTimeString","setTimeout","clearTimeout","at","current","catch","RegExp","Math","pow","e_","url","binRelativeDir","binFileName","extractedFolderName","extractFunction","nI","installDir","nF","downloadTool","ar","cacheDir","eN","nU","nj","addExeExt","extractTar","eP","eL","nG","eD","ek","eU","isMemoized","fn","isEqual","isMatchingKey","isPromise","maxSize","onCacheAdd","onCacheChange","onCacheHit","transformKey","nM","nB","values","canTransformKey","shouldCloneArguments","shouldUpdateOnAdd","shouldUpdateOnChange","shouldUpdateOnHit","arguments","getKeyIndex","orderByLru","updateAsyncCache","cache","ej","n7","request","method","statusCode","end","eF","from","filter","nq","localeCompare","eM","nV","has","JSON","stringify","eG","aE","n_","getExecOutput","console","eB","eH","eV","eX","bin","eJ","eq","ez","te","e9","upgrade","usePipx","ts","isLibrary","eW","setupActionsPython","rb","eK","eY","aw","python","eQ","e0","eZ","pip","e1","e2","e4","e3","ax","parseInt","ay","e6","execFile","encoding","shell","e8","e5","nX","getUbuntuVersion","e7","aO","user","ti","PIPX_HOME","aI","PIPX_BIN_DIR","aS","ab","to","tt","ag","tr","tn","aR","findIndex","ta","tl","tc","tu","tp","ArchiveHdi","read","extract","td","tf","th","aC","notice","tm","tv","aA","releaseName","fileSuffix","tg","ty","tw","tE","nK","tx","nW","tb","tR","tI","tS","tO","tT","nY","tC","tA","aj","t$","execSync","entries","aU","aD","ak","aL","t_","nZ","tN","aM","startGroup","milliseconds","fallback","customTimers","sign","aP","addEventListener","Number","POSITIVE_INFINITY","a$","finally","clear","tP","endGroup","a0","t3","tL","tD","aH","aG","NODE_DEBUG","tk","aB","rE","tU","tj","tF","aq","tM","az","aX","get","aV","aK","aW","tG","tB","aY","tX","tH","tV","aQ","tK","n0","All","nz","aJ","tq","tz","LD_LIBRARY_PATH","DYLD_LIBRARY_PATH","n1","tW","tY","nJ","nQ","tJ","n2","tQ","tZ","t0","t1","t2","t4","aZ","addShExt","addShRelativePrefix","t6","compiler","t8","ACTIONS_ALLOW_UNSECURE_COMMANDS","alias","unknown","string","boolean","concat","splice","substring","indexOf","repeat","shift","a2","fromEntries","getInput","toLowerCase","help","table","tools","documentation","coverage","other","architecture","SETUP_CPP_DIR","rC","create","autoloadLocales","addLocale","rA","rO","rT","forEach","cppcheck","gcovr","a1","isCI","now","parseFloat","format","success","t5","t7","rL","rD","rk","rU","rq","rz","rZ","r2","r3","r8","r9","ne","nt","nr","nn","ni","no","ns","na","nl","nc","nu","np","nd","nf","nh","nH","any","every","defineProperty","exports","constant","isPR","pr","BUILD_ID","BUILD_NUMBER","CI_APP_ID","CI_BUILD_ID","CI_BUILD_NUMBER","CI_NAME","CONTINUOUS_INTEGRATION","RUN_ID","parse","log","required","trimWhitespace","issueCommand","toCommandProperties","issue","ExitCode","Success","Failure","toCommandValue","GITHUB_ENV","issueFileCommand","prepareKeyValueMessage","setSecret","GITHUB_PATH","getMultilineInput","getBooleanInput","setOutput","GITHUB_OUTPUT","write","EOL","setCommandEcho","isDebug","RUNNER_DEBUG","group","saveState","GITHUB_STATE","getState","getIDToken","OidcClient","enumerable","summary","markdownSummary","toPosixPath","toWin32Path","toPlatformPath","constructor","properties","hasOwnProperty","String","title","line","startLine","endLine","col","startColumn","endColumn","appendFileSync","random","rng","n8","randomFillSync","Uint8Array","substr","createHttpClient","HttpClient","BearerCredentialHandler","getRequestToken","allowRetries","maxRetries","ACTIONS_ID_TOKEN_REQUEST_TOKEN","getIDTokenUrl","ACTIONS_ID_TOKEN_REQUEST_URL","getCall","getJson","result","encodeURIComponent","n5","HttpCodes","OK","MultipleChoices","MovedPermanently","ResourceMoved","SeeOther","NotModified","UseProxy","SwitchProxy","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","TooManyRequests","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","Headers","Accept","ContentType","MediaTypes","ApplicationJson","getProxyUrl","href","setPrototypeOf","prototype","HttpClientError","readBody","Buffer","alloc","HttpClientResponse","isHttps","protocol","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","getAgent","_getAgent","parsedUrl","host","port","pathname","search","_mergeHeaders","agent","prepareRequest","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","min","deserializeDates","isNaN","valueOf","reduce","no_proxy","NO_PROXY","endsWith","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","checkBypass","proxyOptions","defaultMaxSockets","requests","sockets","onSocket","removeSocket","createSocket","getHeader","socket","servername","t9","connect","localAddress","defaultPort","rr","inherits","re","EventEmitter","addRequest","emit","removeListener","removeAllListeners","useChunkedEncodingByDefault","once","nextTick","unshift","BasicCredentialHandler","Authorization","token","PersonalAccessTokenCredentialHandler","access","promises","SUMMARY_ENV_VAR","SUMMARY_DOCS_URL","_buffer","filePath","_filePath","constants","R_OK","W_OK","wrap","overwrite","emptyBuffer","isEmptyBuffer","addRaw","addEOL","addCodeBlock","lang","addList","addTable","header","data","colspan","rowspan","addDetails","addImage","width","height","src","alt","addHeading","addSeparator","addBreak","addQuote","cite","addLink","sep","require","pluralize","numerous","id","locale","span","unitType","unitTypeLookupOrder","autoload","floor","defaultConfig","versions","node","chmod","chown","copyFile","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","rm","promisify","isSymbolicLink","isFile","PATHEXT","mode","uid","gid","getgid","inc","diff","major","minor","prerelease","compare","rcompare","compareLoose","compareBuild","rsort","lt","neq","gte","lte","cmp","coerce","Comparator","Range","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","intersects","simplifyRange","subset","SemVer","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","compareIdentifiers","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","safeRe","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","MAX_SAFE_INTEGER","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","loose","includePrerelease","LOOSE","FULL","raw","build","compareMain","comparePre","freeze","rtl","COERCERTLFULL","COERCERTL","exec","index","lastIndex","ANY","semver","operator","COMPARATORLOOSE","COMPARATOR","set","parseRange","range","HYPHENRANGELOOSE","HYPHENRANGE","COMPARATORTRIM","TILDETRIM","CARETTRIM","Map","size","delete","TILDELOOSE","TILDE","CARETLOOSE","CARET","XRANGELOOSE","XRANGE","STAR","GTE0PRE","GTE0","unshiftNode","maxAge","tail","prev","key","removeNode","stale","noDisposeOnSet","updateAgeOnGet","reset","allowStale","lengthCalculator","itemCount","rforEach","toArray","dump","dumpLru","peek","load","prune","list","Node","pushNode","forEachReverse","getReverse","mapReverse","reduceReverse","toArrayReverse","sliceReverse","add","rn","configurable","basename","extname","normalize","relative","IS_WINDOWS","force","recursive","retryDelay","isRooted","tryGetExecutablePath","exists","cp","copySourceDirectory","mv","which","findInPath","UV_FS_O_EXLOCK","READONLY","O_RDONLY","getCmdPath","COMSPEC","_findMatch","stable","files","platform_version","_getOsVersion","_readLinuxVersionFile","randomBytes","argStringToArray","ToolRunner","ro","StringDecoder","listeners","toolPath","_debug","_getCommandString","_getSpawnFileName","_getSpawnArgs","_isCmdFile","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","_endsWith","_uvQuoteCmdArg","_cloneExecOptions","silent","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","stdline","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","stdin","charAt","_setResult","rs","HandleTimeout","rR","abs","long","years","months","one","weeks","days","hours","minutes","seconds","narrow","short","r_","n9","it","ie","ir","groups","getgroups","rP","ii","ia","io","is","il","_ISEXE_TEST_PLATFORM_","ic","isexe","iu","posix","ip","ih","source","im","iv","pathEnv","pathExtExe","ig","iE","rj","rM","iy","OSTYPE","iw","rB","ix","ib","colon","iR","iI","rX","rK","rW","openSync","readSync","closeSync","iS","forceShell","comspec","verifyENOENT","verifyENOENTSync","notFoundError","_parse","_enoent","iT","getOwnPropertyDescriptor","iC","iA","getPrototypeOf","i$","i_","Function","iN","iP","iL","WeakMap","iD","displayName","ignoreNonConfigurable","Reflect","ownKeys","callCount","ik","iF","ij","iU","number","action","description","standard","iM","forced","iG","iB","signals","rd","supported","iH","iV","iq","iz","errorCode","signalDescription","Boolean","originalMessage","shortMessage","iK","iW","iY","iJ","reallyExit","pid","iQ","iZ","i0","i1","i2","__signal_exit_emitter__","count","emitted","infinite","setMaxListeners","i4","i8","i6","oe","i7","rQ","equal","i5","alwaysLast","unload","i3","ot","i9","oi","os","unref","forceKillAfterTimeout","oo","SIGTERM","isFinite","ol","killSignal","race","cleanup","detached","od","of","createWriteStream","pipeStdout","pipeStderr","pipeAll","rf","rh","PassThrough","array","objectMode","setEncoding","pipeline","r0","buffer","MaxBufferError","r6","readable","isEmpty","og","oE","inputFile","ow","createReadStream","oR","oI","oO","oT","o$","o_","oD","ra","isBuffer","oU","templates","expressions","template","oj","oF","debuglog","enabled","oM","padStart","oG","getHours","getMinutes","getSeconds","getMilliseconds","verbose","oH","preferLocal","localDir","stripFinalNewline","windowsHide","oz","oX","rv","npm_package_json","npm_config_user_agent","XDG_CONFIG_HOME","mkdirSync","lastUpdateCheck","getTime","updateCheckInterval","distTag","alwaysRun","r7","padEnd","isTTY","shouldNotifyInNpmScript","oY","oJ","release","oQ","oZ","o1","o2","o4","o6","o8","o7","o5","se","si","so","sa","sl","sc","su","sf","sh","sv","sg","sw","sx","sI","sS","sO","sT","sC","sA","s$","sN","sD","sk","nx","nC","sZ","s2","s3","s6","n$","s5","nD","nN","RetryHelper","maxAttempts","minSeconds","maxSeconds","execute","getSleepAmount","sleep","s7","httpStatusCode","new","target","HTTPError","s9","ae","nA","authorization","statusMessage","extract7z","nS","extractXar","extractZip","cacheFile","findAllVersions","getManifestFromRepo","tree","accept","findFromManifest","isExplicitVersion","evaluateVersions","retryAsPromised","TimeoutError","previous","_getKeyIndexFromMatchingKey","_getKeyIndexForMany","_getKeyIndexForSingle","an","fs","mkdirAsync","statAsync","ai","ao","as","aa","al","ac","au","__TESTING_MKDIRP_PLATFORM__","ap","root","ad","__TESTING_MKDIRP_NODE_VERSION__","af","ah","am","av","mkdirpSync","mkdirpNative","mkdirpNativeSync","mkdirpManual","mkdirpManualSync","native","nativeSync","manual","manualSync","useNative","useNativeSync","rg","llvm","clangtidy","clangformat","ninja","cmake","conan","meson","kcov","task","doxygen","gcc","mingw","nala","aT","a_","aN","globalThis","DOMException","reason","ProgramFiles","aF","win32","win64","x86_64","vcpkg","bazel","opencppcoverage","choco","brew","powershell","ccache","sccache","graphviz","ClangFormat","msvc","vcvarsall","make","sevenzip","argv"],"sources":["../../","../../node_modules/ci-info/index.js","../../node_modules/ci-info/vendors.json","../../packages/ci-log/src/index.ts","../../node_modules/@actions/core/lib/core.js","../../node_modules/@actions/core/src/core.ts","../../node_modules/@actions/core/lib/command.js","../../node_modules/@actions/core/src/command.ts","../../node_modules/@actions/core/lib/utils.js","../../node_modules/@actions/core/src/utils.ts","../../node_modules/@actions/core/lib/file-command.js","../../node_modules/@actions/core/src/file-command.ts","../../node_modules/uuid/dist/esm-node/v4.js","../../node_modules/uuid/dist/esm-node/rng.js","../../node_modules/uuid/dist/esm-node/stringify.js","../../node_modules/uuid/dist/esm-node/validate.js","../../node_modules/uuid/dist/esm-node/regex.js","../../node_modules/@actions/core/lib/oidc-utils.js","../../node_modules/@actions/core/src/oidc-utils.ts","../../node_modules/@actions/http-client/lib/index.js","../../node_modules/@actions/http-client/src/index.ts","../../node_modules/@actions/http-client/lib/proxy.js","../../node_modules/@actions/http-client/src/proxy.ts","../../node_modules/tunnel/index.js","../../node_modules/tunnel/lib/tunnel.js","../../node_modules/@actions/http-client/lib/auth.js","../../node_modules/@actions/http-client/src/auth.ts","../../node_modules/@actions/core/lib/summary.js","../../node_modules/@actions/core/src/summary.ts","../../node_modules/@actions/core/lib/path-utils.js","../../node_modules/@actions/core/src/path-utils.ts","../../node_modules/numerous/lib/numerous.js","../../node_modules/time-delta/lib/time-delta.js","../../node_modules/numerous/index.js","../../node_modules/is-node/index.js","../../src/utils/compat/fs/promises.ts","../../node_modules/isexe/windows.js","../../node_modules/isexe/mode.js","../../node_modules/signal-exit/signals.js","../../node_modules/semver/index.js","../../node_modules/semver/internal/re.js","../../node_modules/semver/internal/constants.js","../../node_modules/semver/internal/debug.js","../../node_modules/semver/classes/semver.js","../../node_modules/semver/internal/parse-options.js","../../node_modules/semver/internal/identifiers.js","../../node_modules/semver/functions/parse.js","../../node_modules/semver/functions/valid.js","../../node_modules/semver/functions/clean.js","../../node_modules/semver/functions/inc.js","../../node_modules/semver/functions/diff.js","../../node_modules/semver/functions/major.js","../../node_modules/semver/functions/minor.js","../../node_modules/semver/functions/patch.js","../../node_modules/semver/functions/prerelease.js","../../node_modules/semver/functions/compare.js","../../node_modules/semver/functions/rcompare.js","../../node_modules/semver/functions/compare-loose.js","../../node_modules/semver/functions/compare-build.js","../../node_modules/semver/functions/sort.js","../../node_modules/semver/functions/rsort.js","../../node_modules/semver/functions/gt.js","../../node_modules/semver/functions/lt.js","../../node_modules/semver/functions/eq.js","../../node_modules/semver/functions/neq.js","../../node_modules/semver/functions/gte.js","../../node_modules/semver/functions/lte.js","../../node_modules/semver/functions/cmp.js","../../node_modules/semver/functions/coerce.js","../../node_modules/semver/classes/comparator.js","../../node_modules/semver/classes/range.js","../../node_modules/semver/node_modules/lru-cache/index.js","../../node_modules/yallist/yallist.js","../../node_modules/yallist/iterator.js","../../node_modules/semver/functions/satisfies.js","../../node_modules/semver/ranges/to-comparators.js","../../node_modules/semver/ranges/max-satisfying.js","../../node_modules/semver/ranges/min-satisfying.js","../../node_modules/semver/ranges/min-version.js","../../node_modules/semver/ranges/valid.js","../../node_modules/semver/ranges/outside.js","../../node_modules/semver/ranges/gtr.js","../../node_modules/semver/ranges/ltr.js","../../node_modules/semver/ranges/intersects.js","../../node_modules/semver/ranges/simplify.js","../../node_modules/semver/ranges/subset.js","../../node_modules/path-exists/index.js","../../node_modules/escape-quotes/node_modules/escape-string-regexp/index.js","../../node_modules/patha/dist/index.node.mjs","../../node_modules/patha/src/name.ts","../../node_modules/patha/src/normalize-trim.ts","../../node_modules/patha/src/add-exe-ext.ts","../../node_modules/patha/src/add-name-prefix.ts","../../node_modules/patha/src/add-name-suffix.ts","../../node_modules/patha/src/add-sh-ext.ts","../../node_modules/patha/src/add-sh-relative-prefix.ts","../../node_modules/patha/src/remove-ext.ts","../../node_modules/patha/src/replace-ext.ts","../../node_modules/patha/src/is-path-inside.ts","../../node_modules/escape-string-regexp/index.js","../../node_modules/replace-ext/index.js","../../node_modules/@actions/io/lib/io.js","../../node_modules/@actions/io/src/io.ts","../../node_modules/@actions/io/lib/io-util.js","../../node_modules/@actions/io/src/io-util.ts","../../node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/@actions/tool-cache/node_modules/semver/semver.js","../../node_modules/@actions/tool-cache/node_modules/uuid/v4.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/rng.js","../../node_modules/@actions/tool-cache/node_modules/uuid/lib/bytesToUuid.js","../../node_modules/@actions/exec/lib/exec.js","../../node_modules/@actions/exec/src/exec.ts","../../node_modules/@actions/exec/lib/toolrunner.js","../../node_modules/@actions/exec/src/toolrunner.ts","../../node_modules/@parcel/runtime-js/lib/runtime-fd61ca5b164aabc9.js","../../node_modules/@parcel/runtime-js/lib/runtime-3933bfab24449cc5.js","../../src/main.ts","../../node_modules/numerous/locales/en.js","../../node_modules/time-delta/index.js","../../node_modules/time-delta/locales/en.js","../../packages/untildify-user/src/index.ts","../../node_modules/admina/src/index.mts","../../node_modules/admina/dist/root.mjs","../../node_modules/admina/src/root.mts","../../node_modules/which/lib/index.js","../../node_modules/which/node_modules/isexe/dist/mjs/index.js","../../node_modules/which/node_modules/isexe/src/index.ts","../../node_modules/which/node_modules/isexe/dist/mjs/posix.js","../../node_modules/which/node_modules/isexe/src/posix.ts","../../node_modules/which/node_modules/isexe/dist/mjs/win32.js","../../node_modules/which/node_modules/isexe/src/win32.ts","../../node_modules/which/node_modules/isexe/src/options.ts","../../node_modules/execa/index.js","../../node_modules/cross-spawn/index.js","../../node_modules/cross-spawn/lib/parse.js","../../node_modules/cross-spawn/lib/util/resolveCommand.js","../../node_modules/cross-spawn/node_modules/which/which.js","../../node_modules/isexe/index.js","../../node_modules/path-key/index.js","../../node_modules/cross-spawn/lib/util/escape.js","../../node_modules/cross-spawn/lib/util/readShebang.js","../../node_modules/shebang-command/index.js","../../node_modules/shebang-regex/index.js","../../node_modules/cross-spawn/lib/enoent.js","../../node_modules/strip-final-newline/index.js","../../node_modules/npm-run-path/index.js","../../node_modules/npm-run-path/node_modules/path-key/index.js","../../node_modules/onetime/index.js","../../node_modules/mimic-fn/index.js","../../node_modules/execa/lib/error.js","../../node_modules/human-signals/build/src/main.js","../../node_modules/human-signals/build/src/realtime.js","../../node_modules/human-signals/build/src/signals.js","../../node_modules/human-signals/build/src/core.js","../../node_modules/execa/lib/stdio.js","../../node_modules/execa/lib/kill.js","../../node_modules/signal-exit/index.js","../../node_modules/execa/lib/pipe.js","../../node_modules/is-stream/index.js","../../node_modules/execa/lib/stream.js","../../node_modules/get-stream/index.js","../../node_modules/get-stream/buffer-stream.js","../../node_modules/merge-stream/index.js","../../node_modules/execa/lib/promise.js","../../node_modules/execa/lib/command.js","../../node_modules/execa/lib/verbose.js","../../node_modules/admina/dist/admin.mjs","../../node_modules/admina/src/admin.mts","../../node_modules/admina/dist/is-admin.mjs","../../node_modules/admina/src/is-admin.mts","../../node_modules/admina/dist/user-access.mjs","../../node_modules/admina/src/user-access.mts","../../src/check-updates.ts","../../node_modules/simple-update-notifier/build/index.js","../../package-version.json","../../src/cli-options.ts","../../node_modules/mri/lib/index.mjs","../../src/tool.ts","../../src/bazel/bazel.ts","../../src/utils/env/hasDnf.ts","../../src/utils/env/isArch.ts","../../src/utils/env/isUbuntu.ts","../../src/utils/setup/setupAptPack.ts","../../src/utils/env/addEnv.ts","../../node_modules/escape-path-with-spaces/index.js","../../node_modules/escape-quotes/lib/escape-quotes.js","../../packages/exec-powershell/src/index.ts","../../packages/exec-powershell/node_modules/execa/index.js","../../packages/exec-powershell/node_modules/execa/lib/error.js","../../packages/exec-powershell/node_modules/execa/lib/stdio.js","../../packages/exec-powershell/node_modules/execa/lib/kill.js","../../packages/exec-powershell/node_modules/execa/lib/pipe.js","../../packages/exec-powershell/node_modules/execa/lib/stream.js","../../packages/exec-powershell/node_modules/execa/lib/promise.js","../../packages/exec-powershell/node_modules/execa/lib/command.js","../../packages/exec-powershell/node_modules/execa/lib/verbose.js","../../src/utils/setup/setupBrewPack.ts","../../src/brew/brew.ts","../../src/utils/setup/setupChocoPack.ts","../../src/chocolatey/chocolatey.ts","../../src/utils/setup/setupDnfPack.ts","../../src/ccache/ccache.ts","../../src/utils/setup/setupPacmanPack.ts","../../src/cmake/cmake.ts","../../node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/@actions/tool-cache/src/retry-helper.ts","../../src/utils/setup/extract.ts","../../src/sevenzip/sevenzip.ts","../../src/utils/setup/setupBin.ts","../../node_modules/retry-as-promised/dist/index.js","../../src/conan/conan.ts","../../src/utils/setup/setupPipPack.ts","../../node_modules/micro-memoize/dist/micro-memoize.esm.js","../../node_modules/micro-memoize/src/utils.ts","../../node_modules/micro-memoize/src/Cache.ts","../../node_modules/micro-memoize/src/index.ts","../../node_modules/mkdirp/dist/mjs/index.js","../../node_modules/mkdirp/src/index.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-manual.js","../../node_modules/mkdirp/src/mkdirp-manual.ts","../../node_modules/mkdirp/dist/mjs/opts-arg.js","../../node_modules/mkdirp/src/opts-arg.ts","../../node_modules/mkdirp/dist/mjs/mkdirp-native.js","../../node_modules/mkdirp/src/mkdirp-native.ts","../../node_modules/mkdirp/dist/mjs/find-made.js","../../node_modules/mkdirp/src/find-made.ts","../../node_modules/mkdirp/dist/mjs/path-arg.js","../../node_modules/mkdirp/src/path-arg.ts","../../node_modules/mkdirp/dist/mjs/use-native.js","../../node_modules/mkdirp/src/use-native.ts","../../src/python/python.ts","../../src/utils/setup/version.ts","../../node_modules/is-url-online/dist/index.mjs","../../src/utils/std/index.ts","../../src/versions/default_versions.ts","../../src/versions/versions.ts","../../src/utils/env/ubuntu_version.ts","../../node_modules/ubuntu-version/index.js","../../src/cppcheck/cppcheck.ts","../../src/doxygen/doxygen.ts","../../src/graphviz/graphviz.ts","../../src/utils/env/macos_version.ts","../../node_modules/macos-release/index.js","../../src/utils/setup/setupDmg.ts","../../src/gcc/gcc.ts","../../src/macos-sdk/macos-sdk.ts","../../src/gcovr/gcovr.ts","../../src/kcov/kcov.ts","../../src/ninja/ninja.ts","../../src/llvm/llvm.ts","../../src/llvm/llvm_installer.ts","../../src/installTool.ts","../../node_modules/p-timeout/index.js","../../src/vcvarsall/vcvarsall.ts","../../node_modules/msvc-dev-cmd/lib.js","../../src/llvm/llvm_url.ts","../../src/make/make.ts","../../src/meson/meson.ts","../../src/msvc/msvc.ts","../../src/nala/nala.ts","../../src/opencppcoverage/opencppcoverage.ts","../../src/powershell/powershell.ts","../../src/sccache/sccache.ts","../../src/task/task.ts","../../src/vcpkg/vcpkg.ts","../../src/compilers.ts"],"sourcesContent":["#!/usr/bin/env node\nvar $d7DIX$os = require(\"os\");\nvar $d7DIX$path = require(\"path\");\nvar $d7DIX$fs = require(\"fs\");\nvar $d7DIX$crypto = require(\"crypto\");\nvar $d7DIX$http = require(\"http\");\nvar $d7DIX$https = require(\"https\");\nrequire(\"net\");\nvar $d7DIX$tls = require(\"tls\");\nvar $d7DIX$events = require(\"events\");\nvar $d7DIX$assert = require(\"assert\");\nvar $d7DIX$util = require(\"util\");\nvar $d7DIX$nodefs = require(\"node:fs\");\nvar $d7DIX$child_process = require(\"child_process\");\nvar $d7DIX$string_decoder = require(\"string_decoder\");\nvar $d7DIX$timers = require(\"timers\");\nvar $d7DIX$nodebuffer = require(\"node:buffer\");\nvar $d7DIX$nodepath = require(\"node:path\");\nvar $d7DIX$nodechild_process = require(\"node:child_process\");\nvar $d7DIX$nodeprocess = require(\"node:process\");\nvar $d7DIX$nodeurl = require(\"node:url\");\nvar $d7DIX$nodeos = require(\"node:os\");\nvar $d7DIX$buffer = require(\"buffer\");\nvar $d7DIX$stream = require(\"stream\");\nvar $d7DIX$nodeutil = require(\"node:util\");\nvar $d7DIX$process = require(\"process\");\nvar $d7DIX$url = require(\"url\");\nvar $d7DIX$console = require(\"console\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire810d\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"52cQ1\", function(module, exports) {\n\"use strict\";\n\nvar $jgqtC = parcelRequire(\"jgqtC\");\nconst $3aa719050363449a$var$env = process.env;\n// Used for testing only\nObject.defineProperty(module.exports, \"_vendors\", {\n value: $jgqtC.map(function(v) {\n return v.constant;\n })\n});\nmodule.exports.name = null;\nmodule.exports.isPR = null;\n$jgqtC.forEach(function(vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [\n vendor.env\n ];\n const isCI = envs.every(function(obj) {\n return $3aa719050363449a$var$checkEnv(obj);\n });\n module.exports[vendor.constant] = isCI;\n if (!isCI) return;\n module.exports.name = vendor.name;\n switch(typeof vendor.pr){\n case \"string\":\n // \"pr\": \"CIRRUS_PR\"\n module.exports.isPR = !!$3aa719050363449a$var$env[vendor.pr];\n break;\n case \"object\":\n if (\"env\" in vendor.pr) // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n module.exports.isPR = vendor.pr.env in $3aa719050363449a$var$env && $3aa719050363449a$var$env[vendor.pr.env] !== vendor.pr.ne;\n else if (\"any\" in vendor.pr) // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n module.exports.isPR = vendor.pr.any.some(function(key) {\n return !!$3aa719050363449a$var$env[key];\n });\n else // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n module.exports.isPR = $3aa719050363449a$var$checkEnv(vendor.pr);\n break;\n default:\n // PR detection not supported for this vendor\n module.exports.isPR = null;\n }\n});\nmodule.exports.isCI = !!($3aa719050363449a$var$env.CI !== \"false\" && // Bypass all checks if CI env is explicitly set to 'false'\n($3aa719050363449a$var$env.BUILD_ID || // Jenkins, Cloudbees\n$3aa719050363449a$var$env.BUILD_NUMBER || // Jenkins, TeamCity\n$3aa719050363449a$var$env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n$3aa719050363449a$var$env.CI_APP_ID || // Appflow\n$3aa719050363449a$var$env.CI_BUILD_ID || // Appflow\n$3aa719050363449a$var$env.CI_BUILD_NUMBER || // Appflow\n$3aa719050363449a$var$env.CI_NAME || // Codeship and others\n$3aa719050363449a$var$env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n$3aa719050363449a$var$env.RUN_ID || // TaskCluster, dsari\nmodule.exports.name || false));\nfunction $3aa719050363449a$var$checkEnv(obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === \"string\") return !!$3aa719050363449a$var$env[obj];\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if (\"env\" in obj) // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return $3aa719050363449a$var$env[obj.env] && $3aa719050363449a$var$env[obj.env].includes(obj.includes);\n if (\"any\" in obj) return obj.any.some(function(k) {\n return !!$3aa719050363449a$var$env[k];\n });\n return Object.keys(obj).every(function(k) {\n return $3aa719050363449a$var$env[k] === obj[k];\n });\n}\n\n});\nparcelRegister(\"jgqtC\", function(module, exports) {\nmodule.exports = JSON.parse('[{\"name\":\"Agola CI\",\"constant\":\"AGOLA\",\"env\":\"AGOLA_GIT_REF\",\"pr\":\"AGOLA_PULL_REQUEST_ID\"},{\"name\":\"Appcircle\",\"constant\":\"APPCIRCLE\",\"env\":\"AC_APPCIRCLE\"},{\"name\":\"AppVeyor\",\"constant\":\"APPVEYOR\",\"env\":\"APPVEYOR\",\"pr\":\"APPVEYOR_PULL_REQUEST_NUMBER\"},{\"name\":\"AWS CodeBuild\",\"constant\":\"CODEBUILD\",\"env\":\"CODEBUILD_BUILD_ARN\"},{\"name\":\"Azure Pipelines\",\"constant\":\"AZURE_PIPELINES\",\"env\":\"TF_BUILD\",\"pr\":{\"BUILD_REASON\":\"PullRequest\"}},{\"name\":\"Bamboo\",\"constant\":\"BAMBOO\",\"env\":\"bamboo_planKey\"},{\"name\":\"Bitbucket Pipelines\",\"constant\":\"BITBUCKET\",\"env\":\"BITBUCKET_COMMIT\",\"pr\":\"BITBUCKET_PR_ID\"},{\"name\":\"Bitrise\",\"constant\":\"BITRISE\",\"env\":\"BITRISE_IO\",\"pr\":\"BITRISE_PULL_REQUEST\"},{\"name\":\"Buddy\",\"constant\":\"BUDDY\",\"env\":\"BUDDY_WORKSPACE_ID\",\"pr\":\"BUDDY_EXECUTION_PULL_REQUEST_ID\"},{\"name\":\"Buildkite\",\"constant\":\"BUILDKITE\",\"env\":\"BUILDKITE\",\"pr\":{\"env\":\"BUILDKITE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"CircleCI\",\"constant\":\"CIRCLE\",\"env\":\"CIRCLECI\",\"pr\":\"CIRCLE_PULL_REQUEST\"},{\"name\":\"Cirrus CI\",\"constant\":\"CIRRUS\",\"env\":\"CIRRUS_CI\",\"pr\":\"CIRRUS_PR\"},{\"name\":\"Codefresh\",\"constant\":\"CODEFRESH\",\"env\":\"CF_BUILD_ID\",\"pr\":{\"any\":[\"CF_PULL_REQUEST_NUMBER\",\"CF_PULL_REQUEST_ID\"]}},{\"name\":\"Codemagic\",\"constant\":\"CODEMAGIC\",\"env\":\"CM_BUILD_ID\",\"pr\":\"CM_PULL_REQUEST\"},{\"name\":\"Codeship\",\"constant\":\"CODESHIP\",\"env\":{\"CI_NAME\":\"codeship\"}},{\"name\":\"Drone\",\"constant\":\"DRONE\",\"env\":\"DRONE\",\"pr\":{\"DRONE_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"dsari\",\"constant\":\"DSARI\",\"env\":\"DSARI\"},{\"name\":\"Earthly\",\"constant\":\"EARTHLY\",\"env\":\"EARTHLY_CI\"},{\"name\":\"Expo Application Services\",\"constant\":\"EAS\",\"env\":\"EAS_BUILD\"},{\"name\":\"Gerrit\",\"constant\":\"GERRIT\",\"env\":\"GERRIT_PROJECT\"},{\"name\":\"Gitea Actions\",\"constant\":\"GITEA_ACTIONS\",\"env\":\"GITEA_ACTIONS\"},{\"name\":\"GitHub Actions\",\"constant\":\"GITHUB_ACTIONS\",\"env\":\"GITHUB_ACTIONS\",\"pr\":{\"GITHUB_EVENT_NAME\":\"pull_request\"}},{\"name\":\"GitLab CI\",\"constant\":\"GITLAB\",\"env\":\"GITLAB_CI\",\"pr\":\"CI_MERGE_REQUEST_ID\"},{\"name\":\"GoCD\",\"constant\":\"GOCD\",\"env\":\"GO_PIPELINE_LABEL\"},{\"name\":\"Google Cloud Build\",\"constant\":\"GOOGLE_CLOUD_BUILD\",\"env\":\"BUILDER_OUTPUT\"},{\"name\":\"Harness CI\",\"constant\":\"HARNESS\",\"env\":\"HARNESS_BUILD_ID\"},{\"name\":\"Heroku\",\"constant\":\"HEROKU\",\"env\":{\"env\":\"NODE\",\"includes\":\"/app/.heroku/node/bin/node\"}},{\"name\":\"Hudson\",\"constant\":\"HUDSON\",\"env\":\"HUDSON_URL\"},{\"name\":\"Jenkins\",\"constant\":\"JENKINS\",\"env\":[\"JENKINS_URL\",\"BUILD_ID\"],\"pr\":{\"any\":[\"ghprbPullId\",\"CHANGE_ID\"]}},{\"name\":\"LayerCI\",\"constant\":\"LAYERCI\",\"env\":\"LAYERCI\",\"pr\":\"LAYERCI_PULL_REQUEST\"},{\"name\":\"Magnum CI\",\"constant\":\"MAGNUM\",\"env\":\"MAGNUM\"},{\"name\":\"Netlify CI\",\"constant\":\"NETLIFY\",\"env\":\"NETLIFY\",\"pr\":{\"env\":\"PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Nevercode\",\"constant\":\"NEVERCODE\",\"env\":\"NEVERCODE\",\"pr\":{\"env\":\"NEVERCODE_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Prow\",\"constant\":\"PROW\",\"env\":\"PROW_JOB_ID\"},{\"name\":\"ReleaseHub\",\"constant\":\"RELEASEHUB\",\"env\":\"RELEASE_BUILD_ID\"},{\"name\":\"Render\",\"constant\":\"RENDER\",\"env\":\"RENDER\",\"pr\":{\"IS_PULL_REQUEST\":\"true\"}},{\"name\":\"Sail CI\",\"constant\":\"SAIL\",\"env\":\"SAILCI\",\"pr\":\"SAIL_PULL_REQUEST_NUMBER\"},{\"name\":\"Screwdriver\",\"constant\":\"SCREWDRIVER\",\"env\":\"SCREWDRIVER\",\"pr\":{\"env\":\"SD_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Semaphore\",\"constant\":\"SEMAPHORE\",\"env\":\"SEMAPHORE\",\"pr\":\"PULL_REQUEST_NUMBER\"},{\"name\":\"Sourcehut\",\"constant\":\"SOURCEHUT\",\"env\":{\"CI_NAME\":\"sourcehut\"}},{\"name\":\"Strider CD\",\"constant\":\"STRIDER\",\"env\":\"STRIDER\"},{\"name\":\"TaskCluster\",\"constant\":\"TASKCLUSTER\",\"env\":[\"TASK_ID\",\"RUN_ID\"]},{\"name\":\"TeamCity\",\"constant\":\"TEAMCITY\",\"env\":\"TEAMCITY_VERSION\"},{\"name\":\"Travis CI\",\"constant\":\"TRAVIS\",\"env\":\"TRAVIS\",\"pr\":{\"env\":\"TRAVIS_PULL_REQUEST\",\"ne\":\"false\"}},{\"name\":\"Vela\",\"constant\":\"VELA\",\"env\":\"VELA\",\"pr\":{\"VELA_PULL_REQUEST\":\"1\"}},{\"name\":\"Vercel\",\"constant\":\"VERCEL\",\"env\":{\"any\":[\"NOW_BUILDER\",\"VERCEL\"]},\"pr\":\"VERCEL_GIT_PULL_REQUEST_ID\"},{\"name\":\"Visual Studio App Center\",\"constant\":\"APPCENTER\",\"env\":\"APPCENTER_BUILD_ID\"},{\"name\":\"Woodpecker\",\"constant\":\"WOODPECKER\",\"env\":{\"CI\":\"woodpecker\"},\"pr\":{\"CI_BUILD_EVENT\":\"pull_request\"}},{\"name\":\"Xcode Cloud\",\"constant\":\"XCODE_CLOUD\",\"env\":\"CI_XCODE_PROJECT\",\"pr\":\"CI_PULL_REQUEST_NUMBER\"},{\"name\":\"Xcode Server\",\"constant\":\"XCODE_SERVER\",\"env\":\"XCS\"}]');\n\n});\n\n\nparcelRegister(\"ER74K\", function(module, exports) {\n\n$parcel$export(module.exports, \"error\", () => $59a05e0535061862$export$a3bc9b8ed74fc);\n$parcel$export(module.exports, \"success\", () => $59a05e0535061862$export$fe7c49d056ea1d88);\n$parcel$export(module.exports, \"warning\", () => $59a05e0535061862$export$491112666e282270);\n$parcel$export(module.exports, \"notice\", () => $59a05e0535061862$export$b31f6ae88848cf15);\n$parcel$export(module.exports, \"info\", () => $59a05e0535061862$export$a80b3bd66acc52ff);\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\nfunction $59a05e0535061862$export$a3bc9b8ed74fc(err) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$fe7c49d056ea1d88(msg) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$491112666e282270(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$b31f6ae88848cf15(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`);\n}\nfunction $59a05e0535061862$export$a80b3bd66acc52ff(msg) {\n return (0, $52cQ1.GITHUB_ACTIONS) ? $4t50X.info(msg) : console.log(msg);\n}\n\n});\nparcelRegister(\"4t50X\", function(module, exports) {\n\"use strict\";\nvar $340dc29cb75a8fc5$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $340dc29cb75a8fc5$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $340dc29cb75a8fc5$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $340dc29cb75a8fc5$var$__createBinding(result, mod, k);\n }\n $340dc29cb75a8fc5$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $340dc29cb75a8fc5$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getIDToken = module.exports.getState = module.exports.saveState = module.exports.group = module.exports.endGroup = module.exports.startGroup = module.exports.info = module.exports.notice = module.exports.warning = module.exports.error = module.exports.debug = module.exports.isDebug = module.exports.setFailed = module.exports.setCommandEcho = module.exports.setOutput = module.exports.getBooleanInput = module.exports.getMultilineInput = module.exports.getInput = module.exports.addPath = module.exports.setSecret = module.exports.exportVariable = module.exports.ExitCode = void 0;\n\nvar $dIPEE = parcelRequire(\"dIPEE\");\n\nvar $aSbHp = parcelRequire(\"aSbHp\");\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\n\nconst $340dc29cb75a8fc5$var$os = $340dc29cb75a8fc5$var$__importStar($d7DIX$os);\n\nconst $340dc29cb75a8fc5$var$path = $340dc29cb75a8fc5$var$__importStar($d7DIX$path);\n\nvar $6dNYa = parcelRequire(\"6dNYa\");\n/**\n * The code to exit an action\n */ var $340dc29cb75a8fc5$var$ExitCode;\n(function(ExitCode) {\n /**\n * A code indicating that the action was successful\n */ ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */ ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})($340dc29cb75a8fc5$var$ExitCode = module.exports.ExitCode || (module.exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$exportVariable(name, val) {\n const convertedVal = $i0ItD.toCommandValue(val);\n process.env[name] = convertedVal;\n const filePath = process.env[\"GITHUB_ENV\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"ENV\", $aSbHp.prepareKeyValueMessage(name, val));\n $dIPEE.issueCommand(\"set-env\", {\n name: name\n }, convertedVal);\n}\nmodule.exports.exportVariable = $340dc29cb75a8fc5$var$exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */ function $340dc29cb75a8fc5$var$setSecret(secret) {\n $dIPEE.issueCommand(\"add-mask\", {}, secret);\n}\nmodule.exports.setSecret = $340dc29cb75a8fc5$var$setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */ function $340dc29cb75a8fc5$var$addPath(inputPath) {\n const filePath = process.env[\"GITHUB_PATH\"] || \"\";\n if (filePath) $aSbHp.issueFileCommand(\"PATH\", inputPath);\n else $dIPEE.issueCommand(\"add-path\", {}, inputPath);\n process.env[\"PATH\"] = `${inputPath}${$340dc29cb75a8fc5$var$path.delimiter}${process.env[\"PATH\"]}`;\n}\nmodule.exports.addPath = $340dc29cb75a8fc5$var$addPath;\n/**\n * Gets the value of an input.\n * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.\n * Returns an empty string if the value is not defined.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */ function $340dc29cb75a8fc5$var$getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`);\n if (options && options.trimWhitespace === false) return val;\n return val.trim();\n}\nmodule.exports.getInput = $340dc29cb75a8fc5$var$getInput;\n/**\n * Gets the values of an multiline input. Each value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string[]\n *\n */ function $340dc29cb75a8fc5$var$getMultilineInput(name, options) {\n const inputs = $340dc29cb75a8fc5$var$getInput(name, options).split(\"\\n\").filter((x)=>x !== \"\");\n if (options && options.trimWhitespace === false) return inputs;\n return inputs.map((input)=>input.trim());\n}\nmodule.exports.getMultilineInput = $340dc29cb75a8fc5$var$getMultilineInput;\n/**\n * Gets the input value of the boolean type in the YAML 1.2 \"core schema\" specification.\n * Support boolean input list: `true | True | TRUE | false | False | FALSE` .\n * The return value is also in boolean type.\n * ref: https://yaml.org/spec/1.2/spec.html#id2804923\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns boolean\n */ function $340dc29cb75a8fc5$var$getBooleanInput(name, options) {\n const trueValue = [\n \"true\",\n \"True\",\n \"TRUE\"\n ];\n const falseValue = [\n \"false\",\n \"False\",\n \"FALSE\"\n ];\n const val = $340dc29cb75a8fc5$var$getInput(name, options);\n if (trueValue.includes(val)) return true;\n if (falseValue.includes(val)) return false;\n throw new TypeError(`Input does not meet YAML 1.2 \"Core Schema\" specification: ${name}\\n` + `Support boolean input list: \\`true | True | TRUE | false | False | FALSE\\``);\n}\nmodule.exports.getBooleanInput = $340dc29cb75a8fc5$var$getBooleanInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$setOutput(name, value) {\n const filePath = process.env[\"GITHUB_OUTPUT\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"OUTPUT\", $aSbHp.prepareKeyValueMessage(name, value));\n process.stdout.write($340dc29cb75a8fc5$var$os.EOL);\n $dIPEE.issueCommand(\"set-output\", {\n name: name\n }, $i0ItD.toCommandValue(value));\n}\nmodule.exports.setOutput = $340dc29cb75a8fc5$var$setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */ function $340dc29cb75a8fc5$var$setCommandEcho(enabled) {\n $dIPEE.issue(\"echo\", enabled ? \"on\" : \"off\");\n}\nmodule.exports.setCommandEcho = $340dc29cb75a8fc5$var$setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */ function $340dc29cb75a8fc5$var$setFailed(message) {\n process.exitCode = $340dc29cb75a8fc5$var$ExitCode.Failure;\n $340dc29cb75a8fc5$var$error(message);\n}\nmodule.exports.setFailed = $340dc29cb75a8fc5$var$setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */ function $340dc29cb75a8fc5$var$isDebug() {\n return process.env[\"RUNNER_DEBUG\"] === \"1\";\n}\nmodule.exports.isDebug = $340dc29cb75a8fc5$var$isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */ function $340dc29cb75a8fc5$var$debug(message) {\n $dIPEE.issueCommand(\"debug\", {}, message);\n}\nmodule.exports.debug = $340dc29cb75a8fc5$var$debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$error(message, properties = {}) {\n $dIPEE.issueCommand(\"error\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.error = $340dc29cb75a8fc5$var$error;\n/**\n * Adds a warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$warning(message, properties = {}) {\n $dIPEE.issueCommand(\"warning\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.warning = $340dc29cb75a8fc5$var$warning;\n/**\n * Adds a notice issue\n * @param message notice issue message. Errors will be converted to string via toString()\n * @param properties optional properties to add to the annotation.\n */ function $340dc29cb75a8fc5$var$notice(message, properties = {}) {\n $dIPEE.issueCommand(\"notice\", $i0ItD.toCommandProperties(properties), message instanceof Error ? message.toString() : message);\n}\nmodule.exports.notice = $340dc29cb75a8fc5$var$notice;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */ function $340dc29cb75a8fc5$var$info(message) {\n process.stdout.write(message + $340dc29cb75a8fc5$var$os.EOL);\n}\nmodule.exports.info = $340dc29cb75a8fc5$var$info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */ function $340dc29cb75a8fc5$var$startGroup(name) {\n $dIPEE.issue(\"group\", name);\n}\nmodule.exports.startGroup = $340dc29cb75a8fc5$var$startGroup;\n/**\n * End an output group.\n */ function $340dc29cb75a8fc5$var$endGroup() {\n $dIPEE.issue(\"endgroup\");\n}\nmodule.exports.endGroup = $340dc29cb75a8fc5$var$endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */ function $340dc29cb75a8fc5$var$group(name, fn) {\n return $340dc29cb75a8fc5$var$__awaiter(this, void 0, void 0, function*() {\n $340dc29cb75a8fc5$var$startGroup(name);\n let result;\n try {\n result = yield fn();\n } finally{\n $340dc29cb75a8fc5$var$endGroup();\n }\n return result;\n });\n}\nmodule.exports.group = $340dc29cb75a8fc5$var$group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction $340dc29cb75a8fc5$var$saveState(name, value) {\n const filePath = process.env[\"GITHUB_STATE\"] || \"\";\n if (filePath) return $aSbHp.issueFileCommand(\"STATE\", $aSbHp.prepareKeyValueMessage(name, value));\n $dIPEE.issueCommand(\"save-state\", {\n name: name\n }, $i0ItD.toCommandValue(value));\n}\nmodule.exports.saveState = $340dc29cb75a8fc5$var$saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */ function $340dc29cb75a8fc5$var$getState(name) {\n return process.env[`STATE_${name}`] || \"\";\n}\nmodule.exports.getState = $340dc29cb75a8fc5$var$getState;\nfunction $340dc29cb75a8fc5$var$getIDToken(aud) {\n return $340dc29cb75a8fc5$var$__awaiter(this, void 0, void 0, function*() {\n return yield $6dNYa.OidcClient.getIDToken(aud);\n });\n}\nmodule.exports.getIDToken = $340dc29cb75a8fc5$var$getIDToken;\n\nvar $dTpO2 = parcelRequire(\"dTpO2\");\nObject.defineProperty(module.exports, \"summary\", {\n enumerable: true,\n get: function() {\n return $dTpO2.summary;\n }\n});\n\nvar $dTpO2 = parcelRequire(\"dTpO2\");\nObject.defineProperty(module.exports, \"markdownSummary\", {\n enumerable: true,\n get: function() {\n return $dTpO2.markdownSummary;\n }\n});\n\nvar $azKnO = parcelRequire(\"azKnO\");\nObject.defineProperty(module.exports, \"toPosixPath\", {\n enumerable: true,\n get: function() {\n return $azKnO.toPosixPath;\n }\n});\nObject.defineProperty(module.exports, \"toWin32Path\", {\n enumerable: true,\n get: function() {\n return $azKnO.toWin32Path;\n }\n});\nObject.defineProperty(module.exports, \"toPlatformPath\", {\n enumerable: true,\n get: function() {\n return $azKnO.toPlatformPath;\n }\n});\n\n});\nparcelRegister(\"dIPEE\", function(module, exports) {\n\"use strict\";\nvar $9fd773f80bf7d36c$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $9fd773f80bf7d36c$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $9fd773f80bf7d36c$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $9fd773f80bf7d36c$var$__createBinding(result, mod, k);\n }\n $9fd773f80bf7d36c$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.issue = module.exports.issueCommand = void 0;\n\nconst $9fd773f80bf7d36c$var$os = $9fd773f80bf7d36c$var$__importStar($d7DIX$os);\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */ function $9fd773f80bf7d36c$var$issueCommand(command, properties, message) {\n const cmd = new $9fd773f80bf7d36c$var$Command(command, properties, message);\n process.stdout.write(cmd.toString() + $9fd773f80bf7d36c$var$os.EOL);\n}\nmodule.exports.issueCommand = $9fd773f80bf7d36c$var$issueCommand;\nfunction $9fd773f80bf7d36c$var$issue(name, message = \"\") {\n $9fd773f80bf7d36c$var$issueCommand(name, {}, message);\n}\nmodule.exports.issue = $9fd773f80bf7d36c$var$issue;\nconst $9fd773f80bf7d36c$var$CMD_STRING = \"::\";\nclass $9fd773f80bf7d36c$var$Command {\n constructor(command, properties, message){\n if (!command) command = \"missing.command\";\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = $9fd773f80bf7d36c$var$CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += \" \";\n let first = true;\n for(const key in this.properties)if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) first = false;\n else cmdStr += \",\";\n cmdStr += `${key}=${$9fd773f80bf7d36c$var$escapeProperty(val)}`;\n }\n }\n }\n cmdStr += `${$9fd773f80bf7d36c$var$CMD_STRING}${$9fd773f80bf7d36c$var$escapeData(this.message)}`;\n return cmdStr;\n }\n}\nfunction $9fd773f80bf7d36c$var$escapeData(s) {\n return $i0ItD.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\");\n}\nfunction $9fd773f80bf7d36c$var$escapeProperty(s) {\n return $i0ItD.toCommandValue(s).replace(/%/g, \"%25\").replace(/\\r/g, \"%0D\").replace(/\\n/g, \"%0A\").replace(/:/g, \"%3A\").replace(/,/g, \"%2C\");\n}\n\n});\nparcelRegister(\"i0ItD\", function(module, exports) {\n\"use strict\";\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toCommandProperties = module.exports.toCommandValue = void 0;\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */ function $d1caba43517904de$var$toCommandValue(input) {\n if (input === null || input === undefined) return \"\";\n else if (typeof input === \"string\" || input instanceof String) return input;\n return JSON.stringify(input);\n}\nmodule.exports.toCommandValue = $d1caba43517904de$var$toCommandValue;\n/**\n *\n * @param annotationProperties\n * @returns The command properties to send with the actual annotation command\n * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646\n */ function $d1caba43517904de$var$toCommandProperties(annotationProperties) {\n if (!Object.keys(annotationProperties).length) return {};\n return {\n title: annotationProperties.title,\n file: annotationProperties.file,\n line: annotationProperties.startLine,\n endLine: annotationProperties.endLine,\n col: annotationProperties.startColumn,\n endColumn: annotationProperties.endColumn\n };\n}\nmodule.exports.toCommandProperties = $d1caba43517904de$var$toCommandProperties;\n\n});\n\n\nparcelRegister(\"aSbHp\", function(module, exports) {\n\"use strict\";\n// For internal use, subject to change.\nvar $7ea805c232758762$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7ea805c232758762$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7ea805c232758762$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7ea805c232758762$var$__createBinding(result, mod, k);\n }\n $7ea805c232758762$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.prepareKeyValueMessage = module.exports.issueFileCommand = void 0;\n\n// We use any as a valid input type\n/* eslint-disable @typescript-eslint/no-explicit-any */ const $7ea805c232758762$var$fs = $7ea805c232758762$var$__importStar($d7DIX$fs);\n\nconst $7ea805c232758762$var$os = $7ea805c232758762$var$__importStar($d7DIX$os);\n\nvar $e3G3w = parcelRequire(\"e3G3w\");\n\nvar $i0ItD = parcelRequire(\"i0ItD\");\nfunction $7ea805c232758762$var$issueFileCommand(command, message) {\n const filePath = process.env[`GITHUB_${command}`];\n if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`);\n if (!$7ea805c232758762$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`);\n $7ea805c232758762$var$fs.appendFileSync(filePath, `${$i0ItD.toCommandValue(message)}${$7ea805c232758762$var$os.EOL}`, {\n encoding: \"utf8\"\n });\n}\nmodule.exports.issueFileCommand = $7ea805c232758762$var$issueFileCommand;\nfunction $7ea805c232758762$var$prepareKeyValueMessage(key, value) {\n const delimiter = `ghadelimiter_${$e3G3w.default()}`;\n const convertedValue = $i0ItD.toCommandValue(value);\n // These should realistically never happen, but just in case someone finds a\n // way to exploit uuid generation let's not allow keys or values that contain\n // the delimiter.\n if (key.includes(delimiter)) throw new Error(`Unexpected input: name should not contain the delimiter \"${delimiter}\"`);\n if (convertedValue.includes(delimiter)) throw new Error(`Unexpected input: value should not contain the delimiter \"${delimiter}\"`);\n return `${key}<<${delimiter}${$7ea805c232758762$var$os.EOL}${convertedValue}${$7ea805c232758762$var$os.EOL}${delimiter}`;\n}\nmodule.exports.prepareKeyValueMessage = $7ea805c232758762$var$prepareKeyValueMessage;\n\n});\nparcelRegister(\"e3G3w\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $a3c1f7e44989a758$export$2e2bcd8739ae039);\n\nvar $kDGEy = parcelRequire(\"kDGEy\");\n\nvar $2ckr2 = parcelRequire(\"2ckr2\");\nfunction $a3c1f7e44989a758$var$v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || (0, $kDGEy.default))(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for(let i = 0; i < 16; ++i)buf[offset + i] = rnds[i];\n return buf;\n }\n return (0, $2ckr2.default)(rnds);\n}\nvar $a3c1f7e44989a758$export$2e2bcd8739ae039 = $a3c1f7e44989a758$var$v4;\n\n});\nparcelRegister(\"kDGEy\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $f0688929972e8cca$export$2e2bcd8739ae039);\n\nconst $f0688929972e8cca$var$rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\nlet $f0688929972e8cca$var$poolPtr = $f0688929972e8cca$var$rnds8Pool.length;\nfunction $f0688929972e8cca$export$2e2bcd8739ae039() {\n if ($f0688929972e8cca$var$poolPtr > $f0688929972e8cca$var$rnds8Pool.length - 16) {\n (0, ($parcel$interopDefault($d7DIX$crypto))).randomFillSync($f0688929972e8cca$var$rnds8Pool);\n $f0688929972e8cca$var$poolPtr = 0;\n }\n return $f0688929972e8cca$var$rnds8Pool.slice($f0688929972e8cca$var$poolPtr, $f0688929972e8cca$var$poolPtr += 16);\n}\n\n});\n\nparcelRegister(\"2ckr2\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $199c8db8e94efcb9$export$2e2bcd8739ae039);\n\nvar $9IL8W = parcelRequire(\"9IL8W\");\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ const $199c8db8e94efcb9$var$byteToHex = [];\nfor(let i = 0; i < 256; ++i)$199c8db8e94efcb9$var$byteToHex.push((i + 0x100).toString(16).substr(1));\nfunction $199c8db8e94efcb9$var$stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = ($199c8db8e94efcb9$var$byteToHex[arr[offset + 0]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 1]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 2]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 3]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 4]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 5]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 6]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 7]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 8]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 9]] + \"-\" + $199c8db8e94efcb9$var$byteToHex[arr[offset + 10]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 11]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 12]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 13]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 14]] + $199c8db8e94efcb9$var$byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!(0, $9IL8W.default)(uuid)) throw TypeError(\"Stringified UUID is invalid\");\n return uuid;\n}\nvar $199c8db8e94efcb9$export$2e2bcd8739ae039 = $199c8db8e94efcb9$var$stringify;\n\n});\nparcelRegister(\"9IL8W\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $713ccacc4438b458$export$2e2bcd8739ae039);\n\nvar $hDU47 = parcelRequire(\"hDU47\");\nfunction $713ccacc4438b458$var$validate(uuid) {\n return typeof uuid === \"string\" && (0, $hDU47.default).test(uuid);\n}\nvar $713ccacc4438b458$export$2e2bcd8739ae039 = $713ccacc4438b458$var$validate;\n\n});\nparcelRegister(\"hDU47\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $cd81919c4b3b9e01$export$2e2bcd8739ae039);\nvar $cd81919c4b3b9e01$export$2e2bcd8739ae039 = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\n});\n\n\n\n\n\nparcelRegister(\"6dNYa\", function(module, exports) {\n\"use strict\";\nvar $487ab7ded41d44aa$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.OidcClient = void 0;\n\nvar $a7JAS = parcelRequire(\"a7JAS\");\n\nvar $3T6Pq = parcelRequire(\"3T6Pq\");\n\nvar $4t50X = parcelRequire(\"4t50X\");\nclass $487ab7ded41d44aa$var$OidcClient {\n static createHttpClient(allowRetry = true, maxRetry = 10) {\n const requestOptions = {\n allowRetries: allowRetry,\n maxRetries: maxRetry\n };\n return new $a7JAS.HttpClient(\"actions/oidc-client\", [\n new $3T6Pq.BearerCredentialHandler($487ab7ded41d44aa$var$OidcClient.getRequestToken())\n ], requestOptions);\n }\n static getRequestToken() {\n const token = process.env[\"ACTIONS_ID_TOKEN_REQUEST_TOKEN\"];\n if (!token) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable\");\n return token;\n }\n static getIDTokenUrl() {\n const runtimeUrl = process.env[\"ACTIONS_ID_TOKEN_REQUEST_URL\"];\n if (!runtimeUrl) throw new Error(\"Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable\");\n return runtimeUrl;\n }\n static getCall(id_token_url) {\n var _a;\n return $487ab7ded41d44aa$var$__awaiter(this, void 0, void 0, function*() {\n const httpclient = $487ab7ded41d44aa$var$OidcClient.createHttpClient();\n const res = yield httpclient.getJson(id_token_url).catch((error)=>{\n throw new Error(`Failed to get ID Token. \\n \n Error Code : ${error.statusCode}\\n \n Error Message: ${error.message}`);\n });\n const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;\n if (!id_token) throw new Error(\"Response json body do not have ID Token field\");\n return id_token;\n });\n }\n static getIDToken(audience) {\n return $487ab7ded41d44aa$var$__awaiter(this, void 0, void 0, function*() {\n try {\n // New ID Token is requested from action service\n let id_token_url = $487ab7ded41d44aa$var$OidcClient.getIDTokenUrl();\n if (audience) {\n const encodedAudience = encodeURIComponent(audience);\n id_token_url = `${id_token_url}&audience=${encodedAudience}`;\n }\n $4t50X.debug(`ID token url is ${id_token_url}`);\n const id_token = yield $487ab7ded41d44aa$var$OidcClient.getCall(id_token_url);\n $4t50X.setSecret(id_token);\n return id_token;\n } catch (error) {\n throw new Error(`Error message: ${error.message}`);\n }\n });\n }\n}\nmodule.exports.OidcClient = $487ab7ded41d44aa$var$OidcClient;\n\n});\nparcelRegister(\"a7JAS\", function(module, exports) {\n\"use strict\";\n/* eslint-disable @typescript-eslint/no-explicit-any */ var $75edecd1a4092d7a$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $75edecd1a4092d7a$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $75edecd1a4092d7a$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $75edecd1a4092d7a$var$__createBinding(result, mod, k);\n }\n $75edecd1a4092d7a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $75edecd1a4092d7a$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.HttpClient = module.exports.isHttps = module.exports.HttpClientResponse = module.exports.HttpClientError = module.exports.getProxyUrl = module.exports.MediaTypes = module.exports.Headers = module.exports.HttpCodes = void 0;\n\nconst $75edecd1a4092d7a$var$http = $75edecd1a4092d7a$var$__importStar($d7DIX$http);\n\nconst $75edecd1a4092d7a$var$https = $75edecd1a4092d7a$var$__importStar($d7DIX$https);\n\nconst $75edecd1a4092d7a$var$pm = $75edecd1a4092d7a$var$__importStar((parcelRequire(\"8gh3V\")));\n\nconst $75edecd1a4092d7a$var$tunnel = $75edecd1a4092d7a$var$__importStar((parcelRequire(\"7i1qo\")));\nvar $75edecd1a4092d7a$var$HttpCodes;\n(function(HttpCodes) {\n HttpCodes[HttpCodes[\"OK\"] = 200] = \"OK\";\n HttpCodes[HttpCodes[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpCodes[HttpCodes[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpCodes[HttpCodes[\"ResourceMoved\"] = 302] = \"ResourceMoved\";\n HttpCodes[HttpCodes[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpCodes[HttpCodes[\"NotModified\"] = 304] = \"NotModified\";\n HttpCodes[HttpCodes[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpCodes[HttpCodes[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n HttpCodes[HttpCodes[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpCodes[HttpCodes[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpCodes[HttpCodes[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpCodes[HttpCodes[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpCodes[HttpCodes[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpCodes[HttpCodes[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpCodes[HttpCodes[\"NotFound\"] = 404] = \"NotFound\";\n HttpCodes[HttpCodes[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpCodes[HttpCodes[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpCodes[HttpCodes[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpCodes[HttpCodes[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpCodes[HttpCodes[\"Conflict\"] = 409] = \"Conflict\";\n HttpCodes[HttpCodes[\"Gone\"] = 410] = \"Gone\";\n HttpCodes[HttpCodes[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpCodes[HttpCodes[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpCodes[HttpCodes[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpCodes[HttpCodes[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpCodes[HttpCodes[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpCodes[HttpCodes[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n})($75edecd1a4092d7a$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $75edecd1a4092d7a$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($75edecd1a4092d7a$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $75edecd1a4092d7a$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($75edecd1a4092d7a$var$MediaTypes = module.exports.MediaTypes || (module.exports.MediaTypes = {}));\n/**\n * Returns the proxy URL, depending upon the supplied url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ function $75edecd1a4092d7a$var$getProxyUrl(serverUrl) {\n const proxyUrl = $75edecd1a4092d7a$var$pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $75edecd1a4092d7a$var$getProxyUrl;\nconst $75edecd1a4092d7a$var$HttpRedirectCodes = [\n $75edecd1a4092d7a$var$HttpCodes.MovedPermanently,\n $75edecd1a4092d7a$var$HttpCodes.ResourceMoved,\n $75edecd1a4092d7a$var$HttpCodes.SeeOther,\n $75edecd1a4092d7a$var$HttpCodes.TemporaryRedirect,\n $75edecd1a4092d7a$var$HttpCodes.PermanentRedirect\n];\nconst $75edecd1a4092d7a$var$HttpResponseRetryCodes = [\n $75edecd1a4092d7a$var$HttpCodes.BadGateway,\n $75edecd1a4092d7a$var$HttpCodes.ServiceUnavailable,\n $75edecd1a4092d7a$var$HttpCodes.GatewayTimeout\n];\nconst $75edecd1a4092d7a$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $75edecd1a4092d7a$var$ExponentialBackoffCeiling = 10;\nconst $75edecd1a4092d7a$var$ExponentialBackoffTimeSlice = 5;\nclass $75edecd1a4092d7a$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $75edecd1a4092d7a$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $75edecd1a4092d7a$var$HttpClientError;\nclass $75edecd1a4092d7a$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>$75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n let output = Buffer.alloc(0);\n this.message.on(\"data\", (chunk)=>{\n output = Buffer.concat([\n output,\n chunk\n ]);\n });\n this.message.on(\"end\", ()=>{\n resolve(output.toString());\n });\n }));\n });\n }\n}\nmodule.exports.HttpClientResponse = $75edecd1a4092d7a$var$HttpClientResponse;\nfunction $75edecd1a4092d7a$var$isHttps(requestUrl) {\n const parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $75edecd1a4092d7a$var$isHttps;\nclass $75edecd1a4092d7a$var$HttpClient {\n constructor(userAgent, handlers, requestOptions){\n this._ignoreSslError = false;\n this._allowRedirects = true;\n this._allowRedirectDowngrade = false;\n this._maxRedirects = 50;\n this._allowRetries = false;\n this._maxRetries = 1;\n this._keepAlive = false;\n this._disposed = false;\n this.userAgent = userAgent;\n this.handlers = handlers || [];\n this.requestOptions = requestOptions;\n if (requestOptions) {\n if (requestOptions.ignoreSslError != null) this._ignoreSslError = requestOptions.ignoreSslError;\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) this._allowRedirects = requestOptions.allowRedirects;\n if (requestOptions.allowRedirectDowngrade != null) this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n if (requestOptions.maxRedirects != null) this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n if (requestOptions.keepAlive != null) this._keepAlive = requestOptions.keepAlive;\n if (requestOptions.allowRetries != null) this._allowRetries = requestOptions.allowRetries;\n if (requestOptions.maxRetries != null) this._maxRetries = requestOptions.maxRetries;\n }\n }\n options(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n });\n }\n get(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n });\n }\n del(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n });\n }\n post(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n });\n }\n patch(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n });\n }\n put(requestUrl, data, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n });\n }\n head(requestUrl, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n });\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return this.request(verb, requestUrl, stream, additionalHeaders);\n });\n }\n /**\n * Gets a typed object from an endpoint\n * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise\n */ getJson(requestUrl, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n postJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n putJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n patchJson(requestUrl, obj, additionalHeaders = {}) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const data = JSON.stringify(obj, null, 2);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.Accept, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n additionalHeaders[$75edecd1a4092d7a$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $75edecd1a4092d7a$var$Headers.ContentType, $75edecd1a4092d7a$var$MediaTypes.ApplicationJson);\n const res = yield this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n });\n }\n /**\n * Makes a raw http request.\n * All other methods such as get, post, patch, and request ultimately call this.\n * Prefer get, del, post and patch\n */ request(verb, requestUrl, data, headers) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n const parsedUrl = new URL(requestUrl);\n let info = this._prepareRequest(verb, parsedUrl, headers);\n // Only perform retries on reads since writes may not be idempotent.\n const maxTries = this._allowRetries && $75edecd1a4092d7a$var$RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n do {\n response = yield this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $75edecd1a4092d7a$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (const handler of this.handlers)if (handler.canHandleAuthentication(response)) {\n authenticationHandler = handler;\n break;\n }\n if (authenticationHandler) return authenticationHandler.handleAuthentication(this, info, data);\n else // We have received an unauthorized response but have no handlers to handle it.\n // Let the response return to the caller.\n return response;\n }\n let redirectsRemaining = this._maxRedirects;\n while(response.message.statusCode && $75edecd1a4092d7a$var$HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n const parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol === \"https:\" && parsedUrl.protocol !== parsedRedirectUrl.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.\");\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n yield response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(const header in headers)// header names are case insensitive\n if (header.toLowerCase() === \"authorization\") delete headers[header];\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = yield this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (!response.message.statusCode || !$75edecd1a4092d7a$var$HttpResponseRetryCodes.includes(response.message.statusCode)) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n yield response.readBody();\n yield this._performExponentialBackoff(numTries);\n }\n }while (numTries < maxTries);\n return response;\n });\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */ dispose() {\n if (this._agent) this._agent.destroy();\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */ requestRaw(info, data) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>{\n function callbackForResult(err, res) {\n if (err) reject(err);\n else if (!res) // If `err` is not passed, then `res` must be passed.\n reject(new Error(\"Unknown error\"));\n else resolve(res);\n }\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n if (typeof data === \"string\") {\n if (!info.options.headers) info.options.headers = {};\n info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n }\n let callbackCalled = false;\n function handleResult(err, res) {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n }\n const req = info.httpModule.request(info.options, (msg)=>{\n const res = new $75edecd1a4092d7a$var$HttpClientResponse(msg);\n handleResult(undefined, res);\n });\n let socket;\n req.on(\"socket\", (sock)=>{\n socket = sock;\n });\n // If we ever get disconnected, we want the socket to timeout eventually\n req.setTimeout(this._socketTimeout || 180000, ()=>{\n if (socket) socket.end();\n handleResult(new Error(`Request timeout: ${info.options.path}`));\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err);\n });\n if (data && typeof data === \"string\") req.write(data, \"utf8\");\n if (data && typeof data !== \"string\") {\n data.on(\"close\", function() {\n req.end();\n });\n data.pipe(req);\n } else req.end();\n }\n /**\n * Gets an http agent. This function is useful when you need an http agent that handles\n * routing through a proxy server - depending upon the url and proxy environment variables.\n * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com\n */ getAgent(serverUrl) {\n const parsedUrl = new URL(serverUrl);\n return this._getAgent(parsedUrl);\n }\n _prepareRequest(method, requestUrl, headers) {\n const info = {};\n info.parsedUrl = requestUrl;\n const usingSsl = info.parsedUrl.protocol === \"https:\";\n info.httpModule = usingSsl ? $75edecd1a4092d7a$var$https : $75edecd1a4092d7a$var$http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;\n info.options.path = (info.parsedUrl.pathname || \"\") + (info.parsedUrl.search || \"\");\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) info.options.headers[\"user-agent\"] = this.userAgent;\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) for (const handler of this.handlers)handler.prepareRequest(info.options);\n return info;\n }\n _mergeHeaders(headers) {\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, $75edecd1a4092d7a$var$lowercaseKeys(this.requestOptions.headers), $75edecd1a4092d7a$var$lowercaseKeys(headers || {}));\n return $75edecd1a4092d7a$var$lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = $75edecd1a4092d7a$var$lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n const proxyUrl = $75edecd1a4092d7a$var$pm.getProxyUrl(parsedUrl);\n const useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) agent = this._proxyAgent;\n if (this._keepAlive && !useProxy) agent = this._agent;\n // if agent is already assigned use that agent.\n if (agent) return agent;\n const usingSsl = parsedUrl.protocol === \"https:\";\n let maxSockets = 100;\n if (this.requestOptions) maxSockets = this.requestOptions.maxSockets || $75edecd1a4092d7a$var$http.globalAgent.maxSockets;\n // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.\n if (proxyUrl && proxyUrl.hostname) {\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && {\n proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`\n }), {\n host: proxyUrl.hostname,\n port: proxyUrl.port\n })\n };\n let tunnelAgent;\n const overHttps = proxyUrl.protocol === \"https:\";\n if (usingSsl) tunnelAgent = overHttps ? $75edecd1a4092d7a$var$tunnel.httpsOverHttps : $75edecd1a4092d7a$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $75edecd1a4092d7a$var$tunnel.httpOverHttps : $75edecd1a4092d7a$var$tunnel.httpOverHttp;\n agent = tunnelAgent(agentOptions);\n this._proxyAgent = agent;\n }\n // if reusing agent across request and tunneling agent isn't assigned create a new agent\n if (this._keepAlive && !agent) {\n const options = {\n keepAlive: this._keepAlive,\n maxSockets: maxSockets\n };\n agent = usingSsl ? new $75edecd1a4092d7a$var$https.Agent(options) : new $75edecd1a4092d7a$var$http.Agent(options);\n this._agent = agent;\n }\n // if not using private agent and tunnel agent isn't setup then use global agent\n if (!agent) agent = usingSsl ? $75edecd1a4092d7a$var$https.globalAgent : $75edecd1a4092d7a$var$http.globalAgent;\n if (usingSsl && this._ignoreSslError) // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process\n // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options\n // we have to cast it to any and change it directly\n agent.options = Object.assign(agent.options || {}, {\n rejectUnauthorized: false\n });\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n retryNumber = Math.min($75edecd1a4092d7a$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $75edecd1a4092d7a$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n });\n }\n _processResponse(res, options) {\n return $75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve, reject)=>$75edecd1a4092d7a$var$__awaiter(this, void 0, void 0, function*() {\n const statusCode = res.message.statusCode || 0;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode === $75edecd1a4092d7a$var$HttpCodes.NotFound) resolve(response);\n // get the result from the body\n function dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n const a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n let obj;\n let contents;\n try {\n contents = yield res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, dateTimeDeserializer);\n else obj = JSON.parse(contents);\n response.result = obj;\n }\n response.headers = res.message.headers;\n } catch (err) {\n // Invalid resource (contents not json); leaving result obj null\n }\n // note that 3xx redirects are handled by the http layer.\n if (statusCode > 299) {\n let msg;\n // if exception/error in body, attempt to get better error\n if (obj && obj.message) msg = obj.message;\n else if (contents && contents.length > 0) // it may be the case that the exception is in the body message as string\n msg = contents;\n else msg = `Failed request: (${statusCode})`;\n const err = new $75edecd1a4092d7a$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n }));\n });\n }\n}\nmodule.exports.HttpClient = $75edecd1a4092d7a$var$HttpClient;\nconst $75edecd1a4092d7a$var$lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n\n});\nparcelRegister(\"8gh3V\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.checkBypass = module.exports.getProxyUrl = void 0;\nfunction $603d0d99277438f4$var$getProxyUrl(reqUrl) {\n const usingSsl = reqUrl.protocol === \"https:\";\n if ($603d0d99277438f4$var$checkBypass(reqUrl)) return undefined;\n const proxyVar = (()=>{\n if (usingSsl) return process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else return process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n })();\n if (proxyVar) return new URL(proxyVar);\n else return undefined;\n}\nmodule.exports.getProxyUrl = $603d0d99277438f4$var$getProxyUrl;\nfunction $603d0d99277438f4$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n const reqHost = reqUrl.hostname;\n if ($603d0d99277438f4$var$isLoopbackAddress(reqHost)) return true;\n const noProxy = process.env[\"no_proxy\"] || process.env[\"NO_PROXY\"] || \"\";\n if (!noProxy) return false;\n // Determine the request port\n let reqPort;\n if (reqUrl.port) reqPort = Number(reqUrl.port);\n else if (reqUrl.protocol === \"http:\") reqPort = 80;\n else if (reqUrl.protocol === \"https:\") reqPort = 443;\n // Format the request hostname and hostname with port\n const upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (const upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperNoProxyItem === \"*\" || upperReqHosts.some((x)=>x === upperNoProxyItem || x.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(\".\") && x.endsWith(`${upperNoProxyItem}`))) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $603d0d99277438f4$var$checkBypass;\nfunction $603d0d99277438f4$var$isLoopbackAddress(host) {\n const hostLower = host.toLowerCase();\n return hostLower === \"localhost\" || hostLower.startsWith(\"127.\") || hostLower.startsWith(\"[::1]\") || hostLower.startsWith(\"[0:0:0:0:0:0:0:1]\");\n}\n\n});\n\nparcelRegister(\"7i1qo\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"fbmJm\"));\n\n});\nparcelRegister(\"fbmJm\", function(module, exports) {\n\n$parcel$export(module.exports, \"httpOverHttp\", () => $b0d983e8249a2cc9$export$25cbd437c61a3835, (v) => $b0d983e8249a2cc9$export$25cbd437c61a3835 = v);\n$parcel$export(module.exports, \"httpsOverHttp\", () => $b0d983e8249a2cc9$export$c06e3df7111bae43, (v) => $b0d983e8249a2cc9$export$c06e3df7111bae43 = v);\n$parcel$export(module.exports, \"httpOverHttps\", () => $b0d983e8249a2cc9$export$5d50e36ef656139f, (v) => $b0d983e8249a2cc9$export$5d50e36ef656139f = v);\n$parcel$export(module.exports, \"httpsOverHttps\", () => $b0d983e8249a2cc9$export$212d6605025321cc, (v) => $b0d983e8249a2cc9$export$212d6605025321cc = v);\n$parcel$export(module.exports, \"debug\", () => $b0d983e8249a2cc9$export$1c9f709888824e05, (v) => $b0d983e8249a2cc9$export$1c9f709888824e05 = v);\nvar $b0d983e8249a2cc9$export$25cbd437c61a3835;\nvar $b0d983e8249a2cc9$export$c06e3df7111bae43;\nvar $b0d983e8249a2cc9$export$5d50e36ef656139f;\nvar $b0d983e8249a2cc9$export$212d6605025321cc;\nvar $b0d983e8249a2cc9$export$1c9f709888824e05;\n\"use strict\";\n\n\n\n\n\n\n\n$b0d983e8249a2cc9$export$25cbd437c61a3835 = $b0d983e8249a2cc9$var$httpOverHttp;\n$b0d983e8249a2cc9$export$c06e3df7111bae43 = $b0d983e8249a2cc9$var$httpsOverHttp;\n$b0d983e8249a2cc9$export$5d50e36ef656139f = $b0d983e8249a2cc9$var$httpOverHttps;\n$b0d983e8249a2cc9$export$212d6605025321cc = $b0d983e8249a2cc9$var$httpsOverHttps;\nfunction $b0d983e8249a2cc9$var$httpOverHttp(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$http.request;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpsOverHttp(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$http.request;\n agent.createSocket = $b0d983e8249a2cc9$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpOverHttps(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$https.request;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$httpsOverHttps(options) {\n var agent = new $b0d983e8249a2cc9$var$TunnelingAgent(options);\n agent.request = $d7DIX$https.request;\n agent.createSocket = $b0d983e8249a2cc9$var$createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\nfunction $b0d983e8249a2cc9$var$TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || $d7DIX$http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n self.on(\"free\", function onFree(socket, host, port, localAddress) {\n var options = $b0d983e8249a2cc9$var$toOptions(host, port, localAddress);\n for(var i = 0, len = self.requests.length; i < len; ++i){\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\n$d7DIX$util.inherits($b0d983e8249a2cc9$var$TunnelingAgent, $d7DIX$events.EventEmitter);\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = $b0d983e8249a2cc9$var$mergeOptions({\n request: req\n }, self.options, $b0d983e8249a2cc9$var$toOptions(host, port, localAddress));\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on(\"free\", onFree);\n socket.on(\"close\", onCloseOrRemove);\n socket.on(\"agentRemove\", onCloseOrRemove);\n req.onSocket(socket);\n function onFree() {\n self.emit(\"free\", socket, options);\n }\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener(\"free\", onFree);\n socket.removeListener(\"close\", onCloseOrRemove);\n socket.removeListener(\"agentRemove\", onCloseOrRemove);\n }\n });\n};\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n var connectOptions = $b0d983e8249a2cc9$var$mergeOptions({}, self.proxyOptions, {\n method: \"CONNECT\",\n path: options.host + \":\" + options.port,\n agent: false,\n headers: {\n host: options.host + \":\" + options.port\n }\n });\n if (options.localAddress) connectOptions.localAddress = options.localAddress;\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers[\"Proxy-Authorization\"] = \"Basic \" + new Buffer(connectOptions.proxyAuth).toString(\"base64\");\n }\n $b0d983e8249a2cc9$var$debug(\"making CONNECT request\");\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once(\"response\", onResponse); // for v0.6\n connectReq.once(\"upgrade\", onUpgrade); // for v0.6\n connectReq.once(\"connect\", onConnect); // for v0.7 or later\n connectReq.once(\"error\", onError);\n connectReq.end();\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n if (res.statusCode !== 200) {\n $b0d983e8249a2cc9$var$debug(\"tunneling socket could not be established, statusCode=%d\", res.statusCode);\n socket.destroy();\n var error = new Error(\"tunneling socket could not be established, statusCode=\" + res.statusCode);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n $b0d983e8249a2cc9$var$debug(\"got illegal response body from proxy\");\n socket.destroy();\n var error = new Error(\"got illegal response body from proxy\");\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n return;\n }\n $b0d983e8249a2cc9$var$debug(\"tunneling connection has established\");\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n function onError(cause) {\n connectReq.removeAllListeners();\n $b0d983e8249a2cc9$var$debug(\"tunneling socket could not be established, cause=%s\\n\", cause.message, cause.stack);\n var error = new Error(\"tunneling socket could not be established, cause=\" + cause.message);\n error.code = \"ECONNRESET\";\n options.request.emit(\"error\", error);\n self.removeSocket(placeholder);\n }\n};\n$b0d983e8249a2cc9$var$TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket);\n if (pos === -1) return;\n this.sockets.splice(pos, 1);\n var pending = this.requests.shift();\n if (pending) // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n};\nfunction $b0d983e8249a2cc9$var$createSecureSocket(options, cb) {\n var self = this;\n $b0d983e8249a2cc9$var$TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader(\"host\");\n var tlsOptions = $b0d983e8249a2cc9$var$mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, \"\") : options.host\n });\n // 0 is dummy port for v0.6\n var secureSocket = $d7DIX$tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\nfunction $b0d983e8249a2cc9$var$toOptions(host, port, localAddress) {\n if (typeof host === \"string\") return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n return host; // for v0.11 or later\n}\nfunction $b0d983e8249a2cc9$var$mergeOptions(target) {\n for(var i = 1, len = arguments.length; i < len; ++i){\n var overrides = arguments[i];\n if (typeof overrides === \"object\") {\n var keys = Object.keys(overrides);\n for(var j = 0, keyLen = keys.length; j < keyLen; ++j){\n var k = keys[j];\n if (overrides[k] !== undefined) target[k] = overrides[k];\n }\n }\n }\n return target;\n}\nvar $b0d983e8249a2cc9$var$debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) $b0d983e8249a2cc9$var$debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === \"string\") args[0] = \"TUNNEL: \" + args[0];\n else args.unshift(\"TUNNEL:\");\n console.error.apply(console, args);\n};\nelse $b0d983e8249a2cc9$var$debug = function() {};\n$b0d983e8249a2cc9$export$1c9f709888824e05 = $b0d983e8249a2cc9$var$debug; // for test\n\n});\n\n\n\nparcelRegister(\"3T6Pq\", function(module, exports) {\n\"use strict\";\nvar $2d4bce26bfd1284d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.PersonalAccessTokenCredentialHandler = module.exports.BearerCredentialHandler = module.exports.BasicCredentialHandler = void 0;\nclass $2d4bce26bfd1284d$var$BasicCredentialHandler {\n constructor(username, password){\n this.username = username;\n this.password = password;\n }\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BasicCredentialHandler = $2d4bce26bfd1284d$var$BasicCredentialHandler;\nclass $2d4bce26bfd1284d$var$BearerCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Bearer ${this.token}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.BearerCredentialHandler = $2d4bce26bfd1284d$var$BearerCredentialHandler;\nclass $2d4bce26bfd1284d$var$PersonalAccessTokenCredentialHandler {\n constructor(token){\n this.token = token;\n }\n // currently implements pre-authorization\n // TODO: support preAuth = false where it hooks on 401\n prepareRequest(options) {\n if (!options.headers) throw Error(\"The request has no headers\");\n options.headers[\"Authorization\"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString(\"base64\")}`;\n }\n // This handler cannot handle 401\n canHandleAuthentication() {\n return false;\n }\n handleAuthentication() {\n return $2d4bce26bfd1284d$var$__awaiter(this, void 0, void 0, function*() {\n throw new Error(\"not implemented\");\n });\n }\n}\nmodule.exports.PersonalAccessTokenCredentialHandler = $2d4bce26bfd1284d$var$PersonalAccessTokenCredentialHandler;\n\n});\n\n\nparcelRegister(\"dTpO2\", function(module, exports) {\n\"use strict\";\nvar $a1d46df778449c59$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.summary = module.exports.markdownSummary = module.exports.SUMMARY_DOCS_URL = module.exports.SUMMARY_ENV_VAR = void 0;\n\n\nconst { access: $a1d46df778449c59$var$access, appendFile: $a1d46df778449c59$var$appendFile, writeFile: $a1d46df778449c59$var$writeFile } = $d7DIX$fs.promises;\nmodule.exports.SUMMARY_ENV_VAR = \"GITHUB_STEP_SUMMARY\";\nmodule.exports.SUMMARY_DOCS_URL = \"https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary\";\nclass $a1d46df778449c59$var$Summary {\n constructor(){\n this._buffer = \"\";\n }\n /**\n * Finds the summary file path from the environment, rejects if env var is not found or file does not exist\n * Also checks r/w permissions.\n *\n * @returns step summary file path\n */ filePath() {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n if (this._filePath) return this._filePath;\n const pathFromEnv = process.env[module.exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) throw new Error(`Unable to find environment variable for $${module.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n try {\n yield $a1d46df778449c59$var$access(pathFromEnv, $d7DIX$fs.constants.R_OK | $d7DIX$fs.constants.W_OK);\n } catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }\n /**\n * Wraps content in an HTML tag, adding any HTML attributes\n *\n * @param {string} tag HTML tag to wrap\n * @param {string | null} content content within the tag\n * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add\n *\n * @returns {string} content wrapped in HTML element\n */ wrap(tag, content, attrs = {}) {\n const htmlAttrs = Object.entries(attrs).map(([key, value])=>` ${key}=\"${value}\"`).join(\"\");\n if (!content) return `<${tag}${htmlAttrs}>`;\n return `<${tag}${htmlAttrs}>${content}`;\n }\n /**\n * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.\n *\n * @param {SummaryWriteOptions} [options] (optional) options for write operation\n *\n * @returns {Promise} summary instance\n */ write(options) {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);\n const filePath = yield this.filePath();\n const writeFunc = overwrite ? $a1d46df778449c59$var$writeFile : $a1d46df778449c59$var$appendFile;\n yield writeFunc(filePath, this._buffer, {\n encoding: \"utf8\"\n });\n return this.emptyBuffer();\n });\n }\n /**\n * Clears the summary buffer and wipes the summary file\n *\n * @returns {Summary} summary instance\n */ clear() {\n return $a1d46df778449c59$var$__awaiter(this, void 0, void 0, function*() {\n return this.emptyBuffer().write({\n overwrite: true\n });\n });\n }\n /**\n * Returns the current summary buffer as a string\n *\n * @returns {string} string of summary buffer\n */ stringify() {\n return this._buffer;\n }\n /**\n * If the summary buffer is empty\n *\n * @returns {boolen} true if the buffer is empty\n */ isEmptyBuffer() {\n return this._buffer.length === 0;\n }\n /**\n * Resets the summary buffer without writing to summary file\n *\n * @returns {Summary} summary instance\n */ emptyBuffer() {\n this._buffer = \"\";\n return this;\n }\n /**\n * Adds raw text to the summary buffer\n *\n * @param {string} text content to add\n * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)\n *\n * @returns {Summary} summary instance\n */ addRaw(text, addEOL = false) {\n this._buffer += text;\n return addEOL ? this.addEOL() : this;\n }\n /**\n * Adds the operating system-specific end-of-line marker to the buffer\n *\n * @returns {Summary} summary instance\n */ addEOL() {\n return this.addRaw($d7DIX$os.EOL);\n }\n /**\n * Adds an HTML codeblock to the summary buffer\n *\n * @param {string} code content to render within fenced code block\n * @param {string} lang (optional) language to syntax highlight code\n *\n * @returns {Summary} summary instance\n */ addCodeBlock(code, lang) {\n const attrs = Object.assign({}, lang && {\n lang: lang\n });\n const element = this.wrap(\"pre\", this.wrap(\"code\", code), attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML list to the summary buffer\n *\n * @param {string[]} items list of items to render\n * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)\n *\n * @returns {Summary} summary instance\n */ addList(items, ordered = false) {\n const tag = ordered ? \"ol\" : \"ul\";\n const listItems = items.map((item)=>this.wrap(\"li\", item)).join(\"\");\n const element = this.wrap(tag, listItems);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML table to the summary buffer\n *\n * @param {SummaryTableCell[]} rows table rows\n *\n * @returns {Summary} summary instance\n */ addTable(rows) {\n const tableBody = rows.map((row)=>{\n const cells = row.map((cell)=>{\n if (typeof cell === \"string\") return this.wrap(\"td\", cell);\n const { header: header, data: data, colspan: colspan, rowspan: rowspan } = cell;\n const tag = header ? \"th\" : \"td\";\n const attrs = Object.assign(Object.assign({}, colspan && {\n colspan: colspan\n }), rowspan && {\n rowspan: rowspan\n });\n return this.wrap(tag, data, attrs);\n }).join(\"\");\n return this.wrap(\"tr\", cells);\n }).join(\"\");\n const element = this.wrap(\"table\", tableBody);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds a collapsable HTML details element to the summary buffer\n *\n * @param {string} label text for the closed state\n * @param {string} content collapsable content\n *\n * @returns {Summary} summary instance\n */ addDetails(label, content) {\n const element = this.wrap(\"details\", this.wrap(\"summary\", label) + content);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML image tag to the summary buffer\n *\n * @param {string} src path to the image you to embed\n * @param {string} alt text description of the image\n * @param {SummaryImageOptions} options (optional) addition image attributes\n *\n * @returns {Summary} summary instance\n */ addImage(src, alt, options) {\n const { width: width, height: height } = options || {};\n const attrs = Object.assign(Object.assign({}, width && {\n width: width\n }), height && {\n height: height\n });\n const element = this.wrap(\"img\", null, Object.assign({\n src: src,\n alt: alt\n }, attrs));\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML section heading element\n *\n * @param {string} text heading text\n * @param {number | string} [level=1] (optional) the heading level, default: 1\n *\n * @returns {Summary} summary instance\n */ addHeading(text, level) {\n const tag = `h${level}`;\n const allowedTag = [\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\"\n ].includes(tag) ? tag : \"h1\";\n const element = this.wrap(allowedTag, text);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML thematic break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addSeparator() {\n const element = this.wrap(\"hr\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML line break (
) to the summary buffer\n *\n * @returns {Summary} summary instance\n */ addBreak() {\n const element = this.wrap(\"br\", null);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML blockquote to the summary buffer\n *\n * @param {string} text quote text\n * @param {string} cite (optional) citation url\n *\n * @returns {Summary} summary instance\n */ addQuote(text, cite) {\n const attrs = Object.assign({}, cite && {\n cite: cite\n });\n const element = this.wrap(\"blockquote\", text, attrs);\n return this.addRaw(element).addEOL();\n }\n /**\n * Adds an HTML anchor tag to the summary buffer\n *\n * @param {string} text link text/content\n * @param {string} href hyperlink\n *\n * @returns {Summary} summary instance\n */ addLink(text, href) {\n const element = this.wrap(\"a\", text, {\n href: href\n });\n return this.addRaw(element).addEOL();\n }\n}\nconst $a1d46df778449c59$var$_summary = new $a1d46df778449c59$var$Summary();\n/**\n * @deprecated use `core.summary`\n */ module.exports.markdownSummary = $a1d46df778449c59$var$_summary;\nmodule.exports.summary = $a1d46df778449c59$var$_summary;\n\n});\n\nparcelRegister(\"azKnO\", function(module, exports) {\n\"use strict\";\nvar $7b3126f8d7bd7b01$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $7b3126f8d7bd7b01$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $7b3126f8d7bd7b01$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $7b3126f8d7bd7b01$var$__createBinding(result, mod, k);\n }\n $7b3126f8d7bd7b01$var$__setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.toPlatformPath = module.exports.toWin32Path = module.exports.toPosixPath = void 0;\n\nconst $7b3126f8d7bd7b01$var$path = $7b3126f8d7bd7b01$var$__importStar($d7DIX$path);\n/**\n * toPosixPath converts the given path to the posix form. On Windows, \\\\ will be\n * replaced with /.\n *\n * @param pth. Path to transform.\n * @return string Posix path.\n */ function $7b3126f8d7bd7b01$var$toPosixPath(pth) {\n return pth.replace(/[\\\\]/g, \"/\");\n}\nmodule.exports.toPosixPath = $7b3126f8d7bd7b01$var$toPosixPath;\n/**\n * toWin32Path converts the given path to the win32 form. On Linux, / will be\n * replaced with \\\\.\n *\n * @param pth. Path to transform.\n * @return string Win32 path.\n */ function $7b3126f8d7bd7b01$var$toWin32Path(pth) {\n return pth.replace(/[/]/g, \"\\\\\");\n}\nmodule.exports.toWin32Path = $7b3126f8d7bd7b01$var$toWin32Path;\n/**\n * toPlatformPath converts the given path to a platform-specific path. It does\n * this by replacing instances of / and \\ with the platform-specific path\n * separator.\n *\n * @param pth The path to platformize.\n * @return string The platform-specific path.\n */ function $7b3126f8d7bd7b01$var$toPlatformPath(pth) {\n return pth.replace(/[/\\\\]/g, $7b3126f8d7bd7b01$var$path.sep);\n}\nmodule.exports.toPlatformPath = $7b3126f8d7bd7b01$var$toPlatformPath;\n\n});\n\n\n\nparcelRegister(\"eCDnw\", function(module, exports) {\n\nvar $aa532906b08b4bb5$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../node_modules/numerous/lib\");\n(function() {\n \"use strict\";\n var root = this;\n //=========//\n // GLOBALS //\n //=========//\n var locales = {};\n //==========//\n // EXPOSING //\n //==========//\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n if (\"undefined\" !== typeof module.exports) module.exports = moduleDefinition;\n else root.numerous = moduleDefinition;\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */ function factory(locale) {\n checkLocale(locale);\n return {\n pluralize: function(value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */ function addLocale(locale, callable) {\n locales[locale] = callable;\n }\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */ function pluralize(locale, value, variants) {\n checkLocale(locale);\n if (\"object\" !== typeof variants) throw new Error(\"List of variants should be specified as an object\");\n var key = locales[locale](value);\n return \"undefined\" !== typeof variants[key] ? variants[key] : null;\n }\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */ function hasLocale(locale) {\n return \"undefined\" !== typeof locales[locale];\n }\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */ function checkLocale(locale) {\n if (!hasLocale(locale)) requireLocale(locale);\n }\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */ function requireLocale(locale) {\n try {\n require($aa532906b08b4bb5$var$$parcel$__dirname + \"/../locales/\" + locale + \".js\");\n } catch (error) {\n throw Error(\"Failed to load the following locale: \" + locale);\n }\n }\n}).call(module.exports);\n\n});\n\nparcelRegister(\"gMm9F\", function(module, exports) {\n//==============//\n// DEPENDENCIES //\n//==============//\n\nvar $iWDmx = parcelRequire(\"iWDmx\");\n\nvar $9xs9T = parcelRequire(\"9xs9T\");\n//================//\n// MODULE GLOBALS //\n//================//\n/**\n * Pre-calculating millisecond values for each time unit.\n */ const $c372508a6b96a969$var$timeUnits = [\n [\n \"years\",\n 29030400000\n ],\n [\n \"months\",\n 2419200000\n ],\n [\n \"weeks\",\n 604800000\n ],\n [\n \"days\",\n 86400000\n ],\n [\n \"hours\",\n 3600000\n ],\n [\n \"minutes\",\n 60000\n ],\n [\n \"seconds\",\n 1000\n ]\n];\nconst $c372508a6b96a969$var$defaultConfig = {\n locale: \"en\",\n span: 2,\n delimiter: \", \",\n unitType: \"long\",\n unitTypeLookupOrder: [\n \"long\",\n \"short\",\n \"narrow\"\n ],\n autoloadLocales: true\n};\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */ const $c372508a6b96a969$var$locales = {};\n//=========//\n// EXPORTS //\n//=========//\nmodule.exports = {\n create: $c372508a6b96a969$var$timeDeltaFactory,\n addLocale: $c372508a6b96a969$var$addLocale,\n defaultConfig: $c372508a6b96a969$var$defaultConfig\n};\n//===========//\n// FUNCTIONS //\n//===========//\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */ function $c372508a6b96a969$var$addLocale(localeData) {\n // Normalizing input\n if (!Array.isArray(localeData)) localeData = [\n localeData\n ];\n for (const item of localeData){\n const { id: id, data: data } = item;\n $c372508a6b96a969$var$locales[id] = data;\n }\n}\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */ function $c372508a6b96a969$var$timeDeltaFactory(config) {\n // Initializing config by extending the default one\n config = Object.assign({}, $c372508a6b96a969$var$defaultConfig, config || {});\n return {\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */ format: function(firstDate, secondDate, options) {\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n return $c372508a6b96a969$var$format(firstDate, secondDate, options);\n }\n };\n}\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */ function $c372508a6b96a969$var$format(firstDate, secondDate, config) {\n $c372508a6b96a969$var$ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales\n });\n // Handling input arguments\n // -----\n if (!firstDate) throw new Error(\"Missing first date argument\");\n if (!secondDate) throw new Error(\"Missing second date argument\");\n // Calculating\n // -----\n const difference = $c372508a6b96a969$var$getDifference(firstDate, secondDate);\n const parts = [];\n for (const unit of difference){\n const [name, value] = unit;\n if (value > 0) parts.push($c372508a6b96a969$var$pluralize(name, value, config));\n if (parts.length >= config.span) break;\n }\n // Returning the string value\n return parts.join(config.delimiter);\n}\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */ function $c372508a6b96a969$var$ensureLocaleLoadedOrThrow(locale, options) {\n const { autoload: autoload } = options;\n if ($c372508a6b96a969$var$hasLocale(locale)) return;\n if ($9xs9T && autoload) $c372508a6b96a969$var$requireLocale(locale);\n else throw new Error(`Missing locale: ${locale}, you must load it manually before using it`);\n}\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */ function $c372508a6b96a969$var$hasLocale(localeId) {\n return Boolean($c372508a6b96a969$var$locales[localeId]);\n}\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */ function $c372508a6b96a969$var$requireLocale(localeId) {\n try {\n $c372508a6b96a969$var$addLocale(require(`../locales/${localeId}.js`));\n } catch (error) {\n throw Error(`Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`);\n }\n}\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$getDifference(firstDate, secondDate) {\n let difference = secondDate - firstDate;\n const results = [];\n $c372508a6b96a969$var$timeUnits.some(function(unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([\n name,\n value\n ]);\n if (difference <= 0) // Breaking the loop.\n return true;\n });\n return results;\n}\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */ function $c372508a6b96a969$var$pluralize(unit, value, config) {\n const unitTypeData = $c372508a6b96a969$var$getLocaleDataForUnitType(config);\n const unitString = $iWDmx.pluralize(config.locale, value, unitTypeData[unit]);\n return unitString.replace(\"{0}\", value);\n}\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$getLocaleDataForUnitType(config) {\n const localeData = $c372508a6b96a969$var$locales[config.locale];\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n // Making sure only unique items are present.\n lookupOrder = $c372508a6b96a969$var$arrayUnique(lookupOrder);\n let unitTypeData = null;\n lookupOrder.some(function(unitType) {\n if (\"undefined\" !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n if (null === unitTypeData) throw new Error(\"Can not find any unit type data for locale: \" + config.locale);\n return unitTypeData;\n}\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */ function $c372508a6b96a969$var$arrayUnique(array) {\n return Array.from(new Set(array));\n}\n\n});\nparcelRegister(\"iWDmx\", function(module, exports) {\n\nmodule.exports = (parcelRequire(\"eCDnw\"));\n\n});\n\nparcelRegister(\"9xs9T\", function(module, exports) {\n// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n\"use strict\";\nexports = module.exports = !!(typeof process !== \"undefined\" && process.versions && process.versions.node);\n\n});\n\n\nparcelRegister(\"4oHc1\", function(module, exports) {\n\n$parcel$export(module.exports, \"appendFile\", () => $5873751dcaaa8049$export$31f54b44f813a103);\n$parcel$export(module.exports, \"chmod\", () => $5873751dcaaa8049$export$fe07cae62e774a05);\n$parcel$export(module.exports, \"lstat\", () => $5873751dcaaa8049$export$c29f07eab13966a4);\n$parcel$export(module.exports, \"mkdir\", () => $5873751dcaaa8049$export$d9fa9670717a639d);\n$parcel$export(module.exports, \"open\", () => $5873751dcaaa8049$export$3ce6949f20cea765);\n$parcel$export(module.exports, \"readdir\", () => $5873751dcaaa8049$export$b1e07c405f785337);\n$parcel$export(module.exports, \"readFile\", () => $5873751dcaaa8049$export$72c04af63de9061a);\n$parcel$export(module.exports, \"readlink\", () => $5873751dcaaa8049$export$3d3ca76659ee9f39);\n$parcel$export(module.exports, \"stat\", () => $5873751dcaaa8049$export$f82f04a91eb6144a);\n$parcel$export(module.exports, \"symlink\", () => $5873751dcaaa8049$export$ed42c6f39f07f97);\n$parcel$export(module.exports, \"utimes\", () => $5873751dcaaa8049$export$d85d919a687a608f);\n$parcel$export(module.exports, \"writeFile\", () => $5873751dcaaa8049$export$552bfb764b5cd2b4);\n$parcel$export(module.exports, \"rm\", () => $5873751dcaaa8049$export$a1f77f18af3aebd5);\n\n\nvar $5873751dcaaa8049$export$2e2bcd8739ae039 = $d7DIX$fs.promises;\nconst { access: $5873751dcaaa8049$export$9bb0e144ba4929ca, appendFile: $5873751dcaaa8049$export$31f54b44f813a103, chmod: $5873751dcaaa8049$export$fe07cae62e774a05, chown: $5873751dcaaa8049$export$86560bc0b866a003, copyFile: $5873751dcaaa8049$export$c763efb2c06e223f, lchmod: $5873751dcaaa8049$export$4d4374c7ea08c49f, lchown: $5873751dcaaa8049$export$b34a65c440b523a2, link: $5873751dcaaa8049$export$9c30223ca0a664fb, lstat: $5873751dcaaa8049$export$c29f07eab13966a4, mkdir: $5873751dcaaa8049$export$d9fa9670717a639d, mkdtemp: $5873751dcaaa8049$export$bb440dc863a3b46a, open: $5873751dcaaa8049$export$3ce6949f20cea765, readdir: $5873751dcaaa8049$export$b1e07c405f785337, readFile: $5873751dcaaa8049$export$72c04af63de9061a, readlink: $5873751dcaaa8049$export$3d3ca76659ee9f39, realpath: $5873751dcaaa8049$export$9f2c45015a422c45, rename: $5873751dcaaa8049$export$7ac989ec0c9c279, rmdir: $5873751dcaaa8049$export$3f660f6332b9a01d, stat: $5873751dcaaa8049$export$f82f04a91eb6144a, symlink: $5873751dcaaa8049$export$ed42c6f39f07f97, truncate: $5873751dcaaa8049$export$6a506b36fdea397d, unlink: $5873751dcaaa8049$export$5e0808041271ce04, utimes: $5873751dcaaa8049$export$d85d919a687a608f, writeFile: $5873751dcaaa8049$export$552bfb764b5cd2b4 } = $d7DIX$fs.promises;\nconst $5873751dcaaa8049$export$a1f77f18af3aebd5 = \"rm\" in $d7DIX$fs.promises ? $d7DIX$fs.promises.rm : (0, $d7DIX$util.promisify)($d7DIX$fs.unlink);\n\n});\n\nparcelRegister(\"bGwAu\", function(module, exports) {\nmodule.exports = $881ce52b35d88d20$var$isexe;\n$881ce52b35d88d20$var$isexe.sync = $881ce52b35d88d20$var$sync;\n\nfunction $881ce52b35d88d20$var$checkPathExt(path, options) {\n var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;\n if (!pathext) return true;\n pathext = pathext.split(\";\");\n if (pathext.indexOf(\"\") !== -1) return true;\n for(var i = 0; i < pathext.length; i++){\n var p = pathext[i].toLowerCase();\n if (p && path.substr(-p.length).toLowerCase() === p) return true;\n }\n return false;\n}\nfunction $881ce52b35d88d20$var$checkStat(stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) return false;\n return $881ce52b35d88d20$var$checkPathExt(path, options);\n}\nfunction $881ce52b35d88d20$var$isexe(path, options, cb) {\n $d7DIX$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $881ce52b35d88d20$var$checkStat(stat, path, options));\n });\n}\nfunction $881ce52b35d88d20$var$sync(path, options) {\n return $881ce52b35d88d20$var$checkStat($d7DIX$fs.statSync(path), path, options);\n}\n\n});\n\nparcelRegister(\"d3qS7\", function(module, exports) {\nmodule.exports = $9810665efbefe038$var$isexe;\n$9810665efbefe038$var$isexe.sync = $9810665efbefe038$var$sync;\n\nfunction $9810665efbefe038$var$isexe(path, options, cb) {\n $d7DIX$fs.stat(path, function(er, stat) {\n cb(er, er ? false : $9810665efbefe038$var$checkStat(stat, options));\n });\n}\nfunction $9810665efbefe038$var$sync(path, options) {\n return $9810665efbefe038$var$checkStat($d7DIX$fs.statSync(path), options);\n}\nfunction $9810665efbefe038$var$checkStat(stat, options) {\n return stat.isFile() && $9810665efbefe038$var$checkMode(stat, options);\n}\nfunction $9810665efbefe038$var$checkMode(stat, options) {\n var mod = stat.mode;\n var uid = stat.uid;\n var gid = stat.gid;\n var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();\n var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();\n var u = parseInt(\"100\", 8);\n var g = parseInt(\"010\", 8);\n var o = parseInt(\"001\", 8);\n var ug = u | g;\n var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;\n return ret;\n}\n\n});\n\nparcelRegister(\"e1Rfe\", function(module, exports) {\n// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n \"SIGABRT\",\n \"SIGALRM\",\n \"SIGHUP\",\n \"SIGINT\",\n \"SIGTERM\"\n];\nif (process.platform !== \"win32\") module.exports.push(\"SIGVTALRM\", \"SIGXCPU\", \"SIGXFSZ\", \"SIGUSR2\", \"SIGTRAP\", \"SIGSYS\", \"SIGQUIT\", \"SIGIOT\");\nif (process.platform === \"linux\") module.exports.push(\"SIGIO\", \"SIGPOLL\", \"SIGPWR\", \"SIGSTKFLT\", \"SIGUNUSED\");\n\n});\n\nparcelRegister(\"bSUdl\", function(module, exports) {\n// just pre-load all the stuff that index.js lazily exports\n\nvar $9J5od = parcelRequire(\"9J5od\");\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $fx8Ft = parcelRequire(\"fx8Ft\");\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\n\nvar $l655J = parcelRequire(\"l655J\");\n\nvar $jzJq8 = parcelRequire(\"jzJq8\");\n\nvar $b1nH1 = parcelRequire(\"b1nH1\");\n\nvar $inG4j = parcelRequire(\"inG4j\");\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $h6Ixq = parcelRequire(\"h6Ixq\");\n\nvar $90ROK = parcelRequire(\"90ROK\");\n\nvar $8m4O1 = parcelRequire(\"8m4O1\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n\nvar $hYBTv = parcelRequire(\"hYBTv\");\n\nvar $ftcZo = parcelRequire(\"ftcZo\");\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\n\nvar $exBHN = parcelRequire(\"exBHN\");\n\nvar $lm1lq = parcelRequire(\"lm1lq\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $fXQFJ = parcelRequire(\"fXQFJ\");\n\nvar $bu0Ra = parcelRequire(\"bu0Ra\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $8gipG = parcelRequire(\"8gipG\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $eRnrA = parcelRequire(\"eRnrA\");\n\nvar $aAvhf = parcelRequire(\"aAvhf\");\n\nvar $iWAcu = parcelRequire(\"iWAcu\");\n\nvar $32TwK = parcelRequire(\"32TwK\");\n\nvar $194Ox = parcelRequire(\"194Ox\");\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\n\nvar $2yv5J = parcelRequire(\"2yv5J\");\n\nvar $46KXA = parcelRequire(\"46KXA\");\n\nvar $e3Thp = parcelRequire(\"e3Thp\");\n\nvar $8g51l = parcelRequire(\"8g51l\");\n\nvar $96YVB = parcelRequire(\"96YVB\");\nmodule.exports = {\n parse: $UI3XL,\n valid: $l655J,\n clean: $jzJq8,\n inc: $b1nH1,\n diff: $inG4j,\n major: $2aJGP,\n minor: $h6Ixq,\n patch: $90ROK,\n prerelease: $8m4O1,\n compare: $3uysP,\n rcompare: $hYBTv,\n compareLoose: $ftcZo,\n compareBuild: $1CIrW,\n sort: $exBHN,\n rsort: $lm1lq,\n gt: $cPjhN,\n lt: $avz3V,\n eq: $fXQFJ,\n neq: $bu0Ra,\n gte: $9xdhv,\n lte: $8aNoG,\n cmp: $8gipG,\n coerce: $l8hao,\n Comparator: $dSz9p,\n Range: $4FTez,\n satisfies: $2bU8Y,\n toComparators: $eRnrA,\n maxSatisfying: $aAvhf,\n minSatisfying: $iWAcu,\n minVersion: $32TwK,\n validRange: $194Ox,\n outside: $a8VZj,\n gtr: $2yv5J,\n ltr: $46KXA,\n intersects: $e3Thp,\n simplifyRange: $8g51l,\n subset: $96YVB,\n SemVer: $aMLnW,\n re: $9J5od.re,\n src: $9J5od.src,\n tokens: $9J5od.t,\n SEMVER_SPEC_VERSION: $3qgxS.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: $3qgxS.RELEASE_TYPES,\n compareIdentifiers: $fx8Ft.compareIdentifiers,\n rcompareIdentifiers: $fx8Ft.rcompareIdentifiers\n};\n\n});\nparcelRegister(\"9J5od\", function(module, exports) {\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH = $3qgxS.MAX_SAFE_COMPONENT_LENGTH;\nvar $714c7f42b7f0e43a$require$MAX_SAFE_BUILD_LENGTH = $3qgxS.MAX_SAFE_BUILD_LENGTH;\nvar $714c7f42b7f0e43a$require$MAX_LENGTH = $3qgxS.MAX_LENGTH;\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\nexports = module.exports = {};\n// The actual regexps go on exports.re\nconst re = exports.re = [];\nconst safeRe = exports.safeRe = [];\nconst src = exports.src = [];\nconst t = exports.t = {};\nlet R = 0;\nconst LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n $714c7f42b7f0e43a$require$MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n $714c7f42b7f0e43a$require$MAX_SAFE_BUILD_LENGTH\n ]\n];\nconst makeSafeRegex = (value)=>{\n for (const [token, max] of safeRegexReplacements)value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n return value;\n};\nconst createToken = (name, value, isGlobal)=>{\n const safe = makeSafeRegex(value);\n const index = R++;\n $3CqZ1(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? \"g\" : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : undefined);\n};\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ncreateToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\ncreateToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ncreateToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n// ## Main Version\n// Three dot-separated numeric identifiers.\ncreateToken(\"MAINVERSION\", `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})\\\\.` + `(${src[t.NUMERICIDENTIFIER]})`);\ncreateToken(\"MAINVERSIONLOOSE\", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ncreateToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);\ncreateToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ncreateToken(\"PRERELEASE\", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`);\ncreateToken(\"PRERELEASELOOSE\", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ncreateToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ncreateToken(\"BUILD\", `(?:\\\\+(${src[t.BUILDIDENTIFIER]}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`);\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ncreateToken(\"FULLPLAIN\", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);\ncreateToken(\"FULL\", `^${src[t.FULLPLAIN]}$`);\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);\ncreateToken(\"LOOSE\", `^${src[t.LOOSEPLAIN]}$`);\ncreateToken(\"GTLT\", \"((?:<|>)?=?)\");\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\ncreateToken(\"XRANGEIDENTIFIER\", `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`);\ncreateToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);\ncreateToken(\"XRANGE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"XRANGELOOSE\", `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`);\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\\\.(\\\\d{1,${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\\\.(\\\\d{1,${$714c7f42b7f0e43a$require$MAX_SAFE_COMPONENT_LENGTH}}))?`);\ncreateToken(\"COERCE\", `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`);\ncreateToken(\"COERCEFULL\", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\\\d])`);\ncreateToken(\"COERCERTL\", src[t.COERCE], true);\ncreateToken(\"COERCERTLFULL\", src[t.COERCEFULL], true);\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken(\"LONETILDE\", \"(?:~>?)\");\ncreateToken(\"TILDETRIM\", `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true);\nexports.tildeTrimReplace = \"$1~\";\ncreateToken(\"TILDE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"TILDELOOSE\", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken(\"LONECARET\", \"(?:\\\\^)\");\ncreateToken(\"CARETTRIM\", `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true);\nexports.caretTrimReplace = \"$1^\";\ncreateToken(\"CARET\", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);\ncreateToken(\"CARETLOOSE\", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken(\"COMPARATORLOOSE\", `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`);\ncreateToken(\"COMPARATOR\", `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`);\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);\nexports.comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken(\"HYPHENRANGE\", `^\\\\s*(${src[t.XRANGEPLAIN]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\\\s*$`);\ncreateToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s+-\\\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\\\s*$`);\n// Star ranges basically just allow anything at all.\ncreateToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n// >=0.0.0 is like a star\ncreateToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\ncreateToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n\n});\nparcelRegister(\"3qgxS\", function(module, exports) {\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst $27e0a264f9f9f368$var$SEMVER_SPEC_VERSION = \"2.0.0\";\nconst $27e0a264f9f9f368$var$MAX_LENGTH = 256;\nconst $27e0a264f9f9f368$var$MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nconst $27e0a264f9f9f368$var$MAX_SAFE_COMPONENT_LENGTH = 16;\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst $27e0a264f9f9f368$var$MAX_SAFE_BUILD_LENGTH = $27e0a264f9f9f368$var$MAX_LENGTH - 6;\nconst $27e0a264f9f9f368$var$RELEASE_TYPES = [\n \"major\",\n \"premajor\",\n \"minor\",\n \"preminor\",\n \"patch\",\n \"prepatch\",\n \"prerelease\"\n];\nmodule.exports = {\n MAX_LENGTH: $27e0a264f9f9f368$var$MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: $27e0a264f9f9f368$var$MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: $27e0a264f9f9f368$var$MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: $27e0a264f9f9f368$var$MAX_SAFE_INTEGER,\n RELEASE_TYPES: $27e0a264f9f9f368$var$RELEASE_TYPES,\n SEMVER_SPEC_VERSION: $27e0a264f9f9f368$var$SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};\n\n});\n\nparcelRegister(\"3CqZ1\", function(module, exports) {\nconst $2a29da066bedbbfc$var$debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args)=>console.error(\"SEMVER\", ...args) : ()=>{};\nmodule.exports = $2a29da066bedbbfc$var$debug;\n\n});\n\n\nparcelRegister(\"aMLnW\", function(module, exports) {\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $7da324c382d6a88a$require$MAX_LENGTH = $3qgxS.MAX_LENGTH;\nvar $7da324c382d6a88a$require$MAX_SAFE_INTEGER = $3qgxS.MAX_SAFE_INTEGER;\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $7da324c382d6a88a$require$re = $9J5od.safeRe;\nvar $7da324c382d6a88a$require$t = $9J5od.t;\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $fx8Ft = parcelRequire(\"fx8Ft\");\nvar $7da324c382d6a88a$require$compareIdentifiers = $fx8Ft.compareIdentifiers;\nclass $7da324c382d6a88a$var$SemVer {\n constructor(version, options){\n options = $6omBt(options);\n if (version instanceof $7da324c382d6a88a$var$SemVer) {\n if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n if (version.length > $7da324c382d6a88a$require$MAX_LENGTH) throw new TypeError(`version is longer than ${$7da324c382d6a88a$require$MAX_LENGTH} characters`);\n $3CqZ1(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease;\n const m = version.trim().match(options.loose ? $7da324c382d6a88a$require$re[$7da324c382d6a88a$require$t.LOOSE] : $7da324c382d6a88a$require$re[$7da324c382d6a88a$require$t.FULL]);\n if (!m) throw new TypeError(`Invalid Version: ${version}`);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > $7da324c382d6a88a$require$MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map((id)=>{\n if (/^[0-9]+$/.test(id)) {\n const num = +id;\n if (num >= 0 && num < $7da324c382d6a88a$require$MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n }\n format() {\n this.version = `${this.major}.${this.minor}.${this.patch}`;\n if (this.prerelease.length) this.version += `-${this.prerelease.join(\".\")}`;\n return this.version;\n }\n toString() {\n return this.version;\n }\n compare(other) {\n $3CqZ1(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) {\n if (typeof other === \"string\" && other === this.version) return 0;\n other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n }\n if (other.version === this.version) return 0;\n return this.compareMain(other) || this.comparePre(other);\n }\n compareMain(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n return $7da324c382d6a88a$require$compareIdentifiers(this.major, other.major) || $7da324c382d6a88a$require$compareIdentifiers(this.minor, other.minor) || $7da324c382d6a88a$require$compareIdentifiers(this.patch, other.patch);\n }\n comparePre(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n let i = 0;\n do {\n const a = this.prerelease[i];\n const b = other.prerelease[i];\n $3CqZ1(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $7da324c382d6a88a$require$compareIdentifiers(a, b);\n }while (++i);\n }\n compareBuild(other) {\n if (!(other instanceof $7da324c382d6a88a$var$SemVer)) other = new $7da324c382d6a88a$var$SemVer(other, this.options);\n let i = 0;\n do {\n const a = this.build[i];\n const b = other.build[i];\n $3CqZ1(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return $7da324c382d6a88a$require$compareIdentifiers(a, b);\n }while (++i);\n }\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc(release, identifier, identifierBase) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier, identifierBase);\n this.inc(\"pre\", identifier, identifierBase);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n {\n const base = Number(identifierBase) ? 1 : 0;\n if (!identifier && identifierBase === false) throw new Error(\"invalid increment argument: identifier is empty\");\n if (this.prerelease.length === 0) this.prerelease = [\n base\n ];\n else {\n let i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join(\".\") && identifierBase === false) throw new Error(\"invalid increment argument: identifier already exists\");\n this.prerelease.push(base);\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [\n identifier,\n base\n ];\n if (identifierBase === false) prerelease = [\n identifier\n ];\n if ($7da324c382d6a88a$require$compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) this.prerelease = prerelease;\n } else this.prerelease = prerelease;\n }\n break;\n }\n default:\n throw new Error(`invalid increment argument: ${release}`);\n }\n this.raw = this.format();\n if (this.build.length) this.raw += `+${this.build.join(\".\")}`;\n return this;\n }\n}\nmodule.exports = $7da324c382d6a88a$var$SemVer;\n\n});\nparcelRegister(\"6omBt\", function(module, exports) {\n// parse out just the options we care about\nconst $4a7684854438b3a8$var$looseOption = Object.freeze({\n loose: true\n});\nconst $4a7684854438b3a8$var$emptyOpts = Object.freeze({});\nconst $4a7684854438b3a8$var$parseOptions = (options)=>{\n if (!options) return $4a7684854438b3a8$var$emptyOpts;\n if (typeof options !== \"object\") return $4a7684854438b3a8$var$looseOption;\n return options;\n};\nmodule.exports = $4a7684854438b3a8$var$parseOptions;\n\n});\n\nparcelRegister(\"fx8Ft\", function(module, exports) {\nconst $b4f0a9608bfa578c$var$numeric = /^[0-9]+$/;\nconst $b4f0a9608bfa578c$var$compareIdentifiers = (a, b)=>{\n const anum = $b4f0a9608bfa578c$var$numeric.test(a);\n const bnum = $b4f0a9608bfa578c$var$numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\nconst $b4f0a9608bfa578c$var$rcompareIdentifiers = (a, b)=>$b4f0a9608bfa578c$var$compareIdentifiers(b, a);\nmodule.exports = {\n compareIdentifiers: $b4f0a9608bfa578c$var$compareIdentifiers,\n rcompareIdentifiers: $b4f0a9608bfa578c$var$rcompareIdentifiers\n};\n\n});\n\n\nparcelRegister(\"UI3XL\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $0aa7690e2bf9b583$var$parse = (version, options, throwErrors = false)=>{\n if (version instanceof $aMLnW) return version;\n try {\n return new $aMLnW(version, options);\n } catch (er) {\n if (!throwErrors) return null;\n throw er;\n }\n};\nmodule.exports = $0aa7690e2bf9b583$var$parse;\n\n});\n\nparcelRegister(\"l655J\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $f5be1b9124e8a995$var$valid = (version, options)=>{\n const v = $UI3XL(version, options);\n return v ? v.version : null;\n};\nmodule.exports = $f5be1b9124e8a995$var$valid;\n\n});\n\nparcelRegister(\"jzJq8\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $e40484ca80391047$var$clean = (version, options)=>{\n const s = $UI3XL(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n};\nmodule.exports = $e40484ca80391047$var$clean;\n\n});\n\nparcelRegister(\"b1nH1\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $80622aa1b4dfbc9d$var$inc = (version, release, options, identifier, identifierBase)=>{\n if (typeof options === \"string\") {\n identifierBase = identifier;\n identifier = options;\n options = undefined;\n }\n try {\n return new $aMLnW(version instanceof $aMLnW ? version.version : version, options).inc(release, identifier, identifierBase).version;\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $80622aa1b4dfbc9d$var$inc;\n\n});\n\nparcelRegister(\"inG4j\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $d61b01eb687284bf$var$diff = (version1, version2)=>{\n const v1 = $UI3XL(version1, null, true);\n const v2 = $UI3XL(version2, null, true);\n const comparison = v1.compare(v2);\n if (comparison === 0) return null;\n const v1Higher = comparison > 0;\n const highVersion = v1Higher ? v1 : v2;\n const lowVersion = v1Higher ? v2 : v1;\n const highHasPre = !!highVersion.prerelease.length;\n const lowHasPre = !!lowVersion.prerelease.length;\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) return \"major\";\n // Otherwise it can be determined by checking the high version\n if (highVersion.patch) // anything higher than a patch bump would result in the wrong version\n return \"patch\";\n if (highVersion.minor) // anything higher than a minor bump would result in the wrong version\n return \"minor\";\n // bumping major/minor/patch all have same result\n return \"major\";\n }\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? \"pre\" : \"\";\n if (v1.major !== v2.major) return prefix + \"major\";\n if (v1.minor !== v2.minor) return prefix + \"minor\";\n if (v1.patch !== v2.patch) return prefix + \"patch\";\n // high and low are preleases\n return \"prerelease\";\n};\nmodule.exports = $d61b01eb687284bf$var$diff;\n\n});\n\nparcelRegister(\"2aJGP\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $194ff4fade75e049$var$major = (a, loose)=>new $aMLnW(a, loose).major;\nmodule.exports = $194ff4fade75e049$var$major;\n\n});\n\nparcelRegister(\"h6Ixq\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $c7458b89940ed03b$var$minor = (a, loose)=>new $aMLnW(a, loose).minor;\nmodule.exports = $c7458b89940ed03b$var$minor;\n\n});\n\nparcelRegister(\"90ROK\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $68fddc2c226bc011$var$patch = (a, loose)=>new $aMLnW(a, loose).patch;\nmodule.exports = $68fddc2c226bc011$var$patch;\n\n});\n\nparcelRegister(\"8m4O1\", function(module, exports) {\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\nconst $61541b255fd4fd5d$var$prerelease = (version, options)=>{\n const parsed = $UI3XL(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n};\nmodule.exports = $61541b255fd4fd5d$var$prerelease;\n\n});\n\nparcelRegister(\"3uysP\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $28aee843a4df7f72$var$compare = (a, b, loose)=>new $aMLnW(a, loose).compare(new $aMLnW(b, loose));\nmodule.exports = $28aee843a4df7f72$var$compare;\n\n});\n\nparcelRegister(\"hYBTv\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $d1656f45798b406b$var$rcompare = (a, b, loose)=>$3uysP(b, a, loose);\nmodule.exports = $d1656f45798b406b$var$rcompare;\n\n});\n\nparcelRegister(\"ftcZo\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $b433a3da1df2f705$var$compareLoose = (a, b)=>$3uysP(a, b, true);\nmodule.exports = $b433a3da1df2f705$var$compareLoose;\n\n});\n\nparcelRegister(\"1CIrW\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\nconst $12ebd1da918dc016$var$compareBuild = (a, b, loose)=>{\n const versionA = new $aMLnW(a, loose);\n const versionB = new $aMLnW(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\nmodule.exports = $12ebd1da918dc016$var$compareBuild;\n\n});\n\nparcelRegister(\"exBHN\", function(module, exports) {\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\nconst $a96165462e76b234$var$sort = (list, loose)=>list.sort((a, b)=>$1CIrW(a, b, loose));\nmodule.exports = $a96165462e76b234$var$sort;\n\n});\n\nparcelRegister(\"lm1lq\", function(module, exports) {\n\nvar $1CIrW = parcelRequire(\"1CIrW\");\nconst $f8bcb207b3a73186$var$rsort = (list, loose)=>list.sort((a, b)=>$1CIrW(b, a, loose));\nmodule.exports = $f8bcb207b3a73186$var$rsort;\n\n});\n\nparcelRegister(\"cPjhN\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $0268ec36b6100c2c$var$gt = (a, b, loose)=>$3uysP(a, b, loose) > 0;\nmodule.exports = $0268ec36b6100c2c$var$gt;\n\n});\n\nparcelRegister(\"avz3V\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $7a67ff4b4e69975e$var$lt = (a, b, loose)=>$3uysP(a, b, loose) < 0;\nmodule.exports = $7a67ff4b4e69975e$var$lt;\n\n});\n\nparcelRegister(\"fXQFJ\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $b9f539425bdf4b62$var$eq = (a, b, loose)=>$3uysP(a, b, loose) === 0;\nmodule.exports = $b9f539425bdf4b62$var$eq;\n\n});\n\nparcelRegister(\"bu0Ra\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $85c32928d6534f6b$var$neq = (a, b, loose)=>$3uysP(a, b, loose) !== 0;\nmodule.exports = $85c32928d6534f6b$var$neq;\n\n});\n\nparcelRegister(\"9xdhv\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $6f117f82d38ad331$var$gte = (a, b, loose)=>$3uysP(a, b, loose) >= 0;\nmodule.exports = $6f117f82d38ad331$var$gte;\n\n});\n\nparcelRegister(\"8aNoG\", function(module, exports) {\n\nvar $3uysP = parcelRequire(\"3uysP\");\nconst $5f359321e34a81b1$var$lte = (a, b, loose)=>$3uysP(a, b, loose) <= 0;\nmodule.exports = $5f359321e34a81b1$var$lte;\n\n});\n\nparcelRegister(\"8gipG\", function(module, exports) {\n\nvar $fXQFJ = parcelRequire(\"fXQFJ\");\n\nvar $bu0Ra = parcelRequire(\"bu0Ra\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\nconst $603e19dc5fbb1a16$var$cmp = (a, op, b, loose)=>{\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return $fXQFJ(a, b, loose);\n case \"!=\":\n return $bu0Ra(a, b, loose);\n case \">\":\n return $cPjhN(a, b, loose);\n case \">=\":\n return $9xdhv(a, b, loose);\n case \"<\":\n return $avz3V(a, b, loose);\n case \"<=\":\n return $8aNoG(a, b, loose);\n default:\n throw new TypeError(`Invalid operator: ${op}`);\n }\n};\nmodule.exports = $603e19dc5fbb1a16$var$cmp;\n\n});\n\nparcelRegister(\"l8hao\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $UI3XL = parcelRequire(\"UI3XL\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $f627a93f3b8c4872$require$re = $9J5od.safeRe;\nvar $f627a93f3b8c4872$require$t = $9J5od.t;\nconst $f627a93f3b8c4872$var$coerce = (version, options)=>{\n if (version instanceof $aMLnW) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n let match = null;\n if (!options.rtl) match = version.match(options.includePrerelease ? $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCEFULL] : $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCERTLFULL] : $f627a93f3b8c4872$require$re[$f627a93f3b8c4872$require$t.COERCERTL];\n let next;\n while((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1;\n }\n if (match === null) return null;\n const major = match[2];\n const minor = match[3] || \"0\";\n const patch = match[4] || \"0\";\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : \"\";\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : \"\";\n return $UI3XL(`${major}.${minor}.${patch}${prerelease}${build}`, options);\n};\nmodule.exports = $f627a93f3b8c4872$var$coerce;\n\n});\n\nparcelRegister(\"dSz9p\", function(module, exports) {\nconst $a1ab95b4a6509cb8$var$ANY = Symbol(\"SemVer ANY\");\n// hoisted class for cyclic dependency\nclass $a1ab95b4a6509cb8$var$Comparator {\n static get ANY() {\n return $a1ab95b4a6509cb8$var$ANY;\n }\n constructor(comp, options){\n options = $6omBt(options);\n if (comp instanceof $a1ab95b4a6509cb8$var$Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n comp = comp.trim().split(/\\s+/).join(\" \");\n $3CqZ1(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === $a1ab95b4a6509cb8$var$ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n $3CqZ1(\"comp\", this);\n }\n parse(comp) {\n const r = this.options.loose ? $a1ab95b4a6509cb8$require$re[$a1ab95b4a6509cb8$require$t.COMPARATORLOOSE] : $a1ab95b4a6509cb8$require$re[$a1ab95b4a6509cb8$require$t.COMPARATOR];\n const m = comp.match(r);\n if (!m) throw new TypeError(`Invalid comparator: ${comp}`);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = $a1ab95b4a6509cb8$var$ANY;\n else this.semver = new $aMLnW(m[2], this.options.loose);\n }\n toString() {\n return this.value;\n }\n test(version) {\n $3CqZ1(\"Comparator.test\", version, this.options.loose);\n if (this.semver === $a1ab95b4a6509cb8$var$ANY || version === $a1ab95b4a6509cb8$var$ANY) return true;\n if (typeof version === \"string\") try {\n version = new $aMLnW(version, this.options);\n } catch (er) {\n return false;\n }\n return $8gipG(version, this.operator, this.semver, this.options);\n }\n intersects(comp, options) {\n if (!(comp instanceof $a1ab95b4a6509cb8$var$Comparator)) throw new TypeError(\"a Comparator is required\");\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n return new $4FTez(comp.value, options).test(this.value);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n return new $4FTez(this.value, options).test(comp.semver);\n }\n options = $6omBt(options);\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease && (this.value === \"<0.0.0-0\" || comp.value === \"<0.0.0-0\")) return false;\n if (!options.includePrerelease && (this.value.startsWith(\"<0.0.0\") || comp.value.startsWith(\"<0.0.0\"))) return false;\n // Same direction increasing (> or >=)\n if (this.operator.startsWith(\">\") && comp.operator.startsWith(\">\")) return true;\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith(\"<\") && comp.operator.startsWith(\"<\")) return true;\n // same SemVer and both sides are inclusive (<= or >=)\n if (this.semver.version === comp.semver.version && this.operator.includes(\"=\") && comp.operator.includes(\"=\")) return true;\n // opposite directions less than\n if ($8gipG(this.semver, \"<\", comp.semver, options) && this.operator.startsWith(\">\") && comp.operator.startsWith(\"<\")) return true;\n // opposite directions greater than\n if ($8gipG(this.semver, \">\", comp.semver, options) && this.operator.startsWith(\"<\") && comp.operator.startsWith(\">\")) return true;\n return false;\n }\n}\nmodule.exports = $a1ab95b4a6509cb8$var$Comparator;\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $a1ab95b4a6509cb8$require$re = $9J5od.safeRe;\nvar $a1ab95b4a6509cb8$require$t = $9J5od.t;\n\nvar $8gipG = parcelRequire(\"8gipG\");\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\n});\nparcelRegister(\"4FTez\", function(module, exports) {\n// hoisted class for cyclic dependency\nclass $3675d6171478137e$var$Range {\n constructor(range, options){\n options = $6omBt(options);\n if (range instanceof $3675d6171478137e$var$Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new $3675d6171478137e$var$Range(range.raw, options);\n }\n if (range instanceof $dSz9p) {\n // just put it in the set and return\n this.raw = range.value;\n this.set = [\n [\n range\n ]\n ];\n this.format();\n return this;\n }\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split on ||\n this.set = this.raw.split(\"||\")// map the range to a 2d array of comparators\n .map((r)=>this.parseRange(r.trim()))// throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter((c)=>c.length);\n if (!this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0];\n this.set = this.set.filter((c)=>!$3675d6171478137e$var$isNullSet(c[0]));\n if (this.set.length === 0) this.set = [\n first\n ];\n else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set)if (c.length === 1 && $3675d6171478137e$var$isAny(c[0])) {\n this.set = [\n c\n ];\n break;\n }\n }\n }\n this.format();\n }\n format() {\n this.range = this.set.map((comps)=>comps.join(\" \").trim()).join(\"||\").trim();\n return this.range;\n }\n toString() {\n return this.range;\n }\n parseRange(range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts = (this.options.includePrerelease && $3675d6171478137e$require$FLAG_INCLUDE_PRERELEASE) | (this.options.loose && $3675d6171478137e$require$FLAG_LOOSE);\n const memoKey = memoOpts + \":\" + range;\n const cached = $3675d6171478137e$var$cache.get(memoKey);\n if (cached) return cached;\n const loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.HYPHENRANGELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.HYPHENRANGE];\n range = range.replace(hr, $3675d6171478137e$var$hyphenReplace(this.options.includePrerelease));\n $3CqZ1(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.COMPARATORTRIM], $3675d6171478137e$require$comparatorTrimReplace);\n $3CqZ1(\"comparator trim\", range);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDETRIM], $3675d6171478137e$require$tildeTrimReplace);\n $3CqZ1(\"tilde trim\", range);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.CARETTRIM], $3675d6171478137e$require$caretTrimReplace);\n $3CqZ1(\"caret trim\", range);\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n let rangeList = range.split(\" \").map((comp)=>$3675d6171478137e$var$parseComparator(comp, this.options)).join(\" \").split(/\\s+/)// >=0.0.0 is equivalent to *\n .map((comp)=>$3675d6171478137e$var$replaceGTE0(comp, this.options));\n if (loose) // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter((comp)=>{\n $3CqZ1(\"loose invalid filter\", comp, this.options);\n return !!comp.match($3675d6171478137e$require$re[$3675d6171478137e$require$t.COMPARATORLOOSE]);\n });\n $3CqZ1(\"range list\", rangeList);\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map();\n const comparators = rangeList.map((comp)=>new $dSz9p(comp, this.options));\n for (const comp of comparators){\n if ($3675d6171478137e$var$isNullSet(comp)) return [\n comp\n ];\n rangeMap.set(comp.value, comp);\n }\n if (rangeMap.size > 1 && rangeMap.has(\"\")) rangeMap.delete(\"\");\n const result = [\n ...rangeMap.values()\n ];\n $3675d6171478137e$var$cache.set(memoKey, result);\n return result;\n }\n intersects(range, options) {\n if (!(range instanceof $3675d6171478137e$var$Range)) throw new TypeError(\"a Range is required\");\n return this.set.some((thisComparators)=>{\n return $3675d6171478137e$var$isSatisfiable(thisComparators, options) && range.set.some((rangeComparators)=>{\n return $3675d6171478137e$var$isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator)=>{\n return rangeComparators.every((rangeComparator)=>{\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n }\n // if ANY of the sets match ALL of its comparators, then pass\n test(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new $aMLnW(version, this.options);\n } catch (er) {\n return false;\n }\n for(let i = 0; i < this.set.length; i++){\n if ($3675d6171478137e$var$testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n }\n}\nmodule.exports = $3675d6171478137e$var$Range;\n\nvar $eGCLk = parcelRequire(\"eGCLk\");\nconst $3675d6171478137e$var$cache = new $eGCLk({\n max: 1000\n});\n\nvar $6omBt = parcelRequire(\"6omBt\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\n\nvar $3CqZ1 = parcelRequire(\"3CqZ1\");\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $9J5od = parcelRequire(\"9J5od\");\nvar $3675d6171478137e$require$re = $9J5od.safeRe;\nvar $3675d6171478137e$require$t = $9J5od.t;\nvar $3675d6171478137e$require$comparatorTrimReplace = $9J5od.comparatorTrimReplace;\nvar $3675d6171478137e$require$tildeTrimReplace = $9J5od.tildeTrimReplace;\nvar $3675d6171478137e$require$caretTrimReplace = $9J5od.caretTrimReplace;\n\nvar $3qgxS = parcelRequire(\"3qgxS\");\nvar $3675d6171478137e$require$FLAG_INCLUDE_PRERELEASE = $3qgxS.FLAG_INCLUDE_PRERELEASE;\nvar $3675d6171478137e$require$FLAG_LOOSE = $3qgxS.FLAG_LOOSE;\nconst $3675d6171478137e$var$isNullSet = (c)=>c.value === \"<0.0.0-0\";\nconst $3675d6171478137e$var$isAny = (c)=>c.value === \"\";\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst $3675d6171478137e$var$isSatisfiable = (comparators, options)=>{\n let result = true;\n const remainingComparators = comparators.slice();\n let testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every((otherComparator)=>{\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n};\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst $3675d6171478137e$var$parseComparator = (comp, options)=>{\n $3CqZ1(\"comp\", comp, options);\n comp = $3675d6171478137e$var$replaceCarets(comp, options);\n $3CqZ1(\"caret\", comp);\n comp = $3675d6171478137e$var$replaceTildes(comp, options);\n $3CqZ1(\"tildes\", comp);\n comp = $3675d6171478137e$var$replaceXRanges(comp, options);\n $3CqZ1(\"xrange\", comp);\n comp = $3675d6171478137e$var$replaceStars(comp, options);\n $3CqZ1(\"stars\", comp);\n return comp;\n};\nconst $3675d6171478137e$var$isX = (id)=>!id || id.toLowerCase() === \"x\" || id === \"*\";\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst $3675d6171478137e$var$replaceTildes = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceTilde(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceTilde = (comp, options)=>{\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.TILDE];\n return comp.replace(r, (_, M, m, p, pr)=>{\n $3CqZ1(\"tilde\", comp, _, M, m, p, pr);\n let ret;\n if ($3675d6171478137e$var$isX(M)) ret = \"\";\n else if ($3675d6171478137e$var$isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(p)) // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;\n else if (pr) {\n $3CqZ1(\"replaceTilde pr\", pr);\n ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;\n $3CqZ1(\"tilde return\", ret);\n return ret;\n });\n};\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst $3675d6171478137e$var$replaceCarets = (comp, options)=>{\n return comp.trim().split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceCaret(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceCaret = (comp, options)=>{\n $3CqZ1(\"caret\", comp, options);\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.CARETLOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.CARET];\n const z = options.includePrerelease ? \"-0\" : \"\";\n return comp.replace(r, (_, M, m, p, pr)=>{\n $3CqZ1(\"caret\", comp, _, M, m, p, pr);\n let ret;\n if ($3675d6171478137e$var$isX(M)) ret = \"\";\n else if ($3675d6171478137e$var$isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(p)) {\n if (M === \"0\") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;\n else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;\n } else if (pr) {\n $3CqZ1(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;\n } else {\n $3CqZ1(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;\n else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;\n } else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;\n }\n $3CqZ1(\"caret return\", ret);\n return ret;\n });\n};\nconst $3675d6171478137e$var$replaceXRanges = (comp, options)=>{\n $3CqZ1(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map((c)=>$3675d6171478137e$var$replaceXRange(c, options)).join(\" \");\n};\nconst $3675d6171478137e$var$replaceXRange = (comp, options)=>{\n comp = comp.trim();\n const r = options.loose ? $3675d6171478137e$require$re[$3675d6171478137e$require$t.XRANGELOOSE] : $3675d6171478137e$require$re[$3675d6171478137e$require$t.XRANGE];\n return comp.replace(r, (ret, gtlt, M, m, p, pr)=>{\n $3CqZ1(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n const xM = $3675d6171478137e$var$isX(M);\n const xm = xM || $3675d6171478137e$var$isX(m);\n const xp = xm || $3675d6171478137e$var$isX(p);\n const anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n if (gtlt === \"<\") pr = \"-0\";\n ret = `${gtlt + M}.${m}.${p}${pr}`;\n } else if (xm) ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;\n else if (xp) ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;\n $3CqZ1(\"xRange return\", ret);\n return ret;\n });\n};\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst $3675d6171478137e$var$replaceStars = (comp, options)=>{\n $3CqZ1(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace($3675d6171478137e$require$re[$3675d6171478137e$require$t.STAR], \"\");\n};\nconst $3675d6171478137e$var$replaceGTE0 = (comp, options)=>{\n $3CqZ1(\"replaceGTE0\", comp, options);\n return comp.trim().replace($3675d6171478137e$require$re[options.includePrerelease ? $3675d6171478137e$require$t.GTE0PRE : $3675d6171478137e$require$t.GTE0], \"\");\n};\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst $3675d6171478137e$var$hyphenReplace = (incPr)=>($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb)=>{\n if ($3675d6171478137e$var$isX(fM)) from = \"\";\n else if ($3675d6171478137e$var$isX(fm)) from = `>=${fM}.0.0${incPr ? \"-0\" : \"\"}`;\n else if ($3675d6171478137e$var$isX(fp)) from = `>=${fM}.${fm}.0${incPr ? \"-0\" : \"\"}`;\n else if (fpr) from = `>=${from}`;\n else from = `>=${from}${incPr ? \"-0\" : \"\"}`;\n if ($3675d6171478137e$var$isX(tM)) to = \"\";\n else if ($3675d6171478137e$var$isX(tm)) to = `<${+tM + 1}.0.0-0`;\n else if ($3675d6171478137e$var$isX(tp)) to = `<${tM}.${+tm + 1}.0-0`;\n else if (tpr) to = `<=${tM}.${tm}.${tp}-${tpr}`;\n else if (incPr) to = `<${tM}.${tm}.${+tp + 1}-0`;\n else to = `<=${to}`;\n return `${from} ${to}`.trim();\n };\nconst $3675d6171478137e$var$testSet = (set, version, options)=>{\n for(let i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(let i = 0; i < set.length; i++){\n $3CqZ1(set[i].semver);\n if (set[i].semver === $dSz9p.ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n};\n\n});\nparcelRegister(\"eGCLk\", function(module, exports) {\n\"use strict\";\n\nvar $JD6z9 = parcelRequire(\"JD6z9\");\nconst $ab130e548a2d4b38$var$MAX = Symbol(\"max\");\nconst $ab130e548a2d4b38$var$LENGTH = Symbol(\"length\");\nconst $ab130e548a2d4b38$var$LENGTH_CALCULATOR = Symbol(\"lengthCalculator\");\nconst $ab130e548a2d4b38$var$ALLOW_STALE = Symbol(\"allowStale\");\nconst $ab130e548a2d4b38$var$MAX_AGE = Symbol(\"maxAge\");\nconst $ab130e548a2d4b38$var$DISPOSE = Symbol(\"dispose\");\nconst $ab130e548a2d4b38$var$NO_DISPOSE_ON_SET = Symbol(\"noDisposeOnSet\");\nconst $ab130e548a2d4b38$var$LRU_LIST = Symbol(\"lruList\");\nconst $ab130e548a2d4b38$var$CACHE = Symbol(\"cache\");\nconst $ab130e548a2d4b38$var$UPDATE_AGE_ON_GET = Symbol(\"updateAgeOnGet\");\nconst $ab130e548a2d4b38$var$naiveLength = ()=>1;\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass $ab130e548a2d4b38$var$LRUCache {\n constructor(options){\n if (typeof options === \"number\") options = {\n max: options\n };\n if (!options) options = {};\n if (options.max && (typeof options.max !== \"number\" || options.max < 0)) throw new TypeError(\"max must be a non-negative number\");\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[$ab130e548a2d4b38$var$MAX] = options.max || Infinity;\n const lc = options.length || $ab130e548a2d4b38$var$naiveLength;\n this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR] = typeof lc !== \"function\" ? $ab130e548a2d4b38$var$naiveLength : lc;\n this[$ab130e548a2d4b38$var$ALLOW_STALE] = options.stale || false;\n if (options.maxAge && typeof options.maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n this[$ab130e548a2d4b38$var$MAX_AGE] = options.maxAge || 0;\n this[$ab130e548a2d4b38$var$DISPOSE] = options.dispose;\n this[$ab130e548a2d4b38$var$NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;\n this[$ab130e548a2d4b38$var$UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;\n this.reset();\n }\n // resize the cache when the max changes.\n set max(mL) {\n if (typeof mL !== \"number\" || mL < 0) throw new TypeError(\"max must be a non-negative number\");\n this[$ab130e548a2d4b38$var$MAX] = mL || Infinity;\n $ab130e548a2d4b38$var$trim(this);\n }\n get max() {\n return this[$ab130e548a2d4b38$var$MAX];\n }\n set allowStale(allowStale) {\n this[$ab130e548a2d4b38$var$ALLOW_STALE] = !!allowStale;\n }\n get allowStale() {\n return this[$ab130e548a2d4b38$var$ALLOW_STALE];\n }\n set maxAge(mA) {\n if (typeof mA !== \"number\") throw new TypeError(\"maxAge must be a non-negative number\");\n this[$ab130e548a2d4b38$var$MAX_AGE] = mA;\n $ab130e548a2d4b38$var$trim(this);\n }\n get maxAge() {\n return this[$ab130e548a2d4b38$var$MAX_AGE];\n }\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator(lC) {\n if (typeof lC !== \"function\") lC = $ab130e548a2d4b38$var$naiveLength;\n if (lC !== this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR]) {\n this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR] = lC;\n this[$ab130e548a2d4b38$var$LENGTH] = 0;\n this[$ab130e548a2d4b38$var$LRU_LIST].forEach((hit)=>{\n hit.length = this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR](hit.value, hit.key);\n this[$ab130e548a2d4b38$var$LENGTH] += hit.length;\n });\n }\n $ab130e548a2d4b38$var$trim(this);\n }\n get lengthCalculator() {\n return this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR];\n }\n get length() {\n return this[$ab130e548a2d4b38$var$LENGTH];\n }\n get itemCount() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].length;\n }\n rforEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$ab130e548a2d4b38$var$LRU_LIST].tail; walker !== null;){\n const prev = walker.prev;\n $ab130e548a2d4b38$var$forEachStep(this, fn, walker, thisp);\n walker = prev;\n }\n }\n forEach(fn, thisp) {\n thisp = thisp || this;\n for(let walker = this[$ab130e548a2d4b38$var$LRU_LIST].head; walker !== null;){\n const next = walker.next;\n $ab130e548a2d4b38$var$forEachStep(this, fn, walker, thisp);\n walker = next;\n }\n }\n keys() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].toArray().map((k)=>k.key);\n }\n values() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].toArray().map((k)=>k.value);\n }\n reset() {\n if (this[$ab130e548a2d4b38$var$DISPOSE] && this[$ab130e548a2d4b38$var$LRU_LIST] && this[$ab130e548a2d4b38$var$LRU_LIST].length) this[$ab130e548a2d4b38$var$LRU_LIST].forEach((hit)=>this[$ab130e548a2d4b38$var$DISPOSE](hit.key, hit.value));\n this[$ab130e548a2d4b38$var$CACHE] = new Map() // hash of items by key\n ;\n this[$ab130e548a2d4b38$var$LRU_LIST] = new $JD6z9() // list of items in order of use recency\n ;\n this[$ab130e548a2d4b38$var$LENGTH] = 0 // length of items in the list\n ;\n }\n dump() {\n return this[$ab130e548a2d4b38$var$LRU_LIST].map((hit)=>$ab130e548a2d4b38$var$isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter((h)=>h);\n }\n dumpLru() {\n return this[$ab130e548a2d4b38$var$LRU_LIST];\n }\n set(key, value, maxAge) {\n maxAge = maxAge || this[$ab130e548a2d4b38$var$MAX_AGE];\n if (maxAge && typeof maxAge !== \"number\") throw new TypeError(\"maxAge must be a number\");\n const now = maxAge ? Date.now() : 0;\n const len = this[$ab130e548a2d4b38$var$LENGTH_CALCULATOR](value, key);\n if (this[$ab130e548a2d4b38$var$CACHE].has(key)) {\n if (len > this[$ab130e548a2d4b38$var$MAX]) {\n $ab130e548a2d4b38$var$del(this, this[$ab130e548a2d4b38$var$CACHE].get(key));\n return false;\n }\n const node = this[$ab130e548a2d4b38$var$CACHE].get(key);\n const item = node.value;\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[$ab130e548a2d4b38$var$DISPOSE]) {\n if (!this[$ab130e548a2d4b38$var$NO_DISPOSE_ON_SET]) this[$ab130e548a2d4b38$var$DISPOSE](key, item.value);\n }\n item.now = now;\n item.maxAge = maxAge;\n item.value = value;\n this[$ab130e548a2d4b38$var$LENGTH] += len - item.length;\n item.length = len;\n this.get(key);\n $ab130e548a2d4b38$var$trim(this);\n return true;\n }\n const hit = new $ab130e548a2d4b38$var$Entry(key, value, len, now, maxAge);\n // oversized objects fall out of cache automatically.\n if (hit.length > this[$ab130e548a2d4b38$var$MAX]) {\n if (this[$ab130e548a2d4b38$var$DISPOSE]) this[$ab130e548a2d4b38$var$DISPOSE](key, value);\n return false;\n }\n this[$ab130e548a2d4b38$var$LENGTH] += hit.length;\n this[$ab130e548a2d4b38$var$LRU_LIST].unshift(hit);\n this[$ab130e548a2d4b38$var$CACHE].set(key, this[$ab130e548a2d4b38$var$LRU_LIST].head);\n $ab130e548a2d4b38$var$trim(this);\n return true;\n }\n has(key) {\n if (!this[$ab130e548a2d4b38$var$CACHE].has(key)) return false;\n const hit = this[$ab130e548a2d4b38$var$CACHE].get(key).value;\n return !$ab130e548a2d4b38$var$isStale(this, hit);\n }\n get(key) {\n return $ab130e548a2d4b38$var$get(this, key, true);\n }\n peek(key) {\n return $ab130e548a2d4b38$var$get(this, key, false);\n }\n pop() {\n const node = this[$ab130e548a2d4b38$var$LRU_LIST].tail;\n if (!node) return null;\n $ab130e548a2d4b38$var$del(this, node);\n return node.value;\n }\n del(key) {\n $ab130e548a2d4b38$var$del(this, this[$ab130e548a2d4b38$var$CACHE].get(key));\n }\n load(arr) {\n // reset the cache\n this.reset();\n const now = Date.now();\n // A previous serialized cache has the most recent items first\n for(let l = arr.length - 1; l >= 0; l--){\n const hit = arr[l];\n const expiresAt = hit.e || 0;\n if (expiresAt === 0) // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v);\n else {\n const maxAge = expiresAt - now;\n // dont add already expired items\n if (maxAge > 0) this.set(hit.k, hit.v, maxAge);\n }\n }\n }\n prune() {\n this[$ab130e548a2d4b38$var$CACHE].forEach((value, key)=>$ab130e548a2d4b38$var$get(this, key, false));\n }\n}\nconst $ab130e548a2d4b38$var$get = (self, key, doUse)=>{\n const node = self[$ab130e548a2d4b38$var$CACHE].get(key);\n if (node) {\n const hit = node.value;\n if ($ab130e548a2d4b38$var$isStale(self, hit)) {\n $ab130e548a2d4b38$var$del(self, node);\n if (!self[$ab130e548a2d4b38$var$ALLOW_STALE]) return undefined;\n } else if (doUse) {\n if (self[$ab130e548a2d4b38$var$UPDATE_AGE_ON_GET]) node.value.now = Date.now();\n self[$ab130e548a2d4b38$var$LRU_LIST].unshiftNode(node);\n }\n return hit.value;\n }\n};\nconst $ab130e548a2d4b38$var$isStale = (self, hit)=>{\n if (!hit || !hit.maxAge && !self[$ab130e548a2d4b38$var$MAX_AGE]) return false;\n const diff = Date.now() - hit.now;\n return hit.maxAge ? diff > hit.maxAge : self[$ab130e548a2d4b38$var$MAX_AGE] && diff > self[$ab130e548a2d4b38$var$MAX_AGE];\n};\nconst $ab130e548a2d4b38$var$trim = (self)=>{\n if (self[$ab130e548a2d4b38$var$LENGTH] > self[$ab130e548a2d4b38$var$MAX]) for(let walker = self[$ab130e548a2d4b38$var$LRU_LIST].tail; self[$ab130e548a2d4b38$var$LENGTH] > self[$ab130e548a2d4b38$var$MAX] && walker !== null;){\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev;\n $ab130e548a2d4b38$var$del(self, walker);\n walker = prev;\n }\n};\nconst $ab130e548a2d4b38$var$del = (self, node)=>{\n if (node) {\n const hit = node.value;\n if (self[$ab130e548a2d4b38$var$DISPOSE]) self[$ab130e548a2d4b38$var$DISPOSE](hit.key, hit.value);\n self[$ab130e548a2d4b38$var$LENGTH] -= hit.length;\n self[$ab130e548a2d4b38$var$CACHE].delete(hit.key);\n self[$ab130e548a2d4b38$var$LRU_LIST].removeNode(node);\n }\n};\nclass $ab130e548a2d4b38$var$Entry {\n constructor(key, value, length, now, maxAge){\n this.key = key;\n this.value = value;\n this.length = length;\n this.now = now;\n this.maxAge = maxAge || 0;\n }\n}\nconst $ab130e548a2d4b38$var$forEachStep = (self, fn, node, thisp)=>{\n let hit = node.value;\n if ($ab130e548a2d4b38$var$isStale(self, hit)) {\n $ab130e548a2d4b38$var$del(self, node);\n if (!self[$ab130e548a2d4b38$var$ALLOW_STALE]) hit = undefined;\n }\n if (hit) fn.call(thisp, hit.value, hit.key, self);\n};\nmodule.exports = $ab130e548a2d4b38$var$LRUCache;\n\n});\nparcelRegister(\"JD6z9\", function(module, exports) {\n\"use strict\";\nmodule.exports = $08928980bda7e450$var$Yallist;\n$08928980bda7e450$var$Yallist.Node = $08928980bda7e450$var$Node;\n$08928980bda7e450$var$Yallist.create = $08928980bda7e450$var$Yallist;\nfunction $08928980bda7e450$var$Yallist(list) {\n var self = this;\n if (!(self instanceof $08928980bda7e450$var$Yallist)) self = new $08928980bda7e450$var$Yallist();\n self.tail = null;\n self.head = null;\n self.length = 0;\n if (list && typeof list.forEach === \"function\") list.forEach(function(item) {\n self.push(item);\n });\n else if (arguments.length > 0) for(var i = 0, l = arguments.length; i < l; i++)self.push(arguments[i]);\n return self;\n}\n$08928980bda7e450$var$Yallist.prototype.removeNode = function(node) {\n if (node.list !== this) throw new Error(\"removing node which does not belong to this list\");\n var next = node.next;\n var prev = node.prev;\n if (next) next.prev = prev;\n if (prev) prev.next = next;\n if (node === this.head) this.head = next;\n if (node === this.tail) this.tail = prev;\n node.list.length--;\n node.next = null;\n node.prev = null;\n node.list = null;\n return next;\n};\n$08928980bda7e450$var$Yallist.prototype.unshiftNode = function(node) {\n if (node === this.head) return;\n if (node.list) node.list.removeNode(node);\n var head = this.head;\n node.list = this;\n node.next = head;\n if (head) head.prev = node;\n this.head = node;\n if (!this.tail) this.tail = node;\n this.length++;\n};\n$08928980bda7e450$var$Yallist.prototype.pushNode = function(node) {\n if (node === this.tail) return;\n if (node.list) node.list.removeNode(node);\n var tail = this.tail;\n node.list = this;\n node.prev = tail;\n if (tail) tail.next = node;\n this.tail = node;\n if (!this.head) this.head = node;\n this.length++;\n};\n$08928980bda7e450$var$Yallist.prototype.push = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$08928980bda7e450$var$push(this, arguments[i]);\n return this.length;\n};\n$08928980bda7e450$var$Yallist.prototype.unshift = function() {\n for(var i = 0, l = arguments.length; i < l; i++)$08928980bda7e450$var$unshift(this, arguments[i]);\n return this.length;\n};\n$08928980bda7e450$var$Yallist.prototype.pop = function() {\n if (!this.tail) return undefined;\n var res = this.tail.value;\n this.tail = this.tail.prev;\n if (this.tail) this.tail.next = null;\n else this.head = null;\n this.length--;\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.shift = function() {\n if (!this.head) return undefined;\n var res = this.head.value;\n this.head = this.head.next;\n if (this.head) this.head.prev = null;\n else this.tail = null;\n this.length--;\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.forEach = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.head, i = 0; walker !== null; i++){\n fn.call(thisp, walker.value, i, this);\n walker = walker.next;\n }\n};\n$08928980bda7e450$var$Yallist.prototype.forEachReverse = function(fn, thisp) {\n thisp = thisp || this;\n for(var walker = this.tail, i = this.length - 1; walker !== null; i--){\n fn.call(thisp, walker.value, i, this);\n walker = walker.prev;\n }\n};\n$08928980bda7e450$var$Yallist.prototype.get = function(n) {\n for(var i = 0, walker = this.head; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.next;\n if (i === n && walker !== null) return walker.value;\n};\n$08928980bda7e450$var$Yallist.prototype.getReverse = function(n) {\n for(var i = 0, walker = this.tail; walker !== null && i < n; i++)// abort out of the list early if we hit a cycle\n walker = walker.prev;\n if (i === n && walker !== null) return walker.value;\n};\n$08928980bda7e450$var$Yallist.prototype.map = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $08928980bda7e450$var$Yallist();\n for(var walker = this.head; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.next;\n }\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.mapReverse = function(fn, thisp) {\n thisp = thisp || this;\n var res = new $08928980bda7e450$var$Yallist();\n for(var walker = this.tail; walker !== null;){\n res.push(fn.call(thisp, walker.value, this));\n walker = walker.prev;\n }\n return res;\n};\n$08928980bda7e450$var$Yallist.prototype.reduce = function(fn, initial) {\n var acc;\n var walker = this.head;\n if (arguments.length > 1) acc = initial;\n else if (this.head) {\n walker = this.head.next;\n acc = this.head.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = 0; walker !== null; i++){\n acc = fn(acc, walker.value, i);\n walker = walker.next;\n }\n return acc;\n};\n$08928980bda7e450$var$Yallist.prototype.reduceReverse = function(fn, initial) {\n var acc;\n var walker = this.tail;\n if (arguments.length > 1) acc = initial;\n else if (this.tail) {\n walker = this.tail.prev;\n acc = this.tail.value;\n } else throw new TypeError(\"Reduce of empty list with no initial value\");\n for(var i = this.length - 1; walker !== null; i--){\n acc = fn(acc, walker.value, i);\n walker = walker.prev;\n }\n return acc;\n};\n$08928980bda7e450$var$Yallist.prototype.toArray = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.head; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.next;\n }\n return arr;\n};\n$08928980bda7e450$var$Yallist.prototype.toArrayReverse = function() {\n var arr = new Array(this.length);\n for(var i = 0, walker = this.tail; walker !== null; i++){\n arr[i] = walker.value;\n walker = walker.prev;\n }\n return arr;\n};\n$08928980bda7e450$var$Yallist.prototype.slice = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $08928980bda7e450$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = 0, walker = this.head; walker !== null && i < from; i++)walker = walker.next;\n for(; walker !== null && i < to; i++, walker = walker.next)ret.push(walker.value);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.sliceReverse = function(from, to) {\n to = to || this.length;\n if (to < 0) to += this.length;\n from = from || 0;\n if (from < 0) from += this.length;\n var ret = new $08928980bda7e450$var$Yallist();\n if (to < from || to < 0) return ret;\n if (from < 0) from = 0;\n if (to > this.length) to = this.length;\n for(var i = this.length, walker = this.tail; walker !== null && i > to; i--)walker = walker.prev;\n for(; walker !== null && i > from; i--, walker = walker.prev)ret.push(walker.value);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.splice = function(start, deleteCount, ...nodes) {\n if (start > this.length) start = this.length - 1;\n if (start < 0) start = this.length + start;\n for(var i = 0, walker = this.head; walker !== null && i < start; i++)walker = walker.next;\n var ret = [];\n for(var i = 0; walker && i < deleteCount; i++){\n ret.push(walker.value);\n walker = this.removeNode(walker);\n }\n if (walker === null) walker = this.tail;\n if (walker !== this.head && walker !== this.tail) walker = walker.prev;\n for(var i = 0; i < nodes.length; i++)walker = $08928980bda7e450$var$insert(this, walker, nodes[i]);\n return ret;\n};\n$08928980bda7e450$var$Yallist.prototype.reverse = function() {\n var head = this.head;\n var tail = this.tail;\n for(var walker = head; walker !== null; walker = walker.prev){\n var p = walker.prev;\n walker.prev = walker.next;\n walker.next = p;\n }\n this.head = tail;\n this.tail = head;\n return this;\n};\nfunction $08928980bda7e450$var$insert(self, node, value) {\n var inserted = node === self.head ? new $08928980bda7e450$var$Node(value, null, node, self) : new $08928980bda7e450$var$Node(value, node, node.next, self);\n if (inserted.next === null) self.tail = inserted;\n if (inserted.prev === null) self.head = inserted;\n self.length++;\n return inserted;\n}\nfunction $08928980bda7e450$var$push(self, item) {\n self.tail = new $08928980bda7e450$var$Node(item, self.tail, null, self);\n if (!self.head) self.head = self.tail;\n self.length++;\n}\nfunction $08928980bda7e450$var$unshift(self, item) {\n self.head = new $08928980bda7e450$var$Node(item, null, self.head, self);\n if (!self.tail) self.tail = self.head;\n self.length++;\n}\nfunction $08928980bda7e450$var$Node(value, prev, next, list) {\n if (!(this instanceof $08928980bda7e450$var$Node)) return new $08928980bda7e450$var$Node(value, prev, next, list);\n this.list = list;\n this.value = value;\n if (prev) {\n prev.next = this;\n this.prev = prev;\n } else this.prev = null;\n if (next) {\n next.prev = this;\n this.next = next;\n } else this.next = null;\n}\n\ntry {\n // add if support for Symbol.iterator is present\n (parcelRequire(\"6mmJJ\"))($08928980bda7e450$var$Yallist);\n} catch (er) {}\n\n});\nparcelRegister(\"6mmJJ\", function(module, exports) {\n\"use strict\";\nmodule.exports = function(Yallist) {\n Yallist.prototype[Symbol.iterator] = function*() {\n for(let walker = this.head; walker; walker = walker.next)yield walker.value;\n };\n};\n\n});\n\n\n\n\n\nparcelRegister(\"2bU8Y\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $198828d4690f72ab$var$satisfies = (version, range, options)=>{\n try {\n range = new $4FTez(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n};\nmodule.exports = $198828d4690f72ab$var$satisfies;\n\n});\n\nparcelRegister(\"eRnrA\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\n// Mostly just for testing and legacy API reasons\nconst $ad183366a1601ea2$var$toComparators = (range, options)=>new $4FTez(range, options).set.map((comp)=>comp.map((c)=>c.value).join(\" \").trim().split(\" \"));\nmodule.exports = $ad183366a1601ea2$var$toComparators;\n\n});\n\nparcelRegister(\"aAvhf\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $7b55873206bf39b9$var$maxSatisfying = (versions, range, options)=>{\n let max = null;\n let maxSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $4FTez(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new $aMLnW(max, options);\n }\n }\n });\n return max;\n};\nmodule.exports = $7b55873206bf39b9$var$maxSatisfying;\n\n});\n\nparcelRegister(\"iWAcu\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $dca9b97392366ccd$var$minSatisfying = (versions, range, options)=>{\n let min = null;\n let minSV = null;\n let rangeObj = null;\n try {\n rangeObj = new $4FTez(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach((v)=>{\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new $aMLnW(min, options);\n }\n }\n });\n return min;\n};\nmodule.exports = $dca9b97392366ccd$var$minSatisfying;\n\n});\n\nparcelRegister(\"32TwK\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\nconst $237ca191c3ae55cc$var$minVersion = (range, loose)=>{\n range = new $4FTez(range, loose);\n let minver = new $aMLnW(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new $aMLnW(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let setMin = null;\n comparators.forEach((comparator)=>{\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new $aMLnW(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!setMin || $cPjhN(compver, setMin)) setMin = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(`Unexpected operation: ${comparator.operator}`);\n }\n });\n if (setMin && (!minver || $cPjhN(minver, setMin))) minver = setMin;\n }\n if (minver && range.test(minver)) return minver;\n return null;\n};\nmodule.exports = $237ca191c3ae55cc$var$minVersion;\n\n});\n\nparcelRegister(\"194Ox\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $0d5a5dad0eeb3de1$var$validRange = (range, options)=>{\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new $4FTez(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n};\nmodule.exports = $0d5a5dad0eeb3de1$var$validRange;\n\n});\n\nparcelRegister(\"a8VZj\", function(module, exports) {\n\nvar $aMLnW = parcelRequire(\"aMLnW\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\nconst { ANY: $7627a1f1d8b68e56$var$ANY } = $dSz9p;\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $cPjhN = parcelRequire(\"cPjhN\");\n\nvar $avz3V = parcelRequire(\"avz3V\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $9xdhv = parcelRequire(\"9xdhv\");\nconst $7627a1f1d8b68e56$var$outside = (version, range, hilo, options)=>{\n version = new $aMLnW(version, options);\n range = new $4FTez(range, options);\n let gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = $cPjhN;\n ltefn = $8aNoG;\n ltfn = $avz3V;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = $avz3V;\n ltefn = $9xdhv;\n ltfn = $cPjhN;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisfies the range it is not outside\n if ($2bU8Y(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(let i = 0; i < range.set.length; ++i){\n const comparators = range.set[i];\n let high = null;\n let low = null;\n comparators.forEach((comparator)=>{\n if (comparator.semver === $7627a1f1d8b68e56$var$ANY) comparator = new $dSz9p(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n};\nmodule.exports = $7627a1f1d8b68e56$var$outside;\n\n});\n\nparcelRegister(\"2yv5J\", function(module, exports) {\n// Determine if version is greater than all the versions possible in the range.\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\nconst $1dc6dfd60f6d4b61$var$gtr = (version, range, options)=>$a8VZj(version, range, \">\", options);\nmodule.exports = $1dc6dfd60f6d4b61$var$gtr;\n\n});\n\nparcelRegister(\"46KXA\", function(module, exports) {\n\nvar $a8VZj = parcelRequire(\"a8VZj\");\n// Determine if version is less than all the versions possible in the range\nconst $2fdc264220ba3549$var$ltr = (version, range, options)=>$a8VZj(version, range, \"<\", options);\nmodule.exports = $2fdc264220ba3549$var$ltr;\n\n});\n\nparcelRegister(\"e3Thp\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\nconst $a3cc39e8e39a0af8$var$intersects = (r1, r2, options)=>{\n r1 = new $4FTez(r1, options);\n r2 = new $4FTez(r2, options);\n return r1.intersects(r2, options);\n};\nmodule.exports = $a3cc39e8e39a0af8$var$intersects;\n\n});\n\nparcelRegister(\"8g51l\", function(module, exports) {\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\nmodule.exports = (versions, range, options)=>{\n const set = [];\n let first = null;\n let prev = null;\n const v = versions.sort((a, b)=>$3uysP(a, b, options));\n for (const version of v){\n const included = $2bU8Y(version, range, options);\n if (included) {\n prev = version;\n if (!first) first = version;\n } else {\n if (prev) set.push([\n first,\n prev\n ]);\n prev = null;\n first = null;\n }\n }\n if (first) set.push([\n first,\n null\n ]);\n const ranges = [];\n for (const [min, max] of set){\n if (min === max) ranges.push(min);\n else if (!max && min === v[0]) ranges.push(\"*\");\n else if (!max) ranges.push(`>=${min}`);\n else if (min === v[0]) ranges.push(`<=${max}`);\n else ranges.push(`${min} - ${max}`);\n }\n const simplified = ranges.join(\" || \");\n const original = typeof range.raw === \"string\" ? range.raw : String(range);\n return simplified.length < original.length ? simplified : range;\n};\n\n});\n\nparcelRegister(\"96YVB\", function(module, exports) {\n\nvar $4FTez = parcelRequire(\"4FTez\");\n\nvar $dSz9p = parcelRequire(\"dSz9p\");\nconst { ANY: $6a23efa6855afc70$var$ANY } = $dSz9p;\n\nvar $2bU8Y = parcelRequire(\"2bU8Y\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\nconst $6a23efa6855afc70$var$subset = (sub, dom, options = {})=>{\n if (sub === dom) return true;\n sub = new $4FTez(sub, options);\n dom = new $4FTez(dom, options);\n let sawNonNull = false;\n OUTER: for (const simpleSub of sub.set){\n for (const simpleDom of dom.set){\n const isSub = $6a23efa6855afc70$var$simpleSubset(simpleSub, simpleDom, options);\n sawNonNull = sawNonNull || isSub !== null;\n if (isSub) continue OUTER;\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) return false;\n }\n return true;\n};\nconst $6a23efa6855afc70$var$minimumVersionWithPreRelease = [\n new $dSz9p(\">=0.0.0-0\")\n];\nconst $6a23efa6855afc70$var$minimumVersion = [\n new $dSz9p(\">=0.0.0\")\n];\nconst $6a23efa6855afc70$var$simpleSubset = (sub, dom, options)=>{\n if (sub === dom) return true;\n if (sub.length === 1 && sub[0].semver === $6a23efa6855afc70$var$ANY) {\n if (dom.length === 1 && dom[0].semver === $6a23efa6855afc70$var$ANY) return true;\n else if (options.includePrerelease) sub = $6a23efa6855afc70$var$minimumVersionWithPreRelease;\n else sub = $6a23efa6855afc70$var$minimumVersion;\n }\n if (dom.length === 1 && dom[0].semver === $6a23efa6855afc70$var$ANY) {\n if (options.includePrerelease) return true;\n else dom = $6a23efa6855afc70$var$minimumVersion;\n }\n const eqSet = new Set();\n let gt, lt;\n for (const c of sub){\n if (c.operator === \">\" || c.operator === \">=\") gt = $6a23efa6855afc70$var$higherGT(gt, c, options);\n else if (c.operator === \"<\" || c.operator === \"<=\") lt = $6a23efa6855afc70$var$lowerLT(lt, c, options);\n else eqSet.add(c.semver);\n }\n if (eqSet.size > 1) return null;\n let gtltComp;\n if (gt && lt) {\n gtltComp = $3uysP(gt.semver, lt.semver, options);\n if (gtltComp > 0) return null;\n else if (gtltComp === 0 && (gt.operator !== \">=\" || lt.operator !== \"<=\")) return null;\n }\n // will iterate one or zero times\n for (const eq of eqSet){\n if (gt && !$2bU8Y(eq, String(gt), options)) return null;\n if (lt && !$2bU8Y(eq, String(lt), options)) return null;\n for (const c of dom){\n if (!$2bU8Y(eq, String(c), options)) return false;\n }\n return true;\n }\n let higher, lower;\n let hasDomLT, hasDomGT;\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;\n let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === \"<\" && needDomLTPre.prerelease[0] === 0) needDomLTPre = false;\n for (const c of dom){\n hasDomGT = hasDomGT || c.operator === \">\" || c.operator === \">=\";\n hasDomLT = hasDomLT || c.operator === \"<\" || c.operator === \"<=\";\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) needDomGTPre = false;\n }\n if (c.operator === \">\" || c.operator === \">=\") {\n higher = $6a23efa6855afc70$var$higherGT(gt, c, options);\n if (higher === c && higher !== gt) return false;\n } else if (gt.operator === \">=\" && !$2bU8Y(gt.semver, String(c), options)) return false;\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) needDomLTPre = false;\n }\n if (c.operator === \"<\" || c.operator === \"<=\") {\n lower = $6a23efa6855afc70$var$lowerLT(lt, c, options);\n if (lower === c && lower !== lt) return false;\n } else if (lt.operator === \"<=\" && !$2bU8Y(lt.semver, String(c), options)) return false;\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) return false;\n }\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) return false;\n if (lt && hasDomGT && !gt && gtltComp !== 0) return false;\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) return false;\n return true;\n};\n// >=1.2.3 is lower than >1.2.3\nconst $6a23efa6855afc70$var$higherGT = (a, b, options)=>{\n if (!a) return b;\n const comp = $3uysP(a.semver, b.semver, options);\n return comp > 0 ? a : comp < 0 ? b : b.operator === \">\" && a.operator === \">=\" ? b : a;\n};\n// <=1.2.3 is higher than <1.2.3\nconst $6a23efa6855afc70$var$lowerLT = (a, b, options)=>{\n if (!a) return b;\n const comp = $3uysP(a.semver, b.semver, options);\n return comp < 0 ? a : comp > 0 ? b : b.operator === \"<\" && a.operator === \"<=\" ? b : a;\n};\nmodule.exports = $6a23efa6855afc70$var$subset;\n\n});\n\n\nparcelRegister(\"kY0n1\", function(module, exports) {\n\n$parcel$export(module.exports, \"pathExists\", () => $f439b2cda090cb68$export$f8b9fb4db095815b);\n\nasync function $f439b2cda090cb68$export$f8b9fb4db095815b(path) {\n try {\n await (0, $d7DIX$nodefs.promises).access(path);\n return true;\n } catch {\n return false;\n }\n}\nfunction $f439b2cda090cb68$export$d878061e34fd0f5a(path) {\n try {\n (0, ($parcel$interopDefault($d7DIX$nodefs))).accessSync(path);\n return true;\n } catch {\n return false;\n }\n}\n\n});\n\nparcelRegister(\"i8A01\", function(module, exports) {\n\"use strict\";\nvar $d344e60cef0315df$var$matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\nmodule.exports = function(str) {\n if (typeof str !== \"string\") throw new TypeError(\"Expected a string\");\n return str.replace($d344e60cef0315df$var$matchOperatorsRe, \"\\\\$&\");\n};\n\n});\n\nparcelRegister(\"bzNgi\", function(module, exports) {\n\n$parcel$export(module.exports, \"addExeExt\", () => $3294af0a12e8cafb$export$2d20c564cade3c93);\n$parcel$export(module.exports, \"addShExt\", () => $3294af0a12e8cafb$export$609be29b80b555e1);\n$parcel$export(module.exports, \"addShRelativePrefix\", () => $3294af0a12e8cafb$export$e1f23f8d3e53fe6);\n$parcel$export(module.exports, \"dirname\", () => $d7DIX$path.dirname);\n$parcel$export(module.exports, \"join\", () => $d7DIX$path.join);\n\n\nvar $iNGpn = parcelRequire(\"iNGpn\");\n\nvar $axeRu = parcelRequire(\"axeRu\");\nfunction $3294af0a12e8cafb$var$e(e, a) {\n return Object.keys(a).forEach((r)=>{\n \"default\" === r || \"__esModule\" === r || e.hasOwnProperty(r) || Object.defineProperty(e, r, {\n enumerable: !0,\n get () {\n return a[r];\n }\n });\n }), e;\n}\nfunction $3294af0a12e8cafb$var$a(e, a, r, s) {\n Object.defineProperty(e, a, {\n get: r,\n set: s,\n enumerable: !0,\n configurable: !0\n });\n}\nfunction $3294af0a12e8cafb$export$a8ff84c12d48cfa6(e, a = !0) {\n return a ? (0, $d7DIX$path.basename)(e) : (0, $d7DIX$path.basename)(e, (0, $d7DIX$path.extname)(e));\n}\nfunction $3294af0a12e8cafb$export$873fead74fe2f1ff(e) {\n return (0, $d7DIX$path.normalize)(e).replace(RegExp((0, $iNGpn.default)((0, $d7DIX$path.sep)) + \"$\"), \"\");\n}\nfunction $3294af0a12e8cafb$export$2d20c564cade3c93(e, a = \".exe\", r = \"\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3294af0a12e8cafb$export$3e333f8cb13439c(e, a) {\n const r = (0, $d7DIX$path.extname)(e), s = `${a}${(0, $d7DIX$path.basename)(e, r)}${r}`;\n return (0, $d7DIX$path.join)((0, $d7DIX$path.dirname)(e), s);\n}\nfunction $3294af0a12e8cafb$export$3b60a3e9bd1aef9d(e, a) {\n const r = (0, $d7DIX$path.extname)(e), s = `${(0, $d7DIX$path.basename)(e, r)}${a}${r}`;\n return (0, $d7DIX$path.join)((0, $d7DIX$path.dirname)(e), s);\n}\nfunction $3294af0a12e8cafb$export$609be29b80b555e1(e, a = \".cmd\", r = \".sh\") {\n return \"win32\" === process.platform ? `${e}${a}` : `${e}${r}`;\n}\nfunction $3294af0a12e8cafb$export$e1f23f8d3e53fe6(e) {\n return \"win32\" === process.platform ? e : \"./\" + e;\n}\nfunction $3294af0a12e8cafb$export$19c5468f88f6e968(e) {\n const a = (0, $d7DIX$path.extname)(e).length;\n return e.slice(0, -a);\n}\nfunction $3294af0a12e8cafb$export$e9c34737ac8e53d2(e, a) {\n return (0, (/*@__PURE__*/$parcel$interopDefault($axeRu)))(e, a);\n}\nfunction $3294af0a12e8cafb$export$7d0573375890d05c(e, a) {\n const r = (0, $d7DIX$path.relative)(a, e);\n return !(!r || \"..\" === r || r.startsWith(\"..\" + (0, $d7DIX$path.sep)) || r === (0, $d7DIX$path.resolve)(e));\n}\nvar $3294af0a12e8cafb$var$O = {}, $3294af0a12e8cafb$var$R = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$R, \"name\", ()=>$3294af0a12e8cafb$export$a8ff84c12d48cfa6);\nvar $3294af0a12e8cafb$var$A = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$A, \"normalizeTrim\", ()=>$3294af0a12e8cafb$export$873fead74fe2f1ff);\nvar $3294af0a12e8cafb$var$I = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$I, \"addExeExt\", ()=>$3294af0a12e8cafb$export$2d20c564cade3c93);\nvar $3294af0a12e8cafb$var$T = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$T, \"addNamePrefix\", ()=>$3294af0a12e8cafb$export$3e333f8cb13439c);\nvar $3294af0a12e8cafb$var$_ = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$_, \"addNameSuffix\", ()=>$3294af0a12e8cafb$export$3b60a3e9bd1aef9d);\nvar $3294af0a12e8cafb$var$k = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$k, \"addShExt\", ()=>$3294af0a12e8cafb$export$609be29b80b555e1);\nvar $3294af0a12e8cafb$var$M = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$M, \"addShRelativePrefix\", ()=>$3294af0a12e8cafb$export$e1f23f8d3e53fe6);\nvar $3294af0a12e8cafb$var$W = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$W, \"removeExt\", ()=>$3294af0a12e8cafb$export$19c5468f88f6e968);\nvar $3294af0a12e8cafb$var$q = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$q, \"replaceExt\", ()=>$3294af0a12e8cafb$export$e9c34737ac8e53d2);\nvar $3294af0a12e8cafb$var$B = {};\n$3294af0a12e8cafb$var$a($3294af0a12e8cafb$var$B, \"isPathInside\", ()=>$3294af0a12e8cafb$export$7d0573375890d05c), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$R), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$A), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$I), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$T), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$_), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$k), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$M), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$W), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$q), $3294af0a12e8cafb$var$e($3294af0a12e8cafb$var$O, $3294af0a12e8cafb$var$B);\n\n});\nparcelRegister(\"iNGpn\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $dafdb304e43595c1$export$2e2bcd8739ae039);\nfunction $dafdb304e43595c1$export$2e2bcd8739ae039(string) {\n if (typeof string !== \"string\") throw new TypeError(\"Expected a string\");\n // Escape characters with special meaning either inside or outside character sets.\n // Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n}\n\n});\n\nparcelRegister(\"axeRu\", function(module, exports) {\n\"use strict\";\n\nfunction $7ab883abb47fe1b1$var$replaceExt(npath, ext) {\n if (typeof npath !== \"string\") return npath;\n if (npath.length === 0) return npath;\n var nFileName = $d7DIX$path.basename(npath, $d7DIX$path.extname(npath)) + ext;\n var nFilepath = $d7DIX$path.join($d7DIX$path.dirname(npath), nFileName);\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if ($7ab883abb47fe1b1$var$startsWithSingleDot(npath)) return \".\" + $d7DIX$path.sep + nFilepath;\n return nFilepath;\n}\nfunction $7ab883abb47fe1b1$var$startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === \".\" + $d7DIX$path.sep || first2chars === \"./\";\n}\nmodule.exports = $7ab883abb47fe1b1$var$replaceExt;\n\n});\n\n\nparcelRegister(\"hZdK0\", function(module, exports) {\n\"use strict\";\nvar $d182cae0c6b8c393$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d182cae0c6b8c393$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d182cae0c6b8c393$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d182cae0c6b8c393$var$__createBinding(result, mod, k);\n }\n $d182cae0c6b8c393$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d182cae0c6b8c393$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.findInPath = module.exports.which = module.exports.mkdirP = module.exports.rmRF = module.exports.mv = module.exports.cp = void 0;\n\n\nconst $d182cae0c6b8c393$var$path = $d182cae0c6b8c393$var$__importStar($d7DIX$path);\n\nconst $d182cae0c6b8c393$var$ioUtil = $d182cae0c6b8c393$var$__importStar((parcelRequire(\"ipB3d\")));\n/**\n * Copies a file or folder.\n * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See CopyOptions.\n */ function $d182cae0c6b8c393$var$cp(source, dest, options = {}) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n const { force: force, recursive: recursive, copySourceDirectory: copySourceDirectory } = $d182cae0c6b8c393$var$readCopyOptions(options);\n const destStat = (yield $d182cae0c6b8c393$var$ioUtil.exists(dest)) ? yield $d182cae0c6b8c393$var$ioUtil.stat(dest) : null;\n // Dest is an existing file, but not forcing\n if (destStat && destStat.isFile() && !force) return;\n // If dest is an existing directory, should copy inside.\n const newDest = destStat && destStat.isDirectory() && copySourceDirectory ? $d182cae0c6b8c393$var$path.join(dest, $d182cae0c6b8c393$var$path.basename(source)) : dest;\n if (!(yield $d182cae0c6b8c393$var$ioUtil.exists(source))) throw new Error(`no such file or directory: ${source}`);\n const sourceStat = yield $d182cae0c6b8c393$var$ioUtil.stat(source);\n if (sourceStat.isDirectory()) {\n if (!recursive) throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);\n else yield $d182cae0c6b8c393$var$cpDirRecursive(source, newDest, 0, force);\n } else {\n if ($d182cae0c6b8c393$var$path.relative(source, newDest) === \"\") // a file cannot be copied to itself\n throw new Error(`'${newDest}' and '${source}' are the same file`);\n yield $d182cae0c6b8c393$var$copyFile(source, newDest, force);\n }\n });\n}\nmodule.exports.cp = $d182cae0c6b8c393$var$cp;\n/**\n * Moves a path.\n *\n * @param source source path\n * @param dest destination path\n * @param options optional. See MoveOptions.\n */ function $d182cae0c6b8c393$var$mv(source, dest, options = {}) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (yield $d182cae0c6b8c393$var$ioUtil.exists(dest)) {\n let destExists = true;\n if (yield $d182cae0c6b8c393$var$ioUtil.isDirectory(dest)) {\n // If dest is directory copy src into dest\n dest = $d182cae0c6b8c393$var$path.join(dest, $d182cae0c6b8c393$var$path.basename(source));\n destExists = yield $d182cae0c6b8c393$var$ioUtil.exists(dest);\n }\n if (destExists) {\n if (options.force == null || options.force) yield $d182cae0c6b8c393$var$rmRF(dest);\n else throw new Error(\"Destination already exists\");\n }\n }\n yield $d182cae0c6b8c393$var$mkdirP($d182cae0c6b8c393$var$path.dirname(dest));\n yield $d182cae0c6b8c393$var$ioUtil.rename(source, dest);\n });\n}\nmodule.exports.mv = $d182cae0c6b8c393$var$mv;\n/**\n * Remove a path recursively with force\n *\n * @param inputPath path to remove\n */ function $d182cae0c6b8c393$var$rmRF(inputPath) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS) {\n // Check for invalid characters\n // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file\n if (/[*\"<>|]/.test(inputPath)) throw new Error('File path must not contain `*`, `\"`, `<`, `>` or `|` on Windows');\n }\n try {\n // note if path does not exist, error is silent\n yield $d182cae0c6b8c393$var$ioUtil.rm(inputPath, {\n force: true,\n maxRetries: 3,\n recursive: true,\n retryDelay: 300\n });\n } catch (err) {\n throw new Error(`File was unable to be removed ${err}`);\n }\n });\n}\nmodule.exports.rmRF = $d182cae0c6b8c393$var$rmRF;\n/**\n * Make a directory. Creates the full path with folders in between\n * Will throw if it fails\n *\n * @param fsPath path to create\n * @returns Promise\n */ function $d182cae0c6b8c393$var$mkdirP(fsPath) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok(fsPath, \"a path argument must be provided\");\n yield $d182cae0c6b8c393$var$ioUtil.mkdir(fsPath, {\n recursive: true\n });\n });\n}\nmodule.exports.mkdirP = $d182cae0c6b8c393$var$mkdirP;\n/**\n * Returns path of a tool had the tool actually been invoked. Resolves via paths.\n * If you check and the tool does not exist, it will throw.\n *\n * @param tool name of the tool\n * @param check whether to check if tool exists\n * @returns Promise path to tool\n */ function $d182cae0c6b8c393$var$which(tool, check) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // recursive when check=true\n if (check) {\n const result = yield $d182cae0c6b8c393$var$which(tool, false);\n if (!result) {\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS) throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n else throw new Error(`Unable to locate executable file: ${tool}. 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.`);\n }\n return result;\n }\n const matches = yield $d182cae0c6b8c393$var$findInPath(tool);\n if (matches && matches.length > 0) return matches[0];\n return \"\";\n });\n}\nmodule.exports.which = $d182cae0c6b8c393$var$which;\n/**\n * Returns a list of all occurrences of the given tool on the system path.\n *\n * @returns Promise the paths of the tool\n */ function $d182cae0c6b8c393$var$findInPath(tool) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if (!tool) throw new Error(\"parameter 'tool' is required\");\n // build the list of extensions to try\n const extensions = [];\n if ($d182cae0c6b8c393$var$ioUtil.IS_WINDOWS && process.env[\"PATHEXT\"]) {\n for (const extension of process.env[\"PATHEXT\"].split($d182cae0c6b8c393$var$path.delimiter))if (extension) extensions.push(extension);\n }\n // if it's rooted, return it if exists. otherwise return empty.\n if ($d182cae0c6b8c393$var$ioUtil.isRooted(tool)) {\n const filePath = yield $d182cae0c6b8c393$var$ioUtil.tryGetExecutablePath(tool, extensions);\n if (filePath) return [\n filePath\n ];\n return [];\n }\n // if any path separators, return empty\n if (tool.includes($d182cae0c6b8c393$var$path.sep)) return [];\n // build the list of directories\n //\n // Note, technically \"where\" checks the current directory on Windows. From a toolkit perspective,\n // it feels like we should not do this. Checking the current directory seems like more of a use\n // case of a shell, and the which() function exposed by the toolkit should strive for consistency\n // across platforms.\n const directories = [];\n if (process.env.PATH) {\n for (const p of process.env.PATH.split($d182cae0c6b8c393$var$path.delimiter))if (p) directories.push(p);\n }\n // find all matches\n const matches = [];\n for (const directory of directories){\n const filePath = yield $d182cae0c6b8c393$var$ioUtil.tryGetExecutablePath($d182cae0c6b8c393$var$path.join(directory, tool), extensions);\n if (filePath) matches.push(filePath);\n }\n return matches;\n });\n}\nmodule.exports.findInPath = $d182cae0c6b8c393$var$findInPath;\nfunction $d182cae0c6b8c393$var$readCopyOptions(options) {\n const force = options.force == null ? true : options.force;\n const recursive = Boolean(options.recursive);\n const copySourceDirectory = options.copySourceDirectory == null ? true : Boolean(options.copySourceDirectory);\n return {\n force: force,\n recursive: recursive,\n copySourceDirectory: copySourceDirectory\n };\n}\nfunction $d182cae0c6b8c393$var$cpDirRecursive(sourceDir, destDir, currentDepth, force) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n // Ensure there is not a run away recursive copy\n if (currentDepth >= 255) return;\n currentDepth++;\n yield $d182cae0c6b8c393$var$mkdirP(destDir);\n const files = yield $d182cae0c6b8c393$var$ioUtil.readdir(sourceDir);\n for (const fileName of files){\n const srcFile = `${sourceDir}/${fileName}`;\n const destFile = `${destDir}/${fileName}`;\n const srcFileStat = yield $d182cae0c6b8c393$var$ioUtil.lstat(srcFile);\n if (srcFileStat.isDirectory()) // Recurse\n yield $d182cae0c6b8c393$var$cpDirRecursive(srcFile, destFile, currentDepth, force);\n else yield $d182cae0c6b8c393$var$copyFile(srcFile, destFile, force);\n }\n // Change the mode for the newly created directory\n yield $d182cae0c6b8c393$var$ioUtil.chmod(destDir, (yield $d182cae0c6b8c393$var$ioUtil.stat(sourceDir)).mode);\n });\n}\n// Buffered file copy\nfunction $d182cae0c6b8c393$var$copyFile(srcFile, destFile, force) {\n return $d182cae0c6b8c393$var$__awaiter(this, void 0, void 0, function*() {\n if ((yield $d182cae0c6b8c393$var$ioUtil.lstat(srcFile)).isSymbolicLink()) {\n // unlink/re-link it\n try {\n yield $d182cae0c6b8c393$var$ioUtil.lstat(destFile);\n yield $d182cae0c6b8c393$var$ioUtil.unlink(destFile);\n } catch (e) {\n // Try to override file permission\n if (e.code === \"EPERM\") {\n yield $d182cae0c6b8c393$var$ioUtil.chmod(destFile, \"0666\");\n yield $d182cae0c6b8c393$var$ioUtil.unlink(destFile);\n }\n // other errors = it doesn't exist, no work to do\n }\n // Copy over symlink\n const symlinkFull = yield $d182cae0c6b8c393$var$ioUtil.readlink(srcFile);\n yield $d182cae0c6b8c393$var$ioUtil.symlink(symlinkFull, destFile, $d182cae0c6b8c393$var$ioUtil.IS_WINDOWS ? \"junction\" : null);\n } else if (!(yield $d182cae0c6b8c393$var$ioUtil.exists(destFile)) || force) yield $d182cae0c6b8c393$var$ioUtil.copyFile(srcFile, destFile);\n });\n}\n\n});\nparcelRegister(\"ipB3d\", function(module, exports) {\n\"use strict\";\nvar $d6774d525a29799d$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $d6774d525a29799d$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $d6774d525a29799d$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $d6774d525a29799d$var$__createBinding(result, mod, k);\n }\n $d6774d525a29799d$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $d6774d525a29799d$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $d6774d525a29799d$var$_a;\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getCmdPath = module.exports.tryGetExecutablePath = module.exports.isRooted = module.exports.isDirectory = module.exports.exists = module.exports.READONLY = module.exports.UV_FS_O_EXLOCK = module.exports.IS_WINDOWS = module.exports.unlink = module.exports.symlink = module.exports.stat = module.exports.rmdir = module.exports.rm = module.exports.rename = module.exports.readlink = module.exports.readdir = module.exports.open = module.exports.mkdir = module.exports.lstat = module.exports.copyFile = module.exports.chmod = void 0;\n\nconst $d6774d525a29799d$var$fs = $d6774d525a29799d$var$__importStar($d7DIX$fs);\n\nconst $d6774d525a29799d$var$path = $d6774d525a29799d$var$__importStar($d7DIX$path);\n$d6774d525a29799d$var$_a = $d6774d525a29799d$var$fs.promises, module.exports.chmod = $d6774d525a29799d$var$_a.chmod, module.exports.copyFile = $d6774d525a29799d$var$_a.copyFile, module.exports.lstat = $d6774d525a29799d$var$_a.lstat, module.exports.mkdir = $d6774d525a29799d$var$_a.mkdir, module.exports.open = $d6774d525a29799d$var$_a.open, module.exports.readdir = $d6774d525a29799d$var$_a.readdir, module.exports.readlink = $d6774d525a29799d$var$_a.readlink, module.exports.rename = $d6774d525a29799d$var$_a.rename, module.exports.rm = $d6774d525a29799d$var$_a.rm, module.exports.rmdir = $d6774d525a29799d$var$_a.rmdir, module.exports.stat = $d6774d525a29799d$var$_a.stat, module.exports.symlink = $d6774d525a29799d$var$_a.symlink, module.exports.unlink = $d6774d525a29799d$var$_a.unlink;\n// export const {open} = 'fs'\nmodule.exports.IS_WINDOWS = process.platform === \"win32\";\n// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691\nmodule.exports.UV_FS_O_EXLOCK = 0x10000000;\nmodule.exports.READONLY = $d6774d525a29799d$var$fs.constants.O_RDONLY;\nfunction $d6774d525a29799d$var$exists(fsPath) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n try {\n yield module.exports.stat(fsPath);\n } catch (err) {\n if (err.code === \"ENOENT\") return false;\n throw err;\n }\n return true;\n });\n}\nmodule.exports.exists = $d6774d525a29799d$var$exists;\nfunction $d6774d525a29799d$var$isDirectory(fsPath, useStat = false) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n const stats = useStat ? yield module.exports.stat(fsPath) : yield module.exports.lstat(fsPath);\n return stats.isDirectory();\n });\n}\nmodule.exports.isDirectory = $d6774d525a29799d$var$isDirectory;\n/**\n * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:\n * \\, \\hello, \\\\hello\\share, C:, and C:\\hello (and corresponding alternate separator cases).\n */ function $d6774d525a29799d$var$isRooted(p) {\n p = $d6774d525a29799d$var$normalizeSeparators(p);\n if (!p) throw new Error('isRooted() parameter \"p\" cannot be empty');\n if (module.exports.IS_WINDOWS) return p.startsWith(\"\\\\\") || /^[A-Z]:/i.test(p) // e.g. \\ or \\hello or \\\\hello\n ; // e.g. C: or C:\\hello\n return p.startsWith(\"/\");\n}\nmodule.exports.isRooted = $d6774d525a29799d$var$isRooted;\n/**\n * Best effort attempt to determine whether a file exists and is executable.\n * @param filePath file path to check\n * @param extensions additional file extensions to try\n * @return if file exists and is executable, returns the file path. otherwise empty string.\n */ function $d6774d525a29799d$var$tryGetExecutablePath(filePath, extensions) {\n return $d6774d525a29799d$var$__awaiter(this, void 0, void 0, function*() {\n let stats = undefined;\n try {\n // test file exists\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // on Windows, test for valid extension\n const upperExt = $d6774d525a29799d$var$path.extname(filePath).toUpperCase();\n if (extensions.some((validExt)=>validExt.toUpperCase() === upperExt)) return filePath;\n } else {\n if ($d6774d525a29799d$var$isUnixExecutable(stats)) return filePath;\n }\n }\n // try each extension\n const originalFilePath = filePath;\n for (const extension of extensions){\n filePath = originalFilePath + extension;\n stats = undefined;\n try {\n stats = yield module.exports.stat(filePath);\n } catch (err) {\n if (err.code !== \"ENOENT\") // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);\n }\n if (stats && stats.isFile()) {\n if (module.exports.IS_WINDOWS) {\n // preserve the case of the actual file (since an extension was appended)\n try {\n const directory = $d6774d525a29799d$var$path.dirname(filePath);\n const upperName = $d6774d525a29799d$var$path.basename(filePath).toUpperCase();\n for (const actualName of yield module.exports.readdir(directory))if (upperName === actualName.toUpperCase()) {\n filePath = $d6774d525a29799d$var$path.join(directory, actualName);\n break;\n }\n } catch (err) {\n // eslint-disable-next-line no-console\n console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);\n }\n return filePath;\n } else {\n if ($d6774d525a29799d$var$isUnixExecutable(stats)) return filePath;\n }\n }\n }\n return \"\";\n });\n}\nmodule.exports.tryGetExecutablePath = $d6774d525a29799d$var$tryGetExecutablePath;\nfunction $d6774d525a29799d$var$normalizeSeparators(p) {\n p = p || \"\";\n if (module.exports.IS_WINDOWS) {\n // convert slashes on Windows\n p = p.replace(/\\//g, \"\\\\\");\n // remove redundant slashes\n return p.replace(/\\\\\\\\+/g, \"\\\\\");\n }\n // remove redundant slashes\n return p.replace(/\\/\\/+/g, \"/\");\n}\n// on Mac/Linux, test the execute bit\n// R W X R W X R W X\n// 256 128 64 32 16 8 4 2 1\nfunction $d6774d525a29799d$var$isUnixExecutable(stats) {\n return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && stats.uid === process.getuid();\n}\n// Get the path of cmd.exe in windows\nfunction $d6774d525a29799d$var$getCmdPath() {\n var _a;\n return (_a = process.env[\"COMSPEC\"]) !== null && _a !== void 0 ? _a : `cmd.exe`;\n}\nmodule.exports.getCmdPath = $d6774d525a29799d$var$getCmdPath;\n\n});\n\n\nparcelRegister(\"42L4Y\", function(module, exports) {\n\"use strict\";\nvar $2f1bde43f3e1d36b$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $2f1bde43f3e1d36b$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $2f1bde43f3e1d36b$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $2f1bde43f3e1d36b$var$__createBinding(result, mod, k);\n }\n $2f1bde43f3e1d36b$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $2f1bde43f3e1d36b$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports._readLinuxVersionFile = module.exports._getOsVersion = module.exports._findMatch = void 0;\n\nconst $2f1bde43f3e1d36b$var$semver = $2f1bde43f3e1d36b$var$__importStar((parcelRequire(\"lroIv\")));\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\n\nfunction $2f1bde43f3e1d36b$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $2f1bde43f3e1d36b$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $d7DIX$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $4t50X.debug(`check ${version} satisfies ${versionSpec}`);\n if ($2f1bde43f3e1d36b$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $4t50X.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);\n let chk = item.arch === archFilter && item.platform === platFilter;\n if (chk && item.platform_version) {\n const osVersion = module.exports._getOsVersion();\n if (osVersion === item.platform_version) chk = true;\n else chk = $2f1bde43f3e1d36b$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $4t50X.debug(`matched ${candidate.version}`);\n match = candidate;\n break;\n }\n }\n }\n if (match && file) {\n // clone since we're mutating the file list to be only the file that matches\n result = Object.assign({}, match);\n result.files = [\n file\n ];\n }\n return result;\n });\n}\nmodule.exports._findMatch = $2f1bde43f3e1d36b$var$_findMatch;\nfunction $2f1bde43f3e1d36b$var$_getOsVersion() {\n // TODO: add windows and other linux, arm variants\n // right now filtering on version is only an ubuntu and macos scenario for tools we build for hosted (python)\n const plat = $d7DIX$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $d7DIX$child_process.execSync(\"sw_vers -productVersion\").toString();\n else if (plat === \"linux\") {\n // lsb_release process not in some containers, readfile\n // Run cat /etc/lsb-release\n // DISTRIB_ID=Ubuntu\n // DISTRIB_RELEASE=18.04\n // DISTRIB_CODENAME=bionic\n // DISTRIB_DESCRIPTION=\"Ubuntu 18.04.4 LTS\"\n const lsbContents = module.exports._readLinuxVersionFile();\n if (lsbContents) {\n const lines = lsbContents.split(\"\\n\");\n for (const line of lines){\n const parts = line.split(\"=\");\n if (parts.length === 2 && (parts[0].trim() === \"VERSION_ID\" || parts[0].trim() === \"DISTRIB_RELEASE\")) {\n version = parts[1].trim().replace(/^\"/, \"\").replace(/\"$/, \"\");\n break;\n }\n }\n }\n }\n return version;\n}\nmodule.exports._getOsVersion = $2f1bde43f3e1d36b$var$_getOsVersion;\nfunction $2f1bde43f3e1d36b$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($d7DIX$fs.existsSync(lsbReleaseFile)) contents = $d7DIX$fs.readFileSync(lsbReleaseFile).toString();\n else if ($d7DIX$fs.existsSync(osReleaseFile)) contents = $d7DIX$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $2f1bde43f3e1d36b$var$_readLinuxVersionFile;\n\n});\nparcelRegister(\"lroIv\", function(module, exports) {\nexports = module.exports = SemVer;\nvar debug;\n/* istanbul ignore next */ if (typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) debug = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n args.unshift(\"SEMVER\");\n console.log.apply(console, args);\n};\nelse debug = function() {};\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = \"2.0.0\";\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991;\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16;\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n// The actual regexps go on exports.re\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.tokens = {};\nvar R = 0;\nfunction tok(n) {\n t[n] = R++;\n}\nvar LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n [\n \"\\\\s\",\n 1\n ],\n [\n \"\\\\d\",\n MAX_LENGTH\n ],\n [\n LETTERDASHNUMBER,\n MAX_SAFE_BUILD_LENGTH\n ]\n];\nfunction makeSafeRe(value) {\n for(var i = 0; i < safeRegexReplacements.length; i++){\n var token = safeRegexReplacements[i][0];\n var max = safeRegexReplacements[i][1];\n value = value.split(token + \"*\").join(token + \"{0,\" + max + \"}\").split(token + \"+\").join(token + \"{1,\" + max + \"}\");\n }\n return value;\n}\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\ntok(\"NUMERICIDENTIFIER\");\nsrc[t.NUMERICIDENTIFIER] = \"0|[1-9]\\\\d*\";\ntok(\"NUMERICIDENTIFIERLOOSE\");\nsrc[t.NUMERICIDENTIFIERLOOSE] = \"\\\\d+\";\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\ntok(\"NONNUMERICIDENTIFIER\");\nsrc[t.NONNUMERICIDENTIFIER] = \"\\\\d*[a-zA-Z-]\" + LETTERDASHNUMBER + \"*\";\n// ## Main Version\n// Three dot-separated numeric identifiers.\ntok(\"MAINVERSION\");\nsrc[t.MAINVERSION] = \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIER] + \")\";\ntok(\"MAINVERSIONLOOSE\");\nsrc[t.MAINVERSIONLOOSE] = \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\\\\.\" + \"(\" + src[t.NUMERICIDENTIFIERLOOSE] + \")\";\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\ntok(\"PRERELEASEIDENTIFIER\");\nsrc[t.PRERELEASEIDENTIFIER] = \"(?:\" + src[t.NUMERICIDENTIFIER] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\ntok(\"PRERELEASEIDENTIFIERLOOSE\");\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = \"(?:\" + src[t.NUMERICIDENTIFIERLOOSE] + \"|\" + src[t.NONNUMERICIDENTIFIER] + \")\";\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\ntok(\"PRERELEASE\");\nsrc[t.PRERELEASE] = \"(?:-(\" + src[t.PRERELEASEIDENTIFIER] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIER] + \")*))\";\ntok(\"PRERELEASELOOSE\");\nsrc[t.PRERELEASELOOSE] = \"(?:-?(\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \"(?:\\\\.\" + src[t.PRERELEASEIDENTIFIERLOOSE] + \")*))\";\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\ntok(\"BUILDIDENTIFIER\");\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + \"+\";\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\ntok(\"BUILD\");\nsrc[t.BUILD] = \"(?:\\\\+(\" + src[t.BUILDIDENTIFIER] + \"(?:\\\\.\" + src[t.BUILDIDENTIFIER] + \")*))\";\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\ntok(\"FULL\");\ntok(\"FULLPLAIN\");\nsrc[t.FULLPLAIN] = \"v?\" + src[t.MAINVERSION] + src[t.PRERELEASE] + \"?\" + src[t.BUILD] + \"?\";\nsrc[t.FULL] = \"^\" + src[t.FULLPLAIN] + \"$\";\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok(\"LOOSEPLAIN\");\nsrc[t.LOOSEPLAIN] = \"[v=\\\\s]*\" + src[t.MAINVERSIONLOOSE] + src[t.PRERELEASELOOSE] + \"?\" + src[t.BUILD] + \"?\";\ntok(\"LOOSE\");\nsrc[t.LOOSE] = \"^\" + src[t.LOOSEPLAIN] + \"$\";\ntok(\"GTLT\");\nsrc[t.GTLT] = \"((?:<|>)?=?)\";\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok(\"XRANGEIDENTIFIERLOOSE\");\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + \"|x|X|\\\\*\";\ntok(\"XRANGEIDENTIFIER\");\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + \"|x|X|\\\\*\";\ntok(\"XRANGEPLAIN\");\nsrc[t.XRANGEPLAIN] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIER] + \")\" + \"(?:\" + src[t.PRERELEASE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGEPLAINLOOSE\");\nsrc[t.XRANGEPLAINLOOSE] = \"[v=\\\\s]*(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\\\\.(\" + src[t.XRANGEIDENTIFIERLOOSE] + \")\" + \"(?:\" + src[t.PRERELEASELOOSE] + \")?\" + src[t.BUILD] + \"?\" + \")?)?\";\ntok(\"XRANGE\");\nsrc[t.XRANGE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAIN] + \"$\";\ntok(\"XRANGELOOSE\");\nsrc[t.XRANGELOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*\" + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok(\"COERCE\");\nsrc[t.COERCE] = \"(^|[^\\\\d])(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"})\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:\\\\.(\\\\d{1,\" + MAX_SAFE_COMPONENT_LENGTH + \"}))?\" + \"(?:$|[^\\\\d])\";\ntok(\"COERCERTL\");\nre[t.COERCERTL] = new RegExp(src[t.COERCE], \"g\");\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), \"g\");\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok(\"LONETILDE\");\nsrc[t.LONETILDE] = \"(?:~>?)\";\ntok(\"TILDETRIM\");\nsrc[t.TILDETRIM] = \"(\\\\s*)\" + src[t.LONETILDE] + \"\\\\s+\";\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], \"g\");\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), \"g\");\nvar tildeTrimReplace = \"$1~\";\ntok(\"TILDE\");\nsrc[t.TILDE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"TILDELOOSE\");\nsrc[t.TILDELOOSE] = \"^\" + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok(\"LONECARET\");\nsrc[t.LONECARET] = \"(?:\\\\^)\";\ntok(\"CARETTRIM\");\nsrc[t.CARETTRIM] = \"(\\\\s*)\" + src[t.LONECARET] + \"\\\\s+\";\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], \"g\");\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), \"g\");\nvar caretTrimReplace = \"$1^\";\ntok(\"CARET\");\nsrc[t.CARET] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAIN] + \"$\";\ntok(\"CARETLOOSE\");\nsrc[t.CARETLOOSE] = \"^\" + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + \"$\";\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok(\"COMPARATORLOOSE\");\nsrc[t.COMPARATORLOOSE] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \")$|^$\";\ntok(\"COMPARATOR\");\nsrc[t.COMPARATOR] = \"^\" + src[t.GTLT] + \"\\\\s*(\" + src[t.FULLPLAIN] + \")$|^$\";\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok(\"COMPARATORTRIM\");\nsrc[t.COMPARATORTRIM] = \"(\\\\s*)\" + src[t.GTLT] + \"\\\\s*(\" + src[t.LOOSEPLAIN] + \"|\" + src[t.XRANGEPLAIN] + \")\";\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], \"g\");\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), \"g\");\nvar comparatorTrimReplace = \"$1$2$3\";\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok(\"HYPHENRANGE\");\nsrc[t.HYPHENRANGE] = \"^\\\\s*(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAIN] + \")\" + \"\\\\s*$\";\ntok(\"HYPHENRANGELOOSE\");\nsrc[t.HYPHENRANGELOOSE] = \"^\\\\s*(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s+-\\\\s+\" + \"(\" + src[t.XRANGEPLAINLOOSE] + \")\" + \"\\\\s*$\";\n// Star ranges basically just allow anything at all.\ntok(\"STAR\");\nsrc[t.STAR] = \"(<|>)?=?\\\\s*\\\\*\";\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor(var i = 0; i < R; i++){\n debug(i, src[i]);\n if (!re[i]) {\n re[i] = new RegExp(src[i]);\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]));\n }\n}\nexports.parse = parse;\nfunction parse(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) return version;\n if (typeof version !== \"string\") return null;\n if (version.length > MAX_LENGTH) return null;\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL];\n if (!r.test(version)) return null;\n try {\n return new SemVer(version, options);\n } catch (er) {\n return null;\n }\n}\nexports.valid = valid;\nfunction valid(version, options) {\n var v = parse(version, options);\n return v ? v.version : null;\n}\nexports.clean = clean;\nfunction clean(version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, \"\"), options);\n return s ? s.version : null;\n}\nexports.SemVer = SemVer;\nfunction SemVer(version, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (version instanceof SemVer) {\n if (version.loose === options.loose) return version;\n else version = version.version;\n } else if (typeof version !== \"string\") throw new TypeError(\"Invalid Version: \" + version);\n if (version.length > MAX_LENGTH) throw new TypeError(\"version is longer than \" + MAX_LENGTH + \" characters\");\n if (!(this instanceof SemVer)) return new SemVer(version, options);\n debug(\"SemVer\", version, options);\n this.options = options;\n this.loose = !!options.loose;\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);\n if (!m) throw new TypeError(\"Invalid Version: \" + version);\n this.raw = version;\n // these are actually numbers\n this.major = +m[1];\n this.minor = +m[2];\n this.patch = +m[3];\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError(\"Invalid major version\");\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError(\"Invalid minor version\");\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError(\"Invalid patch version\");\n // numberify any prerelease numeric ids\n if (!m[4]) this.prerelease = [];\n else this.prerelease = m[4].split(\".\").map(function(id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id;\n if (num >= 0 && num < MAX_SAFE_INTEGER) return num;\n }\n return id;\n });\n this.build = m[5] ? m[5].split(\".\") : [];\n this.format();\n}\nSemVer.prototype.format = function() {\n this.version = this.major + \".\" + this.minor + \".\" + this.patch;\n if (this.prerelease.length) this.version += \"-\" + this.prerelease.join(\".\");\n return this.version;\n};\nSemVer.prototype.toString = function() {\n return this.version;\n};\nSemVer.prototype.compare = function(other) {\n debug(\"SemVer.compare\", this.version, this.options, other);\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return this.compareMain(other) || this.comparePre(other);\n};\nSemVer.prototype.compareMain = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n};\nSemVer.prototype.comparePre = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) return -1;\n else if (!this.prerelease.length && other.prerelease.length) return 1;\n else if (!this.prerelease.length && !other.prerelease.length) return 0;\n var i = 0;\n do {\n var a = this.prerelease[i];\n var b = other.prerelease[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\nSemVer.prototype.compareBuild = function(other) {\n if (!(other instanceof SemVer)) other = new SemVer(other, this.options);\n var i = 0;\n do {\n var a = this.build[i];\n var b = other.build[i];\n debug(\"prerelease compare\", i, a, b);\n if (a === undefined && b === undefined) return 0;\n else if (b === undefined) return 1;\n else if (a === undefined) return -1;\n else if (a === b) continue;\n else return compareIdentifiers(a, b);\n }while (++i);\n};\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function(release, identifier) {\n switch(release){\n case \"premajor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor = 0;\n this.major++;\n this.inc(\"pre\", identifier);\n break;\n case \"preminor\":\n this.prerelease.length = 0;\n this.patch = 0;\n this.minor++;\n this.inc(\"pre\", identifier);\n break;\n case \"prepatch\":\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0;\n this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case \"prerelease\":\n if (this.prerelease.length === 0) this.inc(\"patch\", identifier);\n this.inc(\"pre\", identifier);\n break;\n case \"major\":\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;\n this.minor = 0;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"minor\":\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;\n this.patch = 0;\n this.prerelease = [];\n break;\n case \"patch\":\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) this.patch++;\n this.prerelease = [];\n break;\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case \"pre\":\n if (this.prerelease.length === 0) this.prerelease = [\n 0\n ];\n else {\n var i = this.prerelease.length;\n while(--i >= 0)if (typeof this.prerelease[i] === \"number\") {\n this.prerelease[i]++;\n i = -2;\n }\n if (i === -1) // didn't increment anything\n this.prerelease.push(0);\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) this.prerelease = [\n identifier,\n 0\n ];\n } else this.prerelease = [\n identifier,\n 0\n ];\n }\n break;\n default:\n throw new Error(\"invalid increment argument: \" + release);\n }\n this.format();\n this.raw = this.version;\n return this;\n};\nexports.inc = inc;\nfunction inc(version, release, loose, identifier) {\n if (typeof loose === \"string\") {\n identifier = loose;\n loose = undefined;\n }\n try {\n return new SemVer(version, loose).inc(release, identifier).version;\n } catch (er) {\n return null;\n }\n}\nexports.diff = diff;\nfunction diff(version1, version2) {\n if (eq(version1, version2)) return null;\n else {\n var v1 = parse(version1);\n var v2 = parse(version2);\n var prefix = \"\";\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = \"pre\";\n var defaultResult = \"prerelease\";\n }\n for(var key in v1)if (key === \"major\" || key === \"minor\" || key === \"patch\") {\n if (v1[key] !== v2[key]) return prefix + key;\n }\n return defaultResult // may be undefined\n ;\n }\n}\nexports.compareIdentifiers = compareIdentifiers;\nvar numeric = /^[0-9]+$/;\nfunction compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n}\nexports.rcompareIdentifiers = rcompareIdentifiers;\nfunction rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n}\nexports.major = major;\nfunction major(a, loose) {\n return new SemVer(a, loose).major;\n}\nexports.minor = minor;\nfunction minor(a, loose) {\n return new SemVer(a, loose).minor;\n}\nexports.patch = patch;\nfunction patch(a, loose) {\n return new SemVer(a, loose).patch;\n}\nexports.compare = compare;\nfunction compare(a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose));\n}\nexports.compareLoose = compareLoose;\nfunction compareLoose(a, b) {\n return compare(a, b, true);\n}\nexports.compareBuild = compareBuild;\nfunction compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n}\nexports.rcompare = rcompare;\nfunction rcompare(a, b, loose) {\n return compare(b, a, loose);\n}\nexports.sort = sort;\nfunction sort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(a, b, loose);\n });\n}\nexports.rsort = rsort;\nfunction rsort(list, loose) {\n return list.sort(function(a, b) {\n return exports.compareBuild(b, a, loose);\n });\n}\nexports.gt = gt;\nfunction gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n}\nexports.lt = lt;\nfunction lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n}\nexports.eq = eq;\nfunction eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n}\nexports.neq = neq;\nfunction neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n}\nexports.gte = gte;\nfunction gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n}\nexports.lte = lte;\nfunction lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n}\nexports.cmp = cmp;\nfunction cmp(a, op, b, loose) {\n switch(op){\n case \"===\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a === b;\n case \"!==\":\n if (typeof a === \"object\") a = a.version;\n if (typeof b === \"object\") b = b.version;\n return a !== b;\n case \"\":\n case \"=\":\n case \"==\":\n return eq(a, b, loose);\n case \"!=\":\n return neq(a, b, loose);\n case \">\":\n return gt(a, b, loose);\n case \">=\":\n return gte(a, b, loose);\n case \"<\":\n return lt(a, b, loose);\n case \"<=\":\n return lte(a, b, loose);\n default:\n throw new TypeError(\"Invalid operator: \" + op);\n }\n}\nexports.Comparator = Comparator;\nfunction Comparator(comp, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) return comp;\n else comp = comp.value;\n }\n if (!(this instanceof Comparator)) return new Comparator(comp, options);\n comp = comp.trim().split(/\\s+/).join(\" \");\n debug(\"comparator\", comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n if (this.semver === ANY) this.value = \"\";\n else this.value = this.operator + this.semver.version;\n debug(\"comp\", this);\n}\nvar ANY = {};\nComparator.prototype.parse = function(comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var m = comp.match(r);\n if (!m) throw new TypeError(\"Invalid comparator: \" + comp);\n this.operator = m[1] !== undefined ? m[1] : \"\";\n if (this.operator === \"=\") this.operator = \"\";\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) this.semver = ANY;\n else this.semver = new SemVer(m[2], this.options.loose);\n};\nComparator.prototype.toString = function() {\n return this.value;\n};\nComparator.prototype.test = function(version) {\n debug(\"Comparator.test\", version, this.options.loose);\n if (this.semver === ANY || version === ANY) return true;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n return cmp(version, this.operator, this.semver, this.options);\n};\nComparator.prototype.intersects = function(comp, options) {\n if (!(comp instanceof Comparator)) throw new TypeError(\"a Comparator is required\");\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n var rangeTmp;\n if (this.operator === \"\") {\n if (this.value === \"\") return true;\n rangeTmp = new Range(comp.value, options);\n return satisfies(this.value, rangeTmp, options);\n } else if (comp.operator === \"\") {\n if (comp.value === \"\") return true;\n rangeTmp = new Range(this.value, options);\n return satisfies(comp.semver, rangeTmp, options);\n }\n var sameDirectionIncreasing = (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \">=\" || comp.operator === \">\");\n var sameDirectionDecreasing = (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var sameSemVer = this.semver.version === comp.semver.version;\n var differentDirectionsInclusive = (this.operator === \">=\" || this.operator === \"<=\") && (comp.operator === \">=\" || comp.operator === \"<=\");\n var oppositeDirectionsLessThan = cmp(this.semver, \"<\", comp.semver, options) && (this.operator === \">=\" || this.operator === \">\") && (comp.operator === \"<=\" || comp.operator === \"<\");\n var oppositeDirectionsGreaterThan = cmp(this.semver, \">\", comp.semver, options) && (this.operator === \"<=\" || this.operator === \"<\") && (comp.operator === \">=\" || comp.operator === \">\");\n return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;\n};\nexports.Range = Range;\nfunction Range(range, options) {\n if (!options || typeof options !== \"object\") options = {\n loose: !!options,\n includePrerelease: false\n };\n if (range instanceof Range) {\n if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;\n else return new Range(range.raw, options);\n }\n if (range instanceof Comparator) return new Range(range.value, options);\n if (!(this instanceof Range)) return new Range(range, options);\n this.options = options;\n this.loose = !!options.loose;\n this.includePrerelease = !!options.includePrerelease;\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().split(/\\s+/).join(\" \");\n // First, split based on boolean or ||\n this.set = this.raw.split(\"||\").map(function(range) {\n return this.parseRange(range.trim());\n }, this).filter(function(c) {\n // throw out any that are not relevant for whatever reason\n return c.length;\n });\n if (!this.set.length) throw new TypeError(\"Invalid SemVer Range: \" + this.raw);\n this.format();\n}\nRange.prototype.format = function() {\n this.range = this.set.map(function(comps) {\n return comps.join(\" \").trim();\n }).join(\"||\").trim();\n return this.range;\n};\nRange.prototype.toString = function() {\n return this.range;\n};\nRange.prototype.parseRange = function(range) {\n var loose = this.options.loose;\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];\n range = range.replace(hr, hyphenReplace);\n debug(\"hyphen replace\", range);\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);\n debug(\"comparator trim\", range, safeRe[t.COMPARATORTRIM]);\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);\n // normalize spaces\n range = range.split(/\\s+/).join(\" \");\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR];\n var set = range.split(\" \").map(function(comp) {\n return parseComparator(comp, this.options);\n }, this).join(\" \").split(/\\s+/);\n if (this.options.loose) // in loose mode, throw out any that are not valid comparators\n set = set.filter(function(comp) {\n return !!comp.match(compRe);\n });\n set = set.map(function(comp) {\n return new Comparator(comp, this.options);\n }, this);\n return set;\n};\nRange.prototype.intersects = function(range, options) {\n if (!(range instanceof Range)) throw new TypeError(\"a Range is required\");\n return this.set.some(function(thisComparators) {\n return isSatisfiable(thisComparators, options) && range.set.some(function(rangeComparators) {\n return isSatisfiable(rangeComparators, options) && thisComparators.every(function(thisComparator) {\n return rangeComparators.every(function(rangeComparator) {\n return thisComparator.intersects(rangeComparator, options);\n });\n });\n });\n });\n};\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable(comparators, options) {\n var result = true;\n var remainingComparators = comparators.slice();\n var testComparator = remainingComparators.pop();\n while(result && remainingComparators.length){\n result = remainingComparators.every(function(otherComparator) {\n return testComparator.intersects(otherComparator, options);\n });\n testComparator = remainingComparators.pop();\n }\n return result;\n}\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators;\nfunction toComparators(range, options) {\n return new Range(range, options).set.map(function(comp) {\n return comp.map(function(c) {\n return c.value;\n }).join(\" \").trim().split(\" \");\n });\n}\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator(comp, options) {\n debug(\"comp\", comp, options);\n comp = replaceCarets(comp, options);\n debug(\"caret\", comp);\n comp = replaceTildes(comp, options);\n debug(\"tildes\", comp);\n comp = replaceXRanges(comp, options);\n debug(\"xrange\", comp);\n comp = replaceStars(comp, options);\n debug(\"stars\", comp);\n return comp;\n}\nfunction isX(id) {\n return !id || id.toLowerCase() === \"x\" || id === \"*\";\n}\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceTilde(comp, options);\n }).join(\" \");\n}\nfunction replaceTilde(comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"tilde\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) // ~1.2 == >=1.2.0 <1.3.0\n ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else if (pr) {\n debug(\"replaceTilde pr\", pr);\n ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else // ~1.2.3 == >=1.2.3 <1.3.0\n ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n debug(\"tilde return\", ret);\n return ret;\n });\n}\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets(comp, options) {\n return comp.trim().split(/\\s+/).map(function(comp) {\n return replaceCaret(comp, options);\n }).join(\" \");\n}\nfunction replaceCaret(comp, options) {\n debug(\"caret\", comp, options);\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];\n return comp.replace(r, function(_, M, m, p, pr) {\n debug(\"caret\", comp, _, M, m, p, pr);\n var ret;\n if (isX(M)) ret = \"\";\n else if (isX(m)) ret = \">=\" + M + \".0.0 <\" + (+M + 1) + \".0.0\";\n else if (isX(p)) {\n if (M === \"0\") ret = \">=\" + M + \".\" + m + \".0 <\" + M + \".\" + (+m + 1) + \".0\";\n else ret = \">=\" + M + \".\" + m + \".0 <\" + (+M + 1) + \".0.0\";\n } else if (pr) {\n debug(\"replaceCaret pr\", pr);\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \"-\" + pr + \" <\" + (+M + 1) + \".0.0\";\n } else {\n debug(\"no pr\");\n if (M === \"0\") {\n if (m === \"0\") ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + m + \".\" + (+p + 1);\n else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + M + \".\" + (+m + 1) + \".0\";\n } else ret = \">=\" + M + \".\" + m + \".\" + p + \" <\" + (+M + 1) + \".0.0\";\n }\n debug(\"caret return\", ret);\n return ret;\n });\n}\nfunction replaceXRanges(comp, options) {\n debug(\"replaceXRanges\", comp, options);\n return comp.split(/\\s+/).map(function(comp) {\n return replaceXRange(comp, options);\n }).join(\" \");\n}\nfunction replaceXRange(comp, options) {\n comp = comp.trim();\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];\n return comp.replace(r, function(ret, gtlt, M, m, p, pr) {\n debug(\"xRange\", comp, ret, gtlt, M, m, p, pr);\n var xM = isX(M);\n var xm = xM || isX(m);\n var xp = xm || isX(p);\n var anyX = xp;\n if (gtlt === \"=\" && anyX) gtlt = \"\";\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? \"-0\" : \"\";\n if (xM) {\n if (gtlt === \">\" || gtlt === \"<\") // nothing is allowed\n ret = \"<0.0.0-0\";\n else // nothing is forbidden\n ret = \"*\";\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) m = 0;\n p = 0;\n if (gtlt === \">\") {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = \">=\";\n if (xm) {\n M = +M + 1;\n m = 0;\n p = 0;\n } else {\n m = +m + 1;\n p = 0;\n }\n } else if (gtlt === \"<=\") {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = \"<\";\n if (xm) M = +M + 1;\n else m = +m + 1;\n }\n ret = gtlt + M + \".\" + m + \".\" + p + pr;\n } else if (xm) ret = \">=\" + M + \".0.0\" + pr + \" <\" + (+M + 1) + \".0.0\" + pr;\n else if (xp) ret = \">=\" + M + \".\" + m + \".0\" + pr + \" <\" + M + \".\" + (+m + 1) + \".0\" + pr;\n debug(\"xRange return\", ret);\n return ret;\n });\n}\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars(comp, options) {\n debug(\"replaceStars\", comp, options);\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], \"\");\n}\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) from = \"\";\n else if (isX(fm)) from = \">=\" + fM + \".0.0\";\n else if (isX(fp)) from = \">=\" + fM + \".\" + fm + \".0\";\n else from = \">=\" + from;\n if (isX(tM)) to = \"\";\n else if (isX(tm)) to = \"<\" + (+tM + 1) + \".0.0\";\n else if (isX(tp)) to = \"<\" + tM + \".\" + (+tm + 1) + \".0\";\n else if (tpr) to = \"<=\" + tM + \".\" + tm + \".\" + tp + \"-\" + tpr;\n else to = \"<=\" + to;\n return (from + \" \" + to).trim();\n}\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function(version) {\n if (!version) return false;\n if (typeof version === \"string\") try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n for(var i = 0; i < this.set.length; i++){\n if (testSet(this.set[i], version, this.options)) return true;\n }\n return false;\n};\nfunction testSet(set, version, options) {\n for(var i = 0; i < set.length; i++){\n if (!set[i].test(version)) return false;\n }\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for(i = 0; i < set.length; i++){\n debug(set[i].semver);\n if (set[i].semver === ANY) continue;\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver;\n if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) return true;\n }\n }\n // Version has a -pre, but it's not one of the ones we like.\n return false;\n }\n return true;\n}\nexports.satisfies = satisfies;\nfunction satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n return range.test(version);\n}\nexports.maxSatisfying = maxSatisfying;\nfunction maxSatisfying(versions, range, options) {\n var max = null;\n var maxSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v;\n maxSV = new SemVer(max, options);\n }\n }\n });\n return max;\n}\nexports.minSatisfying = minSatisfying;\nfunction minSatisfying(versions, range, options) {\n var min = null;\n var minSV = null;\n try {\n var rangeObj = new Range(range, options);\n } catch (er) {\n return null;\n }\n versions.forEach(function(v) {\n if (rangeObj.test(v)) // satisfies(v, range, options)\n {\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v;\n minSV = new SemVer(min, options);\n }\n }\n });\n return min;\n}\nexports.minVersion = minVersion;\nfunction minVersion(range, loose) {\n range = new Range(range, loose);\n var minver = new SemVer(\"0.0.0\");\n if (range.test(minver)) return minver;\n minver = new SemVer(\"0.0.0-0\");\n if (range.test(minver)) return minver;\n minver = null;\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n comparators.forEach(function(comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version);\n switch(comparator.operator){\n case \">\":\n if (compver.prerelease.length === 0) compver.patch++;\n else compver.prerelease.push(0);\n compver.raw = compver.format();\n /* fallthrough */ case \"\":\n case \">=\":\n if (!minver || gt(minver, compver)) minver = compver;\n break;\n case \"<\":\n case \"<=\":\n break;\n /* istanbul ignore next */ default:\n throw new Error(\"Unexpected operation: \" + comparator.operator);\n }\n });\n }\n if (minver && range.test(minver)) return minver;\n return null;\n}\nexports.validRange = validRange;\nfunction validRange(range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || \"*\";\n } catch (er) {\n return null;\n }\n}\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr;\nfunction ltr(version, range, options) {\n return outside(version, range, \"<\", options);\n}\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr;\nfunction gtr(version, range, options) {\n return outside(version, range, \">\", options);\n}\nexports.outside = outside;\nfunction outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n switch(hilo){\n case \">\":\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = \">\";\n ecomp = \">=\";\n break;\n case \"<\":\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = \"<\";\n ecomp = \"<=\";\n break;\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n }\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) return false;\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n for(var i = 0; i < range.set.length; ++i){\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function(comparator) {\n if (comparator.semver === ANY) comparator = new Comparator(\">=0.0.0\");\n high = high || comparator;\n low = low || comparator;\n if (gtfn(comparator.semver, high.semver, options)) high = comparator;\n else if (ltfn(comparator.semver, low.semver, options)) low = comparator;\n });\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) return false;\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) return false;\n else if (low.operator === ecomp && ltfn(version, low.semver)) return false;\n }\n return true;\n}\nexports.prerelease = prerelease;\nfunction prerelease(version, options) {\n var parsed = parse(version, options);\n return parsed && parsed.prerelease.length ? parsed.prerelease : null;\n}\nexports.intersects = intersects;\nfunction intersects(r1, r2, options) {\n r1 = new Range(r1, options);\n r2 = new Range(r2, options);\n return r1.intersects(r2);\n}\nexports.coerce = coerce;\nfunction coerce(version, options) {\n if (version instanceof SemVer) return version;\n if (typeof version === \"number\") version = String(version);\n if (typeof version !== \"string\") return null;\n options = options || {};\n var match = null;\n if (!options.rtl) match = version.match(safeRe[t.COERCE]);\n else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next;\n while((next = safeRe[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)){\n if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1;\n }\n if (match === null) return null;\n return parse(match[2] + \".\" + (match[3] || \"0\") + \".\" + (match[4] || \"0\"), options);\n}\n\n});\n\n\nparcelRegister(\"eAF86\", function(module, exports) {\n\nvar $1W8as = parcelRequire(\"1W8as\");\n\nvar $hTpVN = parcelRequire(\"hTpVN\");\nfunction $a9f454f8e288d649$var$v4(options, buf, offset) {\n var i = buf && offset || 0;\n if (typeof options == \"string\") {\n buf = options === \"binary\" ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n var rnds = options.random || (options.rng || $1W8as)();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n // Copy bytes to buffer, if provided\n if (buf) for(var ii = 0; ii < 16; ++ii)buf[i + ii] = rnds[ii];\n return buf || $hTpVN(rnds);\n}\nmodule.exports = $a9f454f8e288d649$var$v4;\n\n});\nparcelRegister(\"1W8as\", function(module, exports) {\n// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nmodule.exports = function nodeRNG() {\n return $d7DIX$crypto.randomBytes(16);\n};\n\n});\n\nparcelRegister(\"hTpVN\", function(module, exports) {\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */ var $d06bb019f71e9144$var$byteToHex = [];\nfor(var $d06bb019f71e9144$var$i = 0; $d06bb019f71e9144$var$i < 256; ++$d06bb019f71e9144$var$i)$d06bb019f71e9144$var$byteToHex[$d06bb019f71e9144$var$i] = ($d06bb019f71e9144$var$i + 0x100).toString(16).substr(1);\nfunction $d06bb019f71e9144$var$bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = $d06bb019f71e9144$var$byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n \"-\",\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]]\n ].join(\"\");\n}\nmodule.exports = $d06bb019f71e9144$var$bytesToUuid;\n\n});\n\n\nparcelRegister(\"1f6JF\", function(module, exports) {\n\"use strict\";\nvar $0e7c6aae7f120a88$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0e7c6aae7f120a88$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0e7c6aae7f120a88$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0e7c6aae7f120a88$var$__createBinding(result, mod, k);\n }\n $0e7c6aae7f120a88$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $0e7c6aae7f120a88$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.getExecOutput = module.exports.exec = void 0;\n\n\nconst $0e7c6aae7f120a88$var$tr = $0e7c6aae7f120a88$var$__importStar((parcelRequire(\"4B2AJ\")));\n/**\n * Exec a command.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code\n */ function $0e7c6aae7f120a88$var$exec(commandLine, args, options) {\n return $0e7c6aae7f120a88$var$__awaiter(this, void 0, void 0, function*() {\n const commandArgs = $0e7c6aae7f120a88$var$tr.argStringToArray(commandLine);\n if (commandArgs.length === 0) throw new Error(`Parameter 'commandLine' cannot be null or empty.`);\n // Path to tool to execute should be first arg\n const toolPath = commandArgs[0];\n args = commandArgs.slice(1).concat(args || []);\n const runner = new $0e7c6aae7f120a88$var$tr.ToolRunner(toolPath, args, options);\n return runner.exec();\n });\n}\nmodule.exports.exec = $0e7c6aae7f120a88$var$exec;\n/**\n * Exec a command and get the output.\n * Output will be streamed to the live console.\n * Returns promise with the exit code and collected stdout and stderr\n *\n * @param commandLine command to execute (can include additional args). Must be correctly escaped.\n * @param args optional arguments for tool. Escaping is handled by the lib.\n * @param options optional exec options. See ExecOptions\n * @returns Promise exit code, stdout, and stderr\n */ function $0e7c6aae7f120a88$var$getExecOutput(commandLine, args, options) {\n var _a, _b;\n return $0e7c6aae7f120a88$var$__awaiter(this, void 0, void 0, function*() {\n let stdout = \"\";\n let stderr = \"\";\n //Using string decoder covers the case where a mult-byte character is split\n const stdoutDecoder = new $d7DIX$string_decoder.StringDecoder(\"utf8\");\n const stderrDecoder = new $d7DIX$string_decoder.StringDecoder(\"utf8\");\n const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;\n const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;\n const stdErrListener = (data)=>{\n stderr += stderrDecoder.write(data);\n if (originalStdErrListener) originalStdErrListener(data);\n };\n const stdOutListener = (data)=>{\n stdout += stdoutDecoder.write(data);\n if (originalStdoutListener) originalStdoutListener(data);\n };\n const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), {\n stdout: stdOutListener,\n stderr: stdErrListener\n });\n const exitCode = yield $0e7c6aae7f120a88$var$exec(commandLine, args, Object.assign(Object.assign({}, options), {\n listeners: listeners\n }));\n //flush any remaining characters\n stdout += stdoutDecoder.end();\n stderr += stderrDecoder.end();\n return {\n exitCode: exitCode,\n stdout: stdout,\n stderr: stderr\n };\n });\n}\nmodule.exports.getExecOutput = $0e7c6aae7f120a88$var$getExecOutput;\n\n});\nparcelRegister(\"4B2AJ\", function(module, exports) {\n\"use strict\";\nvar $358ca0c13f34538f$var$__createBinding = module.exports && module.exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $358ca0c13f34538f$var$__setModuleDefault = module.exports && module.exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $358ca0c13f34538f$var$__importStar = module.exports && module.exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $358ca0c13f34538f$var$__createBinding(result, mod, k);\n }\n $358ca0c13f34538f$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $358ca0c13f34538f$var$__awaiter = module.exports && module.exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.argStringToArray = module.exports.ToolRunner = void 0;\n\nconst $358ca0c13f34538f$var$os = $358ca0c13f34538f$var$__importStar($d7DIX$os);\n\nconst $358ca0c13f34538f$var$events = $358ca0c13f34538f$var$__importStar($d7DIX$events);\n\nconst $358ca0c13f34538f$var$child = $358ca0c13f34538f$var$__importStar($d7DIX$child_process);\n\nconst $358ca0c13f34538f$var$path = $358ca0c13f34538f$var$__importStar($d7DIX$path);\n\nconst $358ca0c13f34538f$var$io = $358ca0c13f34538f$var$__importStar((parcelRequire(\"hZdK0\")));\n\nconst $358ca0c13f34538f$var$ioUtil = $358ca0c13f34538f$var$__importStar((parcelRequire(\"ipB3d\")));\n\n/* eslint-disable @typescript-eslint/unbound-method */ const $358ca0c13f34538f$var$IS_WINDOWS = process.platform === \"win32\";\n/*\n * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.\n */ class $358ca0c13f34538f$var$ToolRunner extends $358ca0c13f34538f$var$events.EventEmitter {\n constructor(toolPath, args, options){\n super();\n if (!toolPath) throw new Error(\"Parameter 'toolPath' cannot be null or empty.\");\n this.toolPath = toolPath;\n this.args = args || [];\n this.options = options || {};\n }\n _debug(message) {\n if (this.options.listeners && this.options.listeners.debug) this.options.listeners.debug(message);\n }\n _getCommandString(options, noPrefix) {\n const toolPath = this._getSpawnFileName();\n const args = this._getSpawnArgs(options);\n let cmd = noPrefix ? \"\" : \"[command]\"; // omit prefix when piped to a second tool\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n // Windows + cmd file\n if (this._isCmdFile()) {\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n } else if (options.windowsVerbatimArguments) {\n cmd += `\"${toolPath}\"`;\n for (const a of args)cmd += ` ${a}`;\n } else {\n cmd += this._windowsQuoteCmdArg(toolPath);\n for (const a of args)cmd += ` ${this._windowsQuoteCmdArg(a)}`;\n }\n } else {\n // OSX/Linux - this can likely be improved with some form of quoting.\n // creating processes on Unix is fundamentally different than Windows.\n // on Unix, execvp() takes an arg array.\n cmd += toolPath;\n for (const a of args)cmd += ` ${a}`;\n }\n return cmd;\n }\n _processLineBuffer(data, strBuffer, onLine) {\n try {\n let s = strBuffer + data.toString();\n let n = s.indexOf($358ca0c13f34538f$var$os.EOL);\n while(n > -1){\n const line = s.substring(0, n);\n onLine(line);\n // the rest of the string ...\n s = s.substring(n + $358ca0c13f34538f$var$os.EOL.length);\n n = s.indexOf($358ca0c13f34538f$var$os.EOL);\n }\n return s;\n } catch (err) {\n // streaming lines to console is best effort. Don't fail a build.\n this._debug(`error processing line. Failed with error ${err}`);\n return \"\";\n }\n }\n _getSpawnFileName() {\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n if (this._isCmdFile()) return process.env[\"COMSPEC\"] || \"cmd.exe\";\n }\n return this.toolPath;\n }\n _getSpawnArgs(options) {\n if ($358ca0c13f34538f$var$IS_WINDOWS) {\n if (this._isCmdFile()) {\n let argline = `/D /S /C \"${this._windowsQuoteCmdArg(this.toolPath)}`;\n for (const a of this.args){\n argline += \" \";\n argline += options.windowsVerbatimArguments ? a : this._windowsQuoteCmdArg(a);\n }\n argline += '\"';\n return [\n argline\n ];\n }\n }\n return this.args;\n }\n _endsWith(str, end) {\n return str.endsWith(end);\n }\n _isCmdFile() {\n const upperToolPath = this.toolPath.toUpperCase();\n return this._endsWith(upperToolPath, \".CMD\") || this._endsWith(upperToolPath, \".BAT\");\n }\n _windowsQuoteCmdArg(arg) {\n // for .exe, apply the normal quoting rules that libuv applies\n if (!this._isCmdFile()) return this._uvQuoteCmdArg(arg);\n // otherwise apply quoting rules specific to the cmd.exe command line parser.\n // the libuv rules are generic and are not designed specifically for cmd.exe\n // command line parser.\n //\n // for a detailed description of the cmd.exe command line parser, refer to\n // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912\n // need quotes for empty arg\n if (!arg) return '\"\"';\n // determine whether the arg needs to be quoted\n const cmdSpecialChars = [\n \" \",\n \"\t\",\n \"&\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \"{\",\n \"}\",\n \"^\",\n \"=\",\n \";\",\n \"!\",\n \"'\",\n \"+\",\n \",\",\n \"`\",\n \"~\",\n \"|\",\n \"<\",\n \">\",\n '\"'\n ];\n let needsQuotes = false;\n for (const char of arg)if (cmdSpecialChars.some((x)=>x === char)) {\n needsQuotes = true;\n break;\n }\n // short-circuit if quotes not needed\n if (!needsQuotes) return arg;\n // the following quoting rules are very similar to the rules that by libuv applies.\n //\n // 1) wrap the string in quotes\n //\n // 2) double-up quotes - i.e. \" => \"\"\n //\n // this is different from the libuv quoting rules. libuv replaces \" with \\\", which unfortunately\n // doesn't work well with a cmd.exe command line.\n //\n // note, replacing \" with \"\" also works well if the arg is passed to a downstream .NET console app.\n // for example, the command line:\n // foo.exe \"myarg:\"\"my val\"\"\"\n // is parsed by a .NET console app into an arg array:\n // [ \"myarg:\\\"my val\\\"\" ]\n // which is the same end result when applying libuv quoting rules. although the actual\n // command line from libuv quoting rules would look like:\n // foo.exe \"myarg:\\\"my val\\\"\"\n //\n // 3) double-up slashes that precede a quote,\n // e.g. hello \\world => \"hello \\world\"\n // hello\\\"world => \"hello\\\\\"\"world\"\n // hello\\\\\"world => \"hello\\\\\\\\\"\"world\"\n // hello world\\ => \"hello world\\\\\"\n //\n // technically this is not required for a cmd.exe command line, or the batch argument parser.\n // the reasons for including this as a .cmd quoting rule are:\n //\n // a) this is optimized for the scenario where the argument is passed from the .cmd file to an\n // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.\n //\n // b) it's what we've been doing previously (by deferring to node default behavior) and we\n // haven't heard any complaints about that aspect.\n //\n // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be\n // escaped when used on the command line directly - even though within a .cmd file % can be escaped\n // by using %%.\n //\n // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts\n // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.\n //\n // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would\n // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the\n // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args\n // to an external program.\n //\n // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.\n // % can be escaped within a .cmd file.\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\"; // double the slash\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += '\"'; // double the quote\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _uvQuoteCmdArg(arg) {\n // Tool runner wraps child_process.spawn() and needs to apply the same quoting as\n // Node in certain cases where the undocumented spawn option windowsVerbatimArguments\n // is used.\n //\n // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,\n // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),\n // pasting copyright notice from Node within this function:\n //\n // Copyright Joyent, Inc. and other Node contributors. All rights reserved.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to\n // deal in the Software without restriction, including without limitation the\n // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n // sell copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n // IN THE SOFTWARE.\n if (!arg) // Need double quotation for empty argument\n return '\"\"';\n if (!arg.includes(\" \") && !arg.includes(\"\t\") && !arg.includes('\"')) // No quotation needed\n return arg;\n if (!arg.includes('\"') && !arg.includes(\"\\\\\")) // No embedded double quotes or backslashes, so I can just wrap\n // quote marks around the whole thing.\n return `\"${arg}\"`;\n // Expected input/output:\n // input : hello\"world\n // output: \"hello\\\"world\"\n // input : hello\"\"world\n // output: \"hello\\\"\\\"world\"\n // input : hello\\world\n // output: hello\\world\n // input : hello\\\\world\n // output: hello\\\\world\n // input : hello\\\"world\n // output: \"hello\\\\\\\"world\"\n // input : hello\\\\\"world\n // output: \"hello\\\\\\\\\\\"world\"\n // input : hello world\\\n // output: \"hello world\\\\\" - note the comment in libuv actually reads \"hello world\\\"\n // but it appears the comment is wrong, it should be \"hello world\\\\\"\n let reverse = '\"';\n let quoteHit = true;\n for(let i = arg.length; i > 0; i--){\n // walk the string in reverse\n reverse += arg[i - 1];\n if (quoteHit && arg[i - 1] === \"\\\\\") reverse += \"\\\\\";\n else if (arg[i - 1] === '\"') {\n quoteHit = true;\n reverse += \"\\\\\";\n } else quoteHit = false;\n }\n reverse += '\"';\n return reverse.split(\"\").reverse().join(\"\");\n }\n _cloneExecOptions(options) {\n options = options || {};\n const result = {\n cwd: options.cwd || process.cwd(),\n env: options.env || process.env,\n silent: options.silent || false,\n windowsVerbatimArguments: options.windowsVerbatimArguments || false,\n failOnStdErr: options.failOnStdErr || false,\n ignoreReturnCode: options.ignoreReturnCode || false,\n delay: options.delay || 10000\n };\n result.outStream = options.outStream || process.stdout;\n result.errStream = options.errStream || process.stderr;\n return result;\n }\n _getSpawnOptions(options, toolPath) {\n options = options || {};\n const result = {};\n result.cwd = options.cwd;\n result.env = options.env;\n result[\"windowsVerbatimArguments\"] = options.windowsVerbatimArguments || this._isCmdFile();\n if (options.windowsVerbatimArguments) result.argv0 = `\"${toolPath}\"`;\n return result;\n }\n /**\n * Exec a tool.\n * Output will be streamed to the live console.\n * Returns promise with return code\n *\n * @param tool path to tool to exec\n * @param options optional exec options. See ExecOptions\n * @returns number\n */ exec() {\n return $358ca0c13f34538f$var$__awaiter(this, void 0, void 0, function*() {\n // root the tool path if it is unrooted and contains relative pathing\n if (!$358ca0c13f34538f$var$ioUtil.isRooted(this.toolPath) && (this.toolPath.includes(\"/\") || $358ca0c13f34538f$var$IS_WINDOWS && this.toolPath.includes(\"\\\\\"))) // prefer options.cwd if it is specified, however options.cwd may also need to be rooted\n this.toolPath = $358ca0c13f34538f$var$path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath);\n // if the tool is only a file name, then resolve it from the PATH\n // otherwise verify it exists (add extension on Windows if necessary)\n this.toolPath = yield $358ca0c13f34538f$var$io.which(this.toolPath, true);\n return new Promise((resolve, reject)=>$358ca0c13f34538f$var$__awaiter(this, void 0, void 0, function*() {\n this._debug(`exec tool: ${this.toolPath}`);\n this._debug(\"arguments:\");\n for (const arg of this.args)this._debug(` ${arg}`);\n const optionsNonNull = this._cloneExecOptions(this.options);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + $358ca0c13f34538f$var$os.EOL);\n const state = new $358ca0c13f34538f$var$ExecState(optionsNonNull, this.toolPath);\n state.on(\"debug\", (message)=>{\n this._debug(message);\n });\n if (this.options.cwd && !(yield $358ca0c13f34538f$var$ioUtil.exists(this.options.cwd))) return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`));\n const fileName = this._getSpawnFileName();\n const cp = $358ca0c13f34538f$var$child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));\n let stdbuffer = \"\";\n if (cp.stdout) cp.stdout.on(\"data\", (data)=>{\n if (this.options.listeners && this.options.listeners.stdout) this.options.listeners.stdout(data);\n if (!optionsNonNull.silent && optionsNonNull.outStream) optionsNonNull.outStream.write(data);\n stdbuffer = this._processLineBuffer(data, stdbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.stdline) this.options.listeners.stdline(line);\n });\n });\n let errbuffer = \"\";\n if (cp.stderr) cp.stderr.on(\"data\", (data)=>{\n state.processStderr = true;\n if (this.options.listeners && this.options.listeners.stderr) this.options.listeners.stderr(data);\n if (!optionsNonNull.silent && optionsNonNull.errStream && optionsNonNull.outStream) {\n const s = optionsNonNull.failOnStdErr ? optionsNonNull.errStream : optionsNonNull.outStream;\n s.write(data);\n }\n errbuffer = this._processLineBuffer(data, errbuffer, (line)=>{\n if (this.options.listeners && this.options.listeners.errline) this.options.listeners.errline(line);\n });\n });\n cp.on(\"error\", (err)=>{\n state.processError = err.message;\n state.processExited = true;\n state.processClosed = true;\n state.CheckComplete();\n });\n cp.on(\"exit\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n cp.on(\"close\", (code)=>{\n state.processExitCode = code;\n state.processExited = true;\n state.processClosed = true;\n this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);\n state.CheckComplete();\n });\n state.on(\"done\", (error, exitCode)=>{\n if (stdbuffer.length > 0) this.emit(\"stdline\", stdbuffer);\n if (errbuffer.length > 0) this.emit(\"errline\", errbuffer);\n cp.removeAllListeners();\n if (error) reject(error);\n else resolve(exitCode);\n });\n if (this.options.input) {\n if (!cp.stdin) throw new Error(\"child process missing stdin\");\n cp.stdin.end(this.options.input);\n }\n }));\n });\n }\n}\nmodule.exports.ToolRunner = $358ca0c13f34538f$var$ToolRunner;\n/**\n * Convert an arg string to an array of args. Handles escaping\n *\n * @param argString string of arguments\n * @returns string[] array of arguments\n */ function $358ca0c13f34538f$var$argStringToArray(argString) {\n const args = [];\n let inQuotes = false;\n let escaped = false;\n let arg = \"\";\n function append(c) {\n // we only escape double quotes.\n if (escaped && c !== '\"') arg += \"\\\\\";\n arg += c;\n escaped = false;\n }\n for(let i = 0; i < argString.length; i++){\n const c = argString.charAt(i);\n if (c === '\"') {\n if (!escaped) inQuotes = !inQuotes;\n else append(c);\n continue;\n }\n if (c === \"\\\\\" && escaped) {\n append(c);\n continue;\n }\n if (c === \"\\\\\" && inQuotes) {\n escaped = true;\n continue;\n }\n if (c === \" \" && !inQuotes) {\n if (arg.length > 0) {\n args.push(arg);\n arg = \"\";\n }\n continue;\n }\n append(c);\n }\n if (arg.length > 0) args.push(arg.trim());\n return args;\n}\nmodule.exports.argStringToArray = $358ca0c13f34538f$var$argStringToArray;\nclass $358ca0c13f34538f$var$ExecState extends $358ca0c13f34538f$var$events.EventEmitter {\n constructor(options, toolPath){\n super();\n this.processClosed = false; // tracks whether the process has exited and stdio is closed\n this.processError = \"\";\n this.processExitCode = 0;\n this.processExited = false; // tracks whether the process has exited\n this.processStderr = false; // tracks whether stderr was written to\n this.delay = 10000; // 10 seconds\n this.done = false;\n this.timeout = null;\n if (!toolPath) throw new Error(\"toolPath must not be empty\");\n this.options = options;\n this.toolPath = toolPath;\n if (options.delay) this.delay = options.delay;\n }\n CheckComplete() {\n if (this.done) return;\n if (this.processClosed) this._setResult();\n else if (this.processExited) this.timeout = $d7DIX$timers.setTimeout($358ca0c13f34538f$var$ExecState.HandleTimeout, this.delay, this);\n }\n _debug(message) {\n this.emit(\"debug\", message);\n }\n _setResult() {\n // determine whether there is an error\n let error;\n if (this.processExited) {\n if (this.processError) error = 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}`);\n else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);\n else if (this.processStderr && this.options.failOnStdErr) error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);\n }\n // clear the timeout\n if (this.timeout) {\n clearTimeout(this.timeout);\n this.timeout = null;\n }\n this.done = true;\n this.emit(\"done\", error, this.processExitCode);\n }\n static HandleTimeout(state) {\n if (state.done) return;\n if (!state.processClosed && state.processExited) {\n const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;\n state._debug(message);\n }\n state._setResult();\n }\n}\n\n});\n\n\nparcelRegister(\"4JiFg\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./actions_python.c4cbfdde.js\")).then(()=>parcelRequire(\"4kQHk\"));\n\n});\n\nparcelRegister(\"2tlzJ\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./hdi.340fbf70.js\")).then(()=>parcelRequire(\"8Fs7q\"));\n\n});\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $iWDmx = parcelRequire(\"iWDmx\");\nvar $adccf2292ac17dc9$exports = {};\n\n(function() {\n var root = this;\n var numerous;\n numerous = (parcelRequire(\"eCDnw\"));\n numerous.addLocale(\"en\", function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\";\n });\n}).call($adccf2292ac17dc9$exports);\n\n\nvar $0759e10a4c20508a$exports = {};\n\n$0759e10a4c20508a$exports = (parcelRequire(\"gMm9F\"));\n\n\nvar $7bf1341a48aa89d2$exports = {};\n$7bf1341a48aa89d2$exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n\n\nvar $851ef3bcd445adf9$exports = {};\nvar $ecfbb3ffe7838491$exports = {};\n\n$parcel$export($ecfbb3ffe7838491$exports, \"isexe\", () => $ecfbb3ffe7838491$export$35888d6059c232d4);\n$parcel$export($ecfbb3ffe7838491$exports, \"sync\", () => $ecfbb3ffe7838491$export$92d6409d68f0739a);\n/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */ \n\nvar $4oHc1 = parcelRequire(\"4oHc1\");\nconst $ecfbb3ffe7838491$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ecfbb3ffe7838491$var$checkStat(await (0, $4oHc1.stat)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ecfbb3ffe7838491$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ecfbb3ffe7838491$var$checkStat((0, $d7DIX$fs.statSync)(path), options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ecfbb3ffe7838491$var$checkStat = (stat, options)=>stat.isFile() && $ecfbb3ffe7838491$var$checkMode(stat, options);\nconst $ecfbb3ffe7838491$var$checkMode = (stat, options)=>{\n const myUid = options.uid ?? process.getuid?.();\n const myGroups = options.groups ?? process.getgroups?.() ?? [];\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];\n if (myUid === undefined || myGid === undefined) throw new Error(\"cannot get uid or gid\");\n const groups = new Set([\n myGid,\n ...myGroups\n ]);\n const mod = stat.mode;\n const uid = stat.uid;\n const gid = stat.gid;\n const u = parseInt(\"100\", 8);\n const g = parseInt(\"010\", 8);\n const o = parseInt(\"001\", 8);\n const ug = u | g;\n return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);\n};\n\n\nvar $ffc0b2c0400971fb$exports = {};\n\n$parcel$export($ffc0b2c0400971fb$exports, \"isexe\", () => $ffc0b2c0400971fb$export$35888d6059c232d4);\n$parcel$export($ffc0b2c0400971fb$exports, \"sync\", () => $ffc0b2c0400971fb$export$92d6409d68f0739a);\n/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */ \n\nvar $4oHc1 = parcelRequire(\"4oHc1\");\nconst $ffc0b2c0400971fb$export$35888d6059c232d4 = async (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ffc0b2c0400971fb$var$checkStat(await (0, $4oHc1.stat)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ffc0b2c0400971fb$export$92d6409d68f0739a = (path, options = {})=>{\n const { ignoreErrors: ignoreErrors = false } = options;\n try {\n return $ffc0b2c0400971fb$var$checkStat((0, $d7DIX$fs.statSync)(path), path, options);\n } catch (e) {\n const er = e;\n if (ignoreErrors || er.code === \"EACCES\") return false;\n throw er;\n }\n};\nconst $ffc0b2c0400971fb$var$checkPathExt = (path, options)=>{\n const { pathExt: pathExt = process.env.PATHEXT || \"\" } = options;\n const peSplit = pathExt.split(\";\");\n if (peSplit.indexOf(\"\") !== -1) return true;\n for(let i = 0; i < peSplit.length; i++){\n const p = peSplit[i].toLowerCase();\n const ext = path.substring(path.length - p.length).toLowerCase();\n if (p && ext === p) return true;\n }\n return false;\n};\nconst $ffc0b2c0400971fb$var$checkStat = (stat, path, options)=>stat.isFile() && $ffc0b2c0400971fb$var$checkPathExt(path, options);\n\n\n\n\nconst $9ff644244aa23fe9$var$platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;\nconst $9ff644244aa23fe9$var$impl = $9ff644244aa23fe9$var$platform === \"win32\" ? $ffc0b2c0400971fb$exports : $ecfbb3ffe7838491$exports;\nconst $9ff644244aa23fe9$export$35888d6059c232d4 = $9ff644244aa23fe9$var$impl.isexe;\nconst $9ff644244aa23fe9$export$92d6409d68f0739a = $9ff644244aa23fe9$var$impl.sync;\n\n\nvar $851ef3bcd445adf9$require$isexe = $9ff644244aa23fe9$export$35888d6059c232d4;\nvar $851ef3bcd445adf9$require$isexeSync = $9ff644244aa23fe9$export$92d6409d68f0739a;\n\nvar $851ef3bcd445adf9$require$join = $d7DIX$path.join;\nvar $851ef3bcd445adf9$require$delimiter = $d7DIX$path.delimiter;\nvar $851ef3bcd445adf9$require$sep = $d7DIX$path.sep;\nvar $851ef3bcd445adf9$require$posix = $d7DIX$path.posix;\nconst $851ef3bcd445adf9$var$isWindows = process.platform === \"win32\";\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */ const $851ef3bcd445adf9$var$rSlash = new RegExp(`[${$851ef3bcd445adf9$require$posix.sep}${$851ef3bcd445adf9$require$sep === $851ef3bcd445adf9$require$posix.sep ? \"\" : $851ef3bcd445adf9$require$sep}]`.replace(/(\\\\)/g, \"\\\\$1\"));\nconst $851ef3bcd445adf9$var$rRel = new RegExp(`^\\\\.${$851ef3bcd445adf9$var$rSlash.source}`);\nconst $851ef3bcd445adf9$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $851ef3bcd445adf9$var$getPathInfo = (cmd, { path: optPath = process.env.PATH, pathExt: optPathExt = process.env.PATHEXT, delimiter: optDelimiter = $851ef3bcd445adf9$require$delimiter })=>{\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match($851ef3bcd445adf9$var$rSlash) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$851ef3bcd445adf9$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(optPath || /* istanbul ignore next: very unusual */ \"\").split(optDelimiter)\n ];\n if ($851ef3bcd445adf9$var$isWindows) {\n const pathExtExe = optPathExt || [\n \".EXE\",\n \".CMD\",\n \".BAT\",\n \".COM\"\n ].join(optDelimiter);\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item)=>[\n item,\n item.toLowerCase()\n ]);\n if (cmd.includes(\".\") && pathExt[0] !== \"\") pathExt.unshift(\"\");\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n }\n return {\n pathEnv: pathEnv,\n pathExt: [\n \"\"\n ]\n };\n};\nconst $851ef3bcd445adf9$var$getPathPart = (raw, cmd)=>{\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw;\n const prefix = !pathPart && $851ef3bcd445adf9$var$rRel.test(cmd) ? cmd.slice(0, 2) : \"\";\n return prefix + $851ef3bcd445adf9$require$join(pathPart, cmd);\n};\nconst $851ef3bcd445adf9$var$which = async (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $851ef3bcd445adf9$var$getPathInfo(cmd, opt);\n const found = [];\n for (const envPart of pathEnv){\n const p = $851ef3bcd445adf9$var$getPathPart(envPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = await $851ef3bcd445adf9$require$isexe(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $851ef3bcd445adf9$var$getNotFoundError(cmd);\n};\nconst $851ef3bcd445adf9$var$whichSync = (cmd, opt = {})=>{\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $851ef3bcd445adf9$var$getPathInfo(cmd, opt);\n const found = [];\n for (const pathEnvPart of pathEnv){\n const p = $851ef3bcd445adf9$var$getPathPart(pathEnvPart, cmd);\n for (const ext of pathExt){\n const withExt = p + ext;\n const is = $851ef3bcd445adf9$require$isexeSync(withExt, {\n pathExt: pathExtExe,\n ignoreErrors: true\n });\n if (is) {\n if (!opt.all) return withExt;\n found.push(withExt);\n }\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $851ef3bcd445adf9$var$getNotFoundError(cmd);\n};\n$851ef3bcd445adf9$exports = $851ef3bcd445adf9$var$which;\n$851ef3bcd445adf9$var$which.sync = $851ef3bcd445adf9$var$whichSync;\n\n\n\n\n\n\nvar $8b1434f30c2df0f5$exports = {};\n\"use strict\";\n\nvar $da7da1299c2703da$exports = {};\n\"use strict\";\n\nvar $cd28c864980cfd0f$exports = {};\n\"use strict\";\n\nvar $27b76a3de3367027$exports = {};\nconst $27b76a3de3367027$var$isWindows = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\nconst $27b76a3de3367027$var$COLON = $27b76a3de3367027$var$isWindows ? \";\" : \":\";\nvar $4812ae26153c6e1d$exports = {};\n\nvar $4812ae26153c6e1d$var$core;\n\n\nif (process.platform === \"win32\" || $parcel$global.TESTING_WINDOWS) $4812ae26153c6e1d$var$core = (parcelRequire(\"bGwAu\"));\nelse $4812ae26153c6e1d$var$core = (parcelRequire(\"d3qS7\"));\n$4812ae26153c6e1d$exports = $4812ae26153c6e1d$var$isexe;\n$4812ae26153c6e1d$var$isexe.sync = $4812ae26153c6e1d$var$sync;\nfunction $4812ae26153c6e1d$var$isexe(path, options, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n if (!cb) {\n if (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n return new Promise(function(resolve, reject) {\n $4812ae26153c6e1d$var$isexe(path, options || {}, function(er, is) {\n if (er) reject(er);\n else resolve(is);\n });\n });\n }\n $4812ae26153c6e1d$var$core(path, options || {}, function(er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === \"EACCES\" || options && options.ignoreErrors) {\n er = null;\n is = false;\n }\n }\n cb(er, is);\n });\n}\nfunction $4812ae26153c6e1d$var$sync(path, options) {\n // my kingdom for a filtered catch\n try {\n return $4812ae26153c6e1d$var$core.sync(path, options || {});\n } catch (er) {\n if (options && options.ignoreErrors || er.code === \"EACCES\") return false;\n else throw er;\n }\n}\n\n\nconst $27b76a3de3367027$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {\n code: \"ENOENT\"\n });\nconst $27b76a3de3367027$var$getPathInfo = (cmd, opt)=>{\n const colon = opt.colon || $27b76a3de3367027$var$COLON;\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || $27b76a3de3367027$var$isWindows && cmd.match(/\\\\/) ? [\n \"\"\n ] : [\n // windows always checks the cwd first\n ...$27b76a3de3367027$var$isWindows ? [\n process.cwd()\n ] : [],\n ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ \"\").split(colon)\n ];\n const pathExtExe = $27b76a3de3367027$var$isWindows ? opt.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n const pathExt = $27b76a3de3367027$var$isWindows ? pathExtExe.split(colon) : [\n \"\"\n ];\n if ($27b76a3de3367027$var$isWindows) {\n if (cmd.indexOf(\".\") !== -1 && pathExt[0] !== \"\") pathExt.unshift(\"\");\n }\n return {\n pathEnv: pathEnv,\n pathExt: pathExt,\n pathExtExe: pathExtExe\n };\n};\nconst $27b76a3de3367027$var$which = (cmd, opt, cb)=>{\n if (typeof opt === \"function\") {\n cb = opt;\n opt = {};\n }\n if (!opt) opt = {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $27b76a3de3367027$var$getPathInfo(cmd, opt);\n const found = [];\n const step = (i)=>new Promise((resolve, reject)=>{\n if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($27b76a3de3367027$var$getNotFoundError(cmd));\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $d7DIX$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n resolve(subStep(p, i, 0));\n });\n const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{\n if (ii === pathExt.length) return resolve(step(i + 1));\n const ext = pathExt[ii];\n $4812ae26153c6e1d$exports(p + ext, {\n pathExt: pathExtExe\n }, (er, is)=>{\n if (!er && is) {\n if (opt.all) found.push(p + ext);\n else return resolve(p + ext);\n }\n return resolve(subStep(p, i, ii + 1));\n });\n });\n return cb ? step(0).then((res)=>cb(null, res), cb) : step(0);\n};\nconst $27b76a3de3367027$var$whichSync = (cmd, opt)=>{\n opt = opt || {};\n const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $27b76a3de3367027$var$getPathInfo(cmd, opt);\n const found = [];\n for(let i = 0; i < pathEnv.length; i++){\n const ppRaw = pathEnv[i];\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;\n const pCmd = $d7DIX$path.join(pathPart, cmd);\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;\n for(let j = 0; j < pathExt.length; j++){\n const cur = p + pathExt[j];\n try {\n const is = $4812ae26153c6e1d$exports.sync(cur, {\n pathExt: pathExtExe\n });\n if (is) {\n if (opt.all) found.push(cur);\n else return cur;\n }\n } catch (ex) {}\n }\n }\n if (opt.all && found.length) return found;\n if (opt.nothrow) return null;\n throw $27b76a3de3367027$var$getNotFoundError(cmd);\n};\n$27b76a3de3367027$exports = $27b76a3de3367027$var$which;\n$27b76a3de3367027$var$which.sync = $27b76a3de3367027$var$whichSync;\n\n\nvar $2543a0baf4fc0f49$exports = {};\n\"use strict\";\nconst $2543a0baf4fc0f49$var$pathKey = (options = {})=>{\n const environment = options.env || process.env;\n const platform = options.platform || process.platform;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n};\n$2543a0baf4fc0f49$exports = $2543a0baf4fc0f49$var$pathKey;\n// TODO: Remove this for the next major release\n$2543a0baf4fc0f49$exports.default = $2543a0baf4fc0f49$var$pathKey;\n\n\nfunction $cd28c864980cfd0f$var$resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */ }\n let resolved;\n try {\n resolved = $27b76a3de3367027$exports.sync(parsed.command, {\n path: env[$2543a0baf4fc0f49$exports({\n env: env\n })],\n pathExt: withoutPathExt ? $d7DIX$path.delimiter : undefined\n });\n } catch (e) {\n /* Empty */ } finally{\n if (shouldSwitchCwd) process.chdir(cwd);\n }\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) resolved = $d7DIX$path.resolve(hasCustomCwd ? parsed.options.cwd : \"\", resolved);\n return resolved;\n}\nfunction $cd28c864980cfd0f$var$resolveCommand(parsed) {\n return $cd28c864980cfd0f$var$resolveCommandAttempt(parsed) || $cd28c864980cfd0f$var$resolveCommandAttempt(parsed, true);\n}\n$cd28c864980cfd0f$exports = $cd28c864980cfd0f$var$resolveCommand;\n\n\nvar $fc5e53341be77269$export$ae50443ffc990749;\nvar $fc5e53341be77269$export$6ea29ee575e3f5ff;\n\"use strict\";\n// See http://www.robvanderwoude.com/escapechars.php\nconst $fc5e53341be77269$var$metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\nfunction $fc5e53341be77269$var$escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\nfunction $fc5e53341be77269$var$escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n // Algorithm below is based on https://qntm.org/cmd\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, \"$1$1\");\n // All other backslashes occur literally\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n // Escape meta chars\n arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) arg = arg.replace($fc5e53341be77269$var$metaCharsRegExp, \"^$1\");\n return arg;\n}\n$fc5e53341be77269$export$ae50443ffc990749 = $fc5e53341be77269$var$escapeCommand;\n$fc5e53341be77269$export$6ea29ee575e3f5ff = $fc5e53341be77269$var$escapeArgument;\n\n\nvar $fe8eaff5ac0ea2ba$exports = {};\n\"use strict\";\n\nvar $f0c7da0bdc12447f$exports = {};\n\"use strict\";\nvar $ced97cb735cf4572$exports = {};\n\"use strict\";\n$ced97cb735cf4572$exports = /^#!(.*)/;\n\n\n$f0c7da0bdc12447f$exports = (string = \"\")=>{\n const match = string.match($ced97cb735cf4572$exports);\n if (!match) return null;\n const [path, argument] = match[0].replace(/#! ?/, \"\").split(\" \");\n const binary = path.split(\"/\").pop();\n if (binary === \"env\") return argument;\n return argument ? `${binary} ${argument}` : binary;\n};\n\n\nfunction $fe8eaff5ac0ea2ba$var$readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n let fd;\n try {\n fd = $d7DIX$fs.openSync(command, \"r\");\n $d7DIX$fs.readSync(fd, buffer, 0, size, 0);\n $d7DIX$fs.closeSync(fd);\n } catch (e) {}\n // Attempt to extract shebang (null is returned if not a shebang)\n return $f0c7da0bdc12447f$exports(buffer.toString());\n}\n$fe8eaff5ac0ea2ba$exports = $fe8eaff5ac0ea2ba$var$readShebang;\n\n\nconst $da7da1299c2703da$var$isWin = process.platform === \"win32\";\nconst $da7da1299c2703da$var$isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst $da7da1299c2703da$var$isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\nfunction $da7da1299c2703da$var$detectShebang(parsed) {\n parsed.file = $cd28c864980cfd0f$exports(parsed);\n const shebang = parsed.file && $fe8eaff5ac0ea2ba$exports(parsed.file);\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n return $cd28c864980cfd0f$exports(parsed);\n }\n return parsed.file;\n}\nfunction $da7da1299c2703da$var$parseNonShell(parsed) {\n if (!$da7da1299c2703da$var$isWin) return parsed;\n // Detect & add support for shebangs\n const commandFile = $da7da1299c2703da$var$detectShebang(parsed);\n // We don't need a shell if the command filename is an executable\n const needsShell = !$da7da1299c2703da$var$isExecutableRegExp.test(commandFile);\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = $da7da1299c2703da$var$isCmdShimRegExp.test(commandFile);\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = $d7DIX$path.normalize(parsed.command);\n // Escape command & arguments\n parsed.command = $fc5e53341be77269$export$ae50443ffc990749(parsed.command);\n parsed.args = parsed.args.map((arg)=>$fc5e53341be77269$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars));\n const shellCommand = [\n parsed.command\n ].concat(parsed.args).join(\" \");\n parsed.args = [\n \"/d\",\n \"/s\",\n \"/c\",\n `\"${shellCommand}\"`\n ];\n parsed.command = process.env.comspec || \"cmd.exe\";\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n return parsed;\n}\nfunction $da7da1299c2703da$var$parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n // Build our parsed object\n const parsed = {\n command: command,\n args: args,\n options: options,\n file: undefined,\n original: {\n command: command,\n args: args\n }\n };\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : $da7da1299c2703da$var$parseNonShell(parsed);\n}\n$da7da1299c2703da$exports = $da7da1299c2703da$var$parse;\n\n\nvar $1b55d4feb1802c97$exports = {};\n\"use strict\";\nconst $1b55d4feb1802c97$var$isWin = process.platform === \"win32\";\nfunction $1b55d4feb1802c97$var$notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: \"ENOENT\",\n errno: \"ENOENT\",\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args\n });\n}\nfunction $1b55d4feb1802c97$var$hookChildProcess(cp, parsed) {\n if (!$1b55d4feb1802c97$var$isWin) return;\n const originalEmit = cp.emit;\n cp.emit = function(name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === \"exit\") {\n const err = $1b55d4feb1802c97$var$verifyENOENT(arg1, parsed, \"spawn\");\n if (err) return originalEmit.call(cp, \"error\", err);\n }\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\nfunction $1b55d4feb1802c97$var$verifyENOENT(status, parsed) {\n if ($1b55d4feb1802c97$var$isWin && status === 1 && !parsed.file) return $1b55d4feb1802c97$var$notFoundError(parsed.original, \"spawn\");\n return null;\n}\nfunction $1b55d4feb1802c97$var$verifyENOENTSync(status, parsed) {\n if ($1b55d4feb1802c97$var$isWin && status === 1 && !parsed.file) return $1b55d4feb1802c97$var$notFoundError(parsed.original, \"spawnSync\");\n return null;\n}\n$1b55d4feb1802c97$exports = {\n hookChildProcess: $1b55d4feb1802c97$var$hookChildProcess,\n verifyENOENT: $1b55d4feb1802c97$var$verifyENOENT,\n verifyENOENTSync: $1b55d4feb1802c97$var$verifyENOENTSync,\n notFoundError: $1b55d4feb1802c97$var$notFoundError\n};\n\n\nfunction $8b1434f30c2df0f5$var$spawn(command, args, options) {\n // Parse the arguments\n const parsed = $da7da1299c2703da$exports(command, args, options);\n // Spawn the child process\n const spawned = $d7DIX$child_process.spawn(parsed.command, parsed.args, parsed.options);\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n $1b55d4feb1802c97$exports.hookChildProcess(spawned, parsed);\n return spawned;\n}\nfunction $8b1434f30c2df0f5$var$spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = $da7da1299c2703da$exports(command, args, options);\n // Spawn the child process\n const result = $d7DIX$child_process.spawnSync(parsed.command, parsed.args, parsed.options);\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || $1b55d4feb1802c97$exports.verifyENOENTSync(result.status, parsed);\n return result;\n}\n$8b1434f30c2df0f5$exports = $8b1434f30c2df0f5$var$spawn;\n$8b1434f30c2df0f5$exports.spawn = $8b1434f30c2df0f5$var$spawn;\n$8b1434f30c2df0f5$exports.sync = $8b1434f30c2df0f5$var$spawnSync;\n$8b1434f30c2df0f5$exports._parse = $da7da1299c2703da$exports;\n$8b1434f30c2df0f5$exports._enoent = $1b55d4feb1802c97$exports;\n\n\nfunction $c36cfccc5e0479d9$export$2e2bcd8739ae039(input) {\n const LF = typeof input === \"string\" ? \"\\n\" : \"\\n\".charCodeAt();\n const CR = typeof input === \"string\" ? \"\\r\" : \"\\r\".charCodeAt();\n if (input[input.length - 1] === LF) input = input.slice(0, -1);\n if (input[input.length - 1] === CR) input = input.slice(0, -1);\n return input;\n}\n\n\n\n\n\nfunction $42db316b4a96ee74$export$2e2bcd8739ae039(options = {}) {\n const { env: env = process.env, platform: platform = process.platform } = options;\n if (platform !== \"win32\") return \"PATH\";\n return Object.keys(env).reverse().find((key)=>key.toUpperCase() === \"PATH\") || \"Path\";\n}\n\n\nfunction $79a4a337e08e5260$export$62a298cbef08d65c(options = {}) {\n const { cwd: cwd = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(), path: path_ = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).env[(0, $42db316b4a96ee74$export$2e2bcd8739ae039)()], execPath: execPath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath } = options;\n let previous;\n const execPathString = execPath instanceof URL ? (0, ($parcel$interopDefault($d7DIX$nodeurl))).fileURLToPath(execPath) : execPath;\n const cwdString = cwd instanceof URL ? (0, ($parcel$interopDefault($d7DIX$nodeurl))).fileURLToPath(cwd) : cwd;\n let cwdPath = (0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdString);\n const result = [];\n while(previous !== cwdPath){\n result.push((0, ($parcel$interopDefault($d7DIX$nodepath))).join(cwdPath, \"node_modules/.bin\"));\n previous = cwdPath;\n cwdPath = (0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdPath, \"..\");\n }\n // Ensure the running `node` binary is used.\n result.push((0, ($parcel$interopDefault($d7DIX$nodepath))).resolve(cwdString, execPathString, \"..\"));\n return [\n ...result,\n path_\n ].join((0, ($parcel$interopDefault($d7DIX$nodepath))).delimiter);\n}\nfunction $79a4a337e08e5260$export$340e1fbaac04248b({ env: env = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).env, ...options } = {}) {\n env = {\n ...env\n };\n const path = (0, $42db316b4a96ee74$export$2e2bcd8739ae039)({\n env: env\n });\n options.path = env[path];\n env[path] = $79a4a337e08e5260$export$62a298cbef08d65c(options);\n return env;\n}\n\n\nconst $702ede05dcd57805$var$copyProperty = (to, from, property, ignoreNonConfigurable)=>{\n // `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n // `Function#prototype` is non-writable and non-configurable so can never be modified.\n if (property === \"length\" || property === \"prototype\") return;\n // `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n if (property === \"arguments\" || property === \"caller\") return;\n const toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n if (!$702ede05dcd57805$var$canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;\n Object.defineProperty(to, property, fromDescriptor);\n};\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst $702ede05dcd57805$var$canCopyProperty = function(toDescriptor, fromDescriptor) {\n return toDescriptor === undefined || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);\n};\nconst $702ede05dcd57805$var$changePrototype = (to, from)=>{\n const fromPrototype = Object.getPrototypeOf(from);\n if (fromPrototype === Object.getPrototypeOf(to)) return;\n Object.setPrototypeOf(to, fromPrototype);\n};\nconst $702ede05dcd57805$var$wrappedToString = (withName, fromBody)=>`/* Wrapped ${withName}*/\\n${fromBody}`;\nconst $702ede05dcd57805$var$toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, \"toString\");\nconst $702ede05dcd57805$var$toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, \"name\");\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst $702ede05dcd57805$var$changeToString = (to, from, name)=>{\n const withName = name === \"\" ? \"\" : `with ${name.trim()}() `;\n const newToString = $702ede05dcd57805$var$wrappedToString.bind(null, withName, from.toString());\n // Ensure `to.toString.toString` is non-enumerable and has the same `same`\n Object.defineProperty(newToString, \"name\", $702ede05dcd57805$var$toStringName);\n Object.defineProperty(to, \"toString\", {\n ...$702ede05dcd57805$var$toStringDescriptor,\n value: newToString\n });\n};\nfunction $702ede05dcd57805$export$2e2bcd8739ae039(to, from, { ignoreNonConfigurable: ignoreNonConfigurable = false } = {}) {\n const { name: name } = to;\n for (const property of Reflect.ownKeys(from))$702ede05dcd57805$var$copyProperty(to, from, property, ignoreNonConfigurable);\n $702ede05dcd57805$var$changePrototype(to, from);\n $702ede05dcd57805$var$changeToString(to, from, name);\n return to;\n}\n\n\nconst $a257f7b521fbcd70$var$calledFunctions = new WeakMap();\nconst $a257f7b521fbcd70$var$onetime = (function_, options = {})=>{\n if (typeof function_ !== \"function\") throw new TypeError(\"Expected a function\");\n let returnValue;\n let callCount = 0;\n const functionName = function_.displayName || function_.name || \"\";\n const onetime = function(...arguments_) {\n $a257f7b521fbcd70$var$calledFunctions.set(onetime, ++callCount);\n if (callCount === 1) {\n returnValue = function_.apply(this, arguments_);\n function_ = null;\n } else if (options.throw === true) throw new Error(`Function \\`${functionName}\\` can only be called once`);\n return returnValue;\n };\n (0, $702ede05dcd57805$export$2e2bcd8739ae039)(onetime, function_);\n $a257f7b521fbcd70$var$calledFunctions.set(onetime, callCount);\n return onetime;\n};\n$a257f7b521fbcd70$var$onetime.callCount = (function_)=>{\n if (!$a257f7b521fbcd70$var$calledFunctions.has(function_)) throw new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n return $a257f7b521fbcd70$var$calledFunctions.get(function_);\n};\nvar $a257f7b521fbcd70$export$2e2bcd8739ae039 = $a257f7b521fbcd70$var$onetime;\n\n\n\n\nconst $d2c8ffb2ce6a67dd$export$e221a98f4fd84d36 = ()=>{\n const length = $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4 - $d2c8ffb2ce6a67dd$var$SIGRTMIN + 1;\n return Array.from({\n length: length\n }, $d2c8ffb2ce6a67dd$var$getRealtimeSignal);\n};\nconst $d2c8ffb2ce6a67dd$var$getRealtimeSignal = (value, index)=>({\n name: `SIGRT${index + 1}`,\n number: $d2c8ffb2ce6a67dd$var$SIGRTMIN + index,\n action: \"terminate\",\n description: \"Application-specific signal (realtime)\",\n standard: \"posix\"\n });\nconst $d2c8ffb2ce6a67dd$var$SIGRTMIN = 34;\nconst $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4 = 64;\n\n\n\nconst $446e774b21157476$export$a43bf6822cc694af = [\n {\n name: \"SIGHUP\",\n number: 1,\n action: \"terminate\",\n description: \"Terminal closed\",\n standard: \"posix\"\n },\n {\n name: \"SIGINT\",\n number: 2,\n action: \"terminate\",\n description: \"User interruption with CTRL-C\",\n standard: \"ansi\"\n },\n {\n name: \"SIGQUIT\",\n number: 3,\n action: \"core\",\n description: \"User interruption with CTRL-\\\\\",\n standard: \"posix\"\n },\n {\n name: \"SIGILL\",\n number: 4,\n action: \"core\",\n description: \"Invalid machine instruction\",\n standard: \"ansi\"\n },\n {\n name: \"SIGTRAP\",\n number: 5,\n action: \"core\",\n description: \"Debugger breakpoint\",\n standard: \"posix\"\n },\n {\n name: \"SIGABRT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"ansi\"\n },\n {\n name: \"SIGIOT\",\n number: 6,\n action: \"core\",\n description: \"Aborted\",\n standard: \"bsd\"\n },\n {\n name: \"SIGBUS\",\n number: 7,\n action: \"core\",\n description: \"Bus error due to misaligned, non-existing address or paging error\",\n standard: \"bsd\"\n },\n {\n name: \"SIGEMT\",\n number: 7,\n action: \"terminate\",\n description: \"Command should be emulated but is not implemented\",\n standard: \"other\"\n },\n {\n name: \"SIGFPE\",\n number: 8,\n action: \"core\",\n description: \"Floating point arithmetic error\",\n standard: \"ansi\"\n },\n {\n name: \"SIGKILL\",\n number: 9,\n action: \"terminate\",\n description: \"Forced termination\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGUSR1\",\n number: 10,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGSEGV\",\n number: 11,\n action: \"core\",\n description: \"Segmentation fault\",\n standard: \"ansi\"\n },\n {\n name: \"SIGUSR2\",\n number: 12,\n action: \"terminate\",\n description: \"Application-specific signal\",\n standard: \"posix\"\n },\n {\n name: \"SIGPIPE\",\n number: 13,\n action: \"terminate\",\n description: \"Broken pipe or socket\",\n standard: \"posix\"\n },\n {\n name: \"SIGALRM\",\n number: 14,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"posix\"\n },\n {\n name: \"SIGTERM\",\n number: 15,\n action: \"terminate\",\n description: \"Termination\",\n standard: \"ansi\"\n },\n {\n name: \"SIGSTKFLT\",\n number: 16,\n action: \"terminate\",\n description: \"Stack is empty or overflowed\",\n standard: \"other\"\n },\n {\n name: \"SIGCHLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"posix\"\n },\n {\n name: \"SIGCLD\",\n number: 17,\n action: \"ignore\",\n description: \"Child process terminated, paused or unpaused\",\n standard: \"other\"\n },\n {\n name: \"SIGCONT\",\n number: 18,\n action: \"unpause\",\n description: \"Unpaused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGSTOP\",\n number: 19,\n action: \"pause\",\n description: \"Paused\",\n standard: \"posix\",\n forced: true\n },\n {\n name: \"SIGTSTP\",\n number: 20,\n action: \"pause\",\n description: 'Paused using CTRL-Z or \"suspend\"',\n standard: \"posix\"\n },\n {\n name: \"SIGTTIN\",\n number: 21,\n action: \"pause\",\n description: \"Background process cannot read terminal input\",\n standard: \"posix\"\n },\n {\n name: \"SIGBREAK\",\n number: 21,\n action: \"terminate\",\n description: \"User interruption with CTRL-BREAK\",\n standard: \"other\"\n },\n {\n name: \"SIGTTOU\",\n number: 22,\n action: \"pause\",\n description: \"Background process cannot write to terminal output\",\n standard: \"posix\"\n },\n {\n name: \"SIGURG\",\n number: 23,\n action: \"ignore\",\n description: \"Socket received out-of-band data\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXCPU\",\n number: 24,\n action: \"core\",\n description: \"Process timed out\",\n standard: \"bsd\"\n },\n {\n name: \"SIGXFSZ\",\n number: 25,\n action: \"core\",\n description: \"File too big\",\n standard: \"bsd\"\n },\n {\n name: \"SIGVTALRM\",\n number: 26,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGPROF\",\n number: 27,\n action: \"terminate\",\n description: \"Timeout or timer\",\n standard: \"bsd\"\n },\n {\n name: \"SIGWINCH\",\n number: 28,\n action: \"ignore\",\n description: \"Terminal window size changed\",\n standard: \"bsd\"\n },\n {\n name: \"SIGIO\",\n number: 29,\n action: \"terminate\",\n description: \"I/O is available\",\n standard: \"other\"\n },\n {\n name: \"SIGPOLL\",\n number: 29,\n action: \"terminate\",\n description: \"Watched event\",\n standard: \"other\"\n },\n {\n name: \"SIGINFO\",\n number: 29,\n action: \"ignore\",\n description: \"Request for process information\",\n standard: \"other\"\n },\n {\n name: \"SIGPWR\",\n number: 30,\n action: \"terminate\",\n description: \"Device running out of power\",\n standard: \"systemv\"\n },\n {\n name: \"SIGSYS\",\n number: 31,\n action: \"core\",\n description: \"Invalid system call\",\n standard: \"other\"\n },\n {\n name: \"SIGUNUSED\",\n number: 31,\n action: \"terminate\",\n description: \"Invalid system call\",\n standard: \"other\"\n }\n];\n\n\n\nconst $7e8da5d5d06f2cc3$export$c50078d4faa171f0 = ()=>{\n const realtimeSignals = (0, $d2c8ffb2ce6a67dd$export$e221a98f4fd84d36)();\n const signals = [\n ...(0, $446e774b21157476$export$a43bf6822cc694af),\n ...realtimeSignals\n ].map($7e8da5d5d06f2cc3$var$normalizeSignal);\n return signals;\n};\nconst $7e8da5d5d06f2cc3$var$normalizeSignal = ({ name: name, number: defaultNumber, description: description, action: action, forced: forced = false, standard: standard })=>{\n const { signals: { [name]: constantSignal } } = (0, $d7DIX$nodeos.constants);\n const supported = constantSignal !== undefined;\n const number = supported ? constantSignal : defaultNumber;\n return {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n };\n};\n\n\nconst $e8ce250ce43ec2f1$var$getSignalsByName = ()=>{\n const signals = (0, $7e8da5d5d06f2cc3$export$c50078d4faa171f0)();\n return Object.fromEntries(signals.map($e8ce250ce43ec2f1$var$getSignalByName));\n};\nconst $e8ce250ce43ec2f1$var$getSignalByName = ({ name: name, number: number, description: description, supported: supported, action: action, forced: forced, standard: standard })=>[\n name,\n {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n ];\nconst $e8ce250ce43ec2f1$export$c3fcb39d6848c78d = $e8ce250ce43ec2f1$var$getSignalsByName();\nconst $e8ce250ce43ec2f1$var$getSignalsByNumber = ()=>{\n const signals = (0, $7e8da5d5d06f2cc3$export$c50078d4faa171f0)();\n const length = (0, $d2c8ffb2ce6a67dd$export$dc8812f2f8882ff4) + 1;\n const signalsA = Array.from({\n length: length\n }, (value, number)=>$e8ce250ce43ec2f1$var$getSignalByNumber(number, signals));\n return Object.assign({}, ...signalsA);\n};\nconst $e8ce250ce43ec2f1$var$getSignalByNumber = (number, signals)=>{\n const signal = $e8ce250ce43ec2f1$var$findSignalByNumber(number, signals);\n if (signal === undefined) return {};\n const { name: name, description: description, supported: supported, action: action, forced: forced, standard: standard } = signal;\n return {\n [number]: {\n name: name,\n number: number,\n description: description,\n supported: supported,\n action: action,\n forced: forced,\n standard: standard\n }\n };\n};\nconst $e8ce250ce43ec2f1$var$findSignalByNumber = (number, signals)=>{\n const signal = signals.find(({ name: name })=>(0, $d7DIX$nodeos.constants).signals[name] === number);\n if (signal !== undefined) return signal;\n return signals.find((signalA)=>signalA.number === number);\n};\nconst $e8ce250ce43ec2f1$export$12f57f97a08d2468 = $e8ce250ce43ec2f1$var$getSignalsByNumber();\n\n\nconst $db32f6282de80f14$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $db32f6282de80f14$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout, cwd: cwd = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd() } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $e8ce250ce43ec2f1$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $db32f6282de80f14$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n error.cwd = cwd;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $af1945b2831f1830$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $af1945b2831f1830$var$hasAlias = (options)=>$af1945b2831f1830$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $af1945b2831f1830$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $af1945b2831f1830$var$aliases.map((alias)=>options[alias]);\n if ($af1945b2831f1830$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$af1945b2831f1830$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $af1945b2831f1830$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $af1945b2831f1830$export$889423b478ae2ba = (options)=>{\n const stdio = $af1945b2831f1830$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\nvar $4f2755c484ab0bb9$exports = {};\n// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar $4f2755c484ab0bb9$var$process = $parcel$global.process;\nconst $4f2755c484ab0bb9$var$processOk = function(process) {\n return process && typeof process === \"object\" && typeof process.removeListener === \"function\" && typeof process.emit === \"function\" && typeof process.reallyExit === \"function\" && typeof process.listeners === \"function\" && typeof process.kill === \"function\" && typeof process.pid === \"number\" && typeof process.on === \"function\";\n};\n\n\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($4f2755c484ab0bb9$var$process)) $4f2755c484ab0bb9$exports = function() {\n return function() {};\n};\nelse {\n var $4f2755c484ab0bb9$var$assert = $d7DIX$assert;\n var $4f2755c484ab0bb9$var$signals = (parcelRequire(\"e1Rfe\"));\n var $4f2755c484ab0bb9$var$isWin = /^win/i.test($4f2755c484ab0bb9$var$process.platform);\n var $4f2755c484ab0bb9$var$EE = $d7DIX$events;\n /* istanbul ignore if */ if (typeof $4f2755c484ab0bb9$var$EE !== \"function\") $4f2755c484ab0bb9$var$EE = $4f2755c484ab0bb9$var$EE.EventEmitter;\n var $4f2755c484ab0bb9$var$emitter;\n if ($4f2755c484ab0bb9$var$process.__signal_exit_emitter__) $4f2755c484ab0bb9$var$emitter = $4f2755c484ab0bb9$var$process.__signal_exit_emitter__;\n else {\n $4f2755c484ab0bb9$var$emitter = $4f2755c484ab0bb9$var$process.__signal_exit_emitter__ = new $4f2755c484ab0bb9$var$EE();\n $4f2755c484ab0bb9$var$emitter.count = 0;\n $4f2755c484ab0bb9$var$emitter.emitted = {};\n }\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!$4f2755c484ab0bb9$var$emitter.infinite) {\n $4f2755c484ab0bb9$var$emitter.setMaxListeners(Infinity);\n $4f2755c484ab0bb9$var$emitter.infinite = true;\n }\n $4f2755c484ab0bb9$exports = function(cb, opts) {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return function() {};\n $4f2755c484ab0bb9$var$assert.equal(typeof cb, \"function\", \"a callback must be provided for exit handler\");\n if ($4f2755c484ab0bb9$var$loaded === false) $4f2755c484ab0bb9$var$load();\n var ev = \"exit\";\n if (opts && opts.alwaysLast) ev = \"afterexit\";\n var remove = function() {\n $4f2755c484ab0bb9$var$emitter.removeListener(ev, cb);\n if ($4f2755c484ab0bb9$var$emitter.listeners(\"exit\").length === 0 && $4f2755c484ab0bb9$var$emitter.listeners(\"afterexit\").length === 0) $4f2755c484ab0bb9$var$unload();\n };\n $4f2755c484ab0bb9$var$emitter.on(ev, cb);\n return remove;\n };\n var $4f2755c484ab0bb9$var$unload = function unload() {\n if (!$4f2755c484ab0bb9$var$loaded || !$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$loaded = false;\n $4f2755c484ab0bb9$var$signals.forEach(function(sig) {\n try {\n $4f2755c484ab0bb9$var$process.removeListener(sig, $4f2755c484ab0bb9$var$sigListeners[sig]);\n } catch (er) {}\n });\n $4f2755c484ab0bb9$var$process.emit = $4f2755c484ab0bb9$var$originalProcessEmit;\n $4f2755c484ab0bb9$var$process.reallyExit = $4f2755c484ab0bb9$var$originalProcessReallyExit;\n $4f2755c484ab0bb9$var$emitter.count -= 1;\n };\n $4f2755c484ab0bb9$exports.unload = $4f2755c484ab0bb9$var$unload;\n var $4f2755c484ab0bb9$var$emit = function emit(event, code, signal) {\n /* istanbul ignore if */ if ($4f2755c484ab0bb9$var$emitter.emitted[event]) return;\n $4f2755c484ab0bb9$var$emitter.emitted[event] = true;\n $4f2755c484ab0bb9$var$emitter.emit(event, code, signal);\n };\n // { : , ... }\n var $4f2755c484ab0bb9$var$sigListeners = {};\n $4f2755c484ab0bb9$var$signals.forEach(function(sig) {\n $4f2755c484ab0bb9$var$sigListeners[sig] = function listener() {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = $4f2755c484ab0bb9$var$process.listeners(sig);\n if (listeners.length === $4f2755c484ab0bb9$var$emitter.count) {\n $4f2755c484ab0bb9$var$unload();\n $4f2755c484ab0bb9$var$emit(\"exit\", null, sig);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", null, sig);\n /* istanbul ignore next */ if ($4f2755c484ab0bb9$var$isWin && sig === \"SIGHUP\") // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = \"SIGINT\";\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$process.kill($4f2755c484ab0bb9$var$process.pid, sig);\n }\n };\n });\n $4f2755c484ab0bb9$exports.signals = function() {\n return $4f2755c484ab0bb9$var$signals;\n };\n var $4f2755c484ab0bb9$var$loaded = false;\n var $4f2755c484ab0bb9$var$load = function load() {\n if ($4f2755c484ab0bb9$var$loaded || !$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$loaded = true;\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n $4f2755c484ab0bb9$var$emitter.count += 1;\n $4f2755c484ab0bb9$var$signals = $4f2755c484ab0bb9$var$signals.filter(function(sig) {\n try {\n $4f2755c484ab0bb9$var$process.on(sig, $4f2755c484ab0bb9$var$sigListeners[sig]);\n return true;\n } catch (er) {\n return false;\n }\n });\n $4f2755c484ab0bb9$var$process.emit = $4f2755c484ab0bb9$var$processEmit;\n $4f2755c484ab0bb9$var$process.reallyExit = $4f2755c484ab0bb9$var$processReallyExit;\n };\n $4f2755c484ab0bb9$exports.load = $4f2755c484ab0bb9$var$load;\n var $4f2755c484ab0bb9$var$originalProcessReallyExit = $4f2755c484ab0bb9$var$process.reallyExit;\n var $4f2755c484ab0bb9$var$processReallyExit = function processReallyExit(code) {\n /* istanbul ignore if */ if (!$4f2755c484ab0bb9$var$processOk($parcel$global.process)) return;\n $4f2755c484ab0bb9$var$process.exitCode = code || /* istanbul ignore next */ 0;\n $4f2755c484ab0bb9$var$emit(\"exit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$originalProcessReallyExit.call($4f2755c484ab0bb9$var$process, $4f2755c484ab0bb9$var$process.exitCode);\n };\n var $4f2755c484ab0bb9$var$originalProcessEmit = $4f2755c484ab0bb9$var$process.emit;\n var $4f2755c484ab0bb9$var$processEmit = function processEmit(ev, arg) {\n if (ev === \"exit\" && $4f2755c484ab0bb9$var$processOk($parcel$global.process)) {\n /* istanbul ignore else */ if (arg !== undefined) $4f2755c484ab0bb9$var$process.exitCode = arg;\n var ret = $4f2755c484ab0bb9$var$originalProcessEmit.apply(this, arguments);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"exit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ $4f2755c484ab0bb9$var$emit(\"afterexit\", $4f2755c484ab0bb9$var$process.exitCode, null);\n /* istanbul ignore next */ return ret;\n } else return $4f2755c484ab0bb9$var$originalProcessEmit.apply(this, arguments);\n };\n}\n\n\nconst $fa741d3d5361c52d$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $fa741d3d5361c52d$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $fa741d3d5361c52d$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $fa741d3d5361c52d$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$fa741d3d5361c52d$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $fa741d3d5361c52d$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $fa741d3d5361c52d$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$fa741d3d5361c52d$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $fa741d3d5361c52d$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($d7DIX$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $fa741d3d5361c52d$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $fa741d3d5361c52d$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $fa741d3d5361c52d$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $fa741d3d5361c52d$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $fa741d3d5361c52d$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $fa741d3d5361c52d$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $fa741d3d5361c52d$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $fa741d3d5361c52d$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($4f2755c484ab0bb9$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\nfunction $a56021186667e1ae$export$294a92d8f7b3979(stream) {\n return stream !== null && typeof stream === \"object\" && typeof stream.pipe === \"function\";\n}\nfunction $a56021186667e1ae$export$b58a61c52edb4f66(stream) {\n return $a56021186667e1ae$export$294a92d8f7b3979(stream) && stream.writable !== false && typeof stream._write === \"function\" && typeof stream._writableState === \"object\";\n}\nfunction $a56021186667e1ae$export$ac613ff475b69d05(stream) {\n return $a56021186667e1ae$export$294a92d8f7b3979(stream) && stream.readable !== false && typeof stream._read === \"function\" && typeof stream._readableState === \"object\";\n}\nfunction $a56021186667e1ae$export$f92d8ccfaec172d4(stream) {\n return $a56021186667e1ae$export$b58a61c52edb4f66(stream) && $a56021186667e1ae$export$ac613ff475b69d05(stream);\n}\nfunction $a56021186667e1ae$export$3053cdc6f2e088fd(stream) {\n return $a56021186667e1ae$export$f92d8ccfaec172d4(stream) && typeof stream._transform === \"function\";\n}\n\n\nconst $1116c8395866a081$var$isExecaChildProcess = (target)=>target instanceof (0, $d7DIX$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $1116c8395866a081$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $d7DIX$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $a56021186667e1ae$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$1116c8395866a081$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $a56021186667e1ae$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $1116c8395866a081$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $1116c8395866a081$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\nvar $7797ec8e8589a175$exports = {};\n\"use strict\";\n\nvar $7797ec8e8589a175$require$BufferConstants = $d7DIX$buffer.constants;\n\n\nvar $7797ec8e8589a175$require$promisify = $d7DIX$util.promisify;\nvar $dc2cdad9b6bc28de$exports = {};\n\"use strict\";\n\nvar $dc2cdad9b6bc28de$require$PassThroughStream = $d7DIX$stream.PassThrough;\n$dc2cdad9b6bc28de$exports = (options)=>{\n options = {\n ...options\n };\n const { array: array } = options;\n let { encoding: encoding } = options;\n const isBuffer = encoding === \"buffer\";\n let objectMode = false;\n if (array) objectMode = !(encoding || isBuffer);\n else encoding = encoding || \"utf8\";\n if (isBuffer) encoding = null;\n const stream = new $dc2cdad9b6bc28de$require$PassThroughStream({\n objectMode: objectMode\n });\n if (encoding) stream.setEncoding(encoding);\n let length = 0;\n const chunks = [];\n stream.on(\"data\", (chunk)=>{\n chunks.push(chunk);\n if (objectMode) length = chunks.length;\n else length += chunk.length;\n });\n stream.getBufferedValue = ()=>{\n if (array) return chunks;\n return isBuffer ? Buffer.concat(chunks, length) : chunks.join(\"\");\n };\n stream.getBufferedLength = ()=>length;\n return stream;\n};\n\n\nconst $7797ec8e8589a175$var$streamPipelinePromisified = $7797ec8e8589a175$require$promisify($d7DIX$stream.pipeline);\nclass $7797ec8e8589a175$var$MaxBufferError extends Error {\n constructor(){\n super(\"maxBuffer exceeded\");\n this.name = \"MaxBufferError\";\n }\n}\nasync function $7797ec8e8589a175$var$getStream(inputStream, options) {\n if (!inputStream) throw new Error(\"Expected a stream\");\n options = {\n maxBuffer: Infinity,\n ...options\n };\n const { maxBuffer: maxBuffer } = options;\n const stream = $dc2cdad9b6bc28de$exports(options);\n await new Promise((resolve, reject)=>{\n const rejectPromise = (error)=>{\n // Don't retrieve an oversized buffer.\n if (error && stream.getBufferedLength() <= $7797ec8e8589a175$require$BufferConstants.MAX_LENGTH) error.bufferedData = stream.getBufferedValue();\n reject(error);\n };\n (async ()=>{\n try {\n await $7797ec8e8589a175$var$streamPipelinePromisified(inputStream, stream);\n resolve();\n } catch (error) {\n rejectPromise(error);\n }\n })();\n stream.on(\"data\", ()=>{\n if (stream.getBufferedLength() > maxBuffer) rejectPromise(new $7797ec8e8589a175$var$MaxBufferError());\n });\n });\n return stream.getBufferedValue();\n}\n$7797ec8e8589a175$exports = $7797ec8e8589a175$var$getStream;\n$7797ec8e8589a175$exports.buffer = (stream, options)=>$7797ec8e8589a175$var$getStream(stream, {\n ...options,\n encoding: \"buffer\"\n });\n$7797ec8e8589a175$exports.array = (stream, options)=>$7797ec8e8589a175$var$getStream(stream, {\n ...options,\n array: true\n });\n$7797ec8e8589a175$exports.MaxBufferError = $7797ec8e8589a175$var$MaxBufferError;\n\n\nvar $c96fa5900af93c80$exports = {};\n\"use strict\";\n\nvar $c96fa5900af93c80$require$PassThrough = $d7DIX$stream.PassThrough;\n$c96fa5900af93c80$exports = function() {\n var sources = [];\n var output = new $c96fa5900af93c80$require$PassThrough({\n objectMode: true\n });\n output.setMaxListeners(0);\n output.add = add;\n output.isEmpty = isEmpty;\n output.on(\"unpipe\", remove);\n Array.prototype.slice.call(arguments).forEach(add);\n return output;\n function add(source) {\n if (Array.isArray(source)) {\n source.forEach(add);\n return this;\n }\n sources.push(source);\n source.once(\"end\", remove.bind(null, source));\n source.once(\"error\", output.emit.bind(output, \"error\"));\n source.pipe(output, {\n end: false\n });\n return this;\n }\n function isEmpty() {\n return sources.length == 0;\n }\n function remove(source) {\n sources = sources.filter(function(it) {\n return it !== source;\n });\n if (!sources.length && output.readable) output.end();\n }\n};\n\n\nconst $cd75f6210a259c45$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $cd75f6210a259c45$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $cd75f6210a259c45$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.readFileSync)(inputFile);\n};\nconst $cd75f6210a259c45$export$7f2f9b6457412b41 = (options)=>{\n const input = $cd75f6210a259c45$var$getInputSync(options);\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $cd75f6210a259c45$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $cd75f6210a259c45$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.createReadStream)(inputFile);\n};\nconst $cd75f6210a259c45$export$412508d679148d5c = (spawned, options)=>{\n const input = $cd75f6210a259c45$var$getInput(options);\n if (input === undefined) return;\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $cd75f6210a259c45$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($c96fa5900af93c80$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $cd75f6210a259c45$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $cd75f6210a259c45$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $cd75f6210a259c45$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $cd75f6210a259c45$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $cd75f6210a259c45$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $cd75f6210a259c45$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $cd75f6210a259c45$var$getBufferedData(stdout, stdoutPromise),\n $cd75f6210a259c45$var$getBufferedData(stderr, stderrPromise),\n $cd75f6210a259c45$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $bff0e92d62b2f2ec$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $bff0e92d62b2f2ec$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($bff0e92d62b2f2ec$var$nativePromisePrototype, property)\n ]);\nconst $bff0e92d62b2f2ec$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $bff0e92d62b2f2ec$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $bff0e92d62b2f2ec$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $5b3216da0133be0b$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $5b3216da0133be0b$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $5b3216da0133be0b$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $5b3216da0133be0b$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $5b3216da0133be0b$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($5b3216da0133be0b$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $5b3216da0133be0b$export$ab3db8fe5ebf3a1 = (file, args)=>$5b3216da0133be0b$var$normalizeArgs(file, args).join(\" \");\nconst $5b3216da0133be0b$export$9d3099014bd914f8 = (file, args)=>$5b3216da0133be0b$var$normalizeArgs(file, args).map((arg)=>$5b3216da0133be0b$var$escapeArg(arg)).join(\" \");\nconst $5b3216da0133be0b$var$SPACES_REGEXP = / +/g;\nconst $5b3216da0133be0b$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($5b3216da0133be0b$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $5b3216da0133be0b$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $d7DIX$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $d7DIX$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $5b3216da0133be0b$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $5b3216da0133be0b$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($5b3216da0133be0b$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $5b3216da0133be0b$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$5b3216da0133be0b$var$parseExpression(expression)) : [\n $5b3216da0133be0b$var$parseExpression(expression)\n ];\n return $5b3216da0133be0b$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $5b3216da0133be0b$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $5b3216da0133be0b$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $8619df7f75275a6d$export$38bb3c1fbaa0bdcf = (0, $d7DIX$nodeutil.debuglog)(\"execa\").enabled;\nconst $8619df7f75275a6d$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $8619df7f75275a6d$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$8619df7f75275a6d$var$padField(date.getHours(), 2)}:${$8619df7f75275a6d$var$padField(date.getMinutes(), 2)}:${$8619df7f75275a6d$var$padField(date.getSeconds(), 2)}.${$8619df7f75275a6d$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $8619df7f75275a6d$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($d7DIX$nodeprocess))).stderr.write(`[${$8619df7f75275a6d$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $54908482e02f4b6d$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $54908482e02f4b6d$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($d7DIX$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $79a4a337e08e5260$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $54908482e02f4b6d$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($8b1434f30c2df0f5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $54908482e02f4b6d$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $8619df7f75275a6d$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $54908482e02f4b6d$var$getEnv(options);\n options.stdio = (0, $af1945b2831f1830$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($d7DIX$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($d7DIX$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $54908482e02f4b6d$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $d7DIX$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $c36cfccc5e0479d9$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $54908482e02f4b6d$export$db6b1668e3758717(file, args, options) {\n const parsed = $54908482e02f4b6d$var$handleArguments(file, args, options);\n const command = (0, $5b3216da0133be0b$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $5b3216da0133be0b$export$9d3099014bd914f8)(file, args);\n (0, $8619df7f75275a6d$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $fa741d3d5361c52d$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($d7DIX$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $bff0e92d62b2f2ec$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $bff0e92d62b2f2ec$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $fa741d3d5361c52d$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $fa741d3d5361c52d$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $fa741d3d5361c52d$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $fa741d3d5361c52d$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $cd75f6210a259c45$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $54908482e02f4b6d$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $54908482e02f4b6d$var$handleOutput(parsed.options, stderrResult);\n const all = $54908482e02f4b6d$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a257f7b521fbcd70$export$2e2bcd8739ae039)(handlePromise);\n (0, $cd75f6210a259c45$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $cd75f6210a259c45$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $1116c8395866a081$export$14becf8d91886424)(spawned);\n (0, $bff0e92d62b2f2ec$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $54908482e02f4b6d$export$28823a701bb5a12d(file, args, options) {\n const parsed = $54908482e02f4b6d$var$handleArguments(file, args, options);\n const command = (0, $5b3216da0133be0b$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $5b3216da0133be0b$export$9d3099014bd914f8)(file, args);\n (0, $8619df7f75275a6d$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $cd75f6210a259c45$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $54908482e02f4b6d$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $54908482e02f4b6d$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $db32f6282de80f14$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $54908482e02f4b6d$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $54908482e02f4b6d$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$54908482e02f4b6d$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $54908482e02f4b6d$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $54908482e02f4b6d$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $5b3216da0133be0b$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $54908482e02f4b6d$export$db6b1668e3758717(file, args, $54908482e02f4b6d$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $5b3216da0133be0b$export$4a6ee54de9b0f25d)(templates, expressions);\n return $54908482e02f4b6d$export$28823a701bb5a12d(file, args, $54908482e02f4b6d$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $54908482e02f4b6d$export$3d8c2f653ac9d0b9 = $54908482e02f4b6d$var$create$();\nfunction $54908482e02f4b6d$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $5b3216da0133be0b$export$78bcee23e0849f6a)(command);\n return $54908482e02f4b6d$export$db6b1668e3758717(file, args, options);\n}\nfunction $54908482e02f4b6d$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $5b3216da0133be0b$export$78bcee23e0849f6a)(command);\n return $54908482e02f4b6d$export$28823a701bb5a12d(file, args, options);\n}\nfunction $54908482e02f4b6d$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $af1945b2831f1830$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $54908482e02f4b6d$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\nfunction $4467f131fc22cbb2$export$7683bf1311d8252() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"sudo\", {\n nothrow: true\n }) !== null;\n}\nfunction $4467f131fc22cbb2$export$e3140dc7d0c35e48() {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI);\n}\nfunction $4467f131fc22cbb2$export$316200228f28b8ce() {\n return $4467f131fc22cbb2$export$e3140dc7d0c35e48() && $4467f131fc22cbb2$export$7683bf1311d8252();\n}\nfunction $4467f131fc22cbb2$export$d976d47922ae9667(command) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) return `sudo ${command}`;\n return command;\n}\nconst $4467f131fc22cbb2$export$151aeb0ade3989e1 = {\n stdio: \"inherit\",\n shell: true\n};\nfunction $4467f131fc22cbb2$export$58f152936f209932(program, args = [], execOptions = $4467f131fc22cbb2$export$151aeb0ade3989e1) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) {\n const command = $4467f131fc22cbb2$var$getSudoCommand(program, args);\n return (0, $54908482e02f4b6d$export$5c60dbe76a54db4)(command, execOptions);\n } else return (0, $54908482e02f4b6d$export$28823a701bb5a12d)(program, $4467f131fc22cbb2$var$quote(args), execOptions);\n}\nfunction $4467f131fc22cbb2$export$351270479e2eef26(program, args = [], execOptions = $4467f131fc22cbb2$export$151aeb0ade3989e1) {\n if ($4467f131fc22cbb2$export$316200228f28b8ce()) {\n const command = $4467f131fc22cbb2$var$getSudoCommand(program, args);\n return (0, $54908482e02f4b6d$export$eb9ed1222071f2f6)(command, execOptions);\n } else return (0, $54908482e02f4b6d$export$db6b1668e3758717)(program, $4467f131fc22cbb2$var$quote(args), execOptions);\n}\nfunction $4467f131fc22cbb2$var$getSudoCommand(program, args) {\n return `sudo ${$4467f131fc22cbb2$var$quote([\n program,\n ...args\n ]).join(\" \")}`;\n}\nfunction $4467f131fc22cbb2$var$quote(strings) {\n return strings.map((str)=>`'${str}'`);\n}\n\n\n// From `is-admin`: updated execa\n\n// https://stackoverflow.com/a/28268802\nasync function $7020ab17cd399ddb$var$testFltmc() {\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"fltmc\");\n return true;\n } catch {\n return false;\n }\n}\nasync function $7020ab17cd399ddb$export$2e2bcd8739ae039() {\n if (process.platform !== \"win32\") return false;\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"fsutil\", [\n \"dirty\",\n \"query\",\n process.env.systemdrive ?? \"\"\n ]);\n return true;\n } catch (error) {\n if (error.code === \"ENOENT\") return $7020ab17cd399ddb$var$testFltmc();\n return false;\n }\n}\n\n\n\nconst $04f5a339f0d90ee6$export$36ad181701cee597 = (0, $7020ab17cd399ddb$export$2e2bcd8739ae039);\nconst $04f5a339f0d90ee6$export$2ebf12717e6b5bb8 = (0, $4467f131fc22cbb2$export$e3140dc7d0c35e48);\nfunction $04f5a339f0d90ee6$export$fc970ed23da99565() {\n if (process.platform === \"win32\") return $04f5a339f0d90ee6$export$36ad181701cee597();\n else return (0, $4467f131fc22cbb2$export$e3140dc7d0c35e48)();\n}\n\n\n\n\nasync function $8c9709291dc275bc$export$4718e061a205eab(path) {\n if ((process.platform === \"linux\" || process.platform === \"darwin\") && (0, $4467f131fc22cbb2$export$316200228f28b8ce)() && process.env.SUDO_USER !== undefined) {\n const isDirectory = (0, ($parcel$interopDefault($d7DIX$fs))).statSync(path).isDirectory();\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"chown\", [\n ...isDirectory ? [\n \"-R\"\n ] : [],\n process.env.SUDO_USER,\n path\n ], (0, $4467f131fc22cbb2$export$151aeb0ade3989e1));\n }\n}\n\n\n\n\n\n\nfunction $cc03115747abd396$export$3ce714bda98f65f0() {\n if ((0, $4467f131fc22cbb2$export$316200228f28b8ce)() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") return (0, $d7DIX$path.join)(\"/Users/\", process.env.SUDO_USER);\n else return (0, $d7DIX$path.join)(\"/home/\", process.env.SUDO_USER);\n } else {\n const maybeHomeDir = (0, $d7DIX$os.homedir)();\n if (maybeHomeDir === \"\") return undefined;\n return maybeHomeDir;\n }\n}\nconst $cc03115747abd396$var$tildeRegex = /^~(?=$|\\/|\\\\)/;\nfunction $cc03115747abd396$export$8312d9eeba321950(path) {\n const maybeHomeDir = $cc03115747abd396$export$3ce714bda98f65f0();\n if (maybeHomeDir === undefined) return path;\n return path.replace($cc03115747abd396$var$tildeRegex, maybeHomeDir);\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $fdb448df0bdfb0de$exports = {};\n\"use strict\";\n\n\nvar $bSUdl = parcelRequire(\"bSUdl\");\n\n\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise */ function $fdb448df0bdfb0de$var$__awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $fdb448df0bdfb0de$var$__generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $fdb448df0bdfb0de$var$packageJson = $d7DIX$process.env.npm_package_json;\nvar $fdb448df0bdfb0de$var$userAgent = $d7DIX$process.env.npm_config_user_agent;\nvar $fdb448df0bdfb0de$var$isNpm6 = Boolean($fdb448df0bdfb0de$var$userAgent && $fdb448df0bdfb0de$var$userAgent.startsWith(\"npm\"));\nvar $fdb448df0bdfb0de$var$isNpm7 = Boolean($fdb448df0bdfb0de$var$packageJson && $fdb448df0bdfb0de$var$packageJson.endsWith(\"package.json\"));\nvar $fdb448df0bdfb0de$var$isNpm = $fdb448df0bdfb0de$var$isNpm6 || $fdb448df0bdfb0de$var$isNpm7;\nvar $fdb448df0bdfb0de$var$isYarn = Boolean($fdb448df0bdfb0de$var$userAgent && $fdb448df0bdfb0de$var$userAgent.startsWith(\"yarn\"));\nvar $fdb448df0bdfb0de$var$isNpmOrYarn = $fdb448df0bdfb0de$var$isNpm || $fdb448df0bdfb0de$var$isYarn;\nvar $fdb448df0bdfb0de$var$homeDirectory = $d7DIX$os.homedir();\nvar $fdb448df0bdfb0de$var$configDir = process.env.XDG_CONFIG_HOME || $d7DIX$path.join($fdb448df0bdfb0de$var$homeDirectory, \".config\", \"simple-update-notifier\");\nvar $fdb448df0bdfb0de$var$getConfigFile = function(packageName) {\n return $d7DIX$path.join($fdb448df0bdfb0de$var$configDir, \"\".concat(packageName.replace(\"@\", \"\").replace(\"/\", \"__\"), \".json\"));\n};\nvar $fdb448df0bdfb0de$var$createConfigDir = function() {\n if (!$d7DIX$fs.existsSync($fdb448df0bdfb0de$var$configDir)) $d7DIX$fs.mkdirSync($fdb448df0bdfb0de$var$configDir, {\n recursive: true\n });\n};\nvar $fdb448df0bdfb0de$var$getLastUpdate = function(packageName) {\n var configFile = $fdb448df0bdfb0de$var$getConfigFile(packageName);\n try {\n if (!$d7DIX$fs.existsSync(configFile)) return undefined;\n var file = JSON.parse($d7DIX$fs.readFileSync(configFile, \"utf8\"));\n return file.lastUpdateCheck;\n } catch (_a) {\n return undefined;\n }\n};\nvar $fdb448df0bdfb0de$var$saveLastUpdate = function(packageName) {\n var configFile = $fdb448df0bdfb0de$var$getConfigFile(packageName);\n $d7DIX$fs.writeFileSync(configFile, JSON.stringify({\n lastUpdateCheck: new Date().getTime()\n }));\n};\nvar $fdb448df0bdfb0de$var$getDistVersion = function(packageName, distTag) {\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var url;\n return $fdb448df0bdfb0de$var$__generator(this, function(_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [\n 2 /*return*/ ,\n new Promise(function(resolve, reject) {\n $d7DIX$https.get(url, function(res) {\n var body = \"\";\n res.on(\"data\", function(chunk) {\n return body += chunk;\n });\n res.on(\"end\", function() {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) reject(new Error(\"Error getting version\"));\n resolve(version);\n } catch (_a) {\n reject(new Error(\"Could not parse version response\"));\n }\n });\n }).on(\"error\", function(err) {\n return reject(err);\n });\n })\n ];\n });\n });\n};\nvar $fdb448df0bdfb0de$var$hasNewVersion = function(_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 86400000 : _b, _c = _a.distTag, distTag = _c === void 0 ? \"latest\" : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var lastUpdateCheck, latestVersion;\n return $fdb448df0bdfb0de$var$__generator(this, function(_d) {\n switch(_d.label){\n case 0:\n $fdb448df0bdfb0de$var$createConfigDir();\n lastUpdateCheck = $fdb448df0bdfb0de$var$getLastUpdate(pkg.name);\n if (!(alwaysRun || !lastUpdateCheck || lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [\n 3 /*break*/ ,\n 2\n ];\n return [\n 4 /*yield*/ ,\n $fdb448df0bdfb0de$var$getDistVersion(pkg.name, distTag)\n ];\n case 1:\n latestVersion = _d.sent();\n $fdb448df0bdfb0de$var$saveLastUpdate(pkg.name);\n if ($bSUdl.gt(latestVersion, pkg.version)) return [\n 2 /*return*/ ,\n latestVersion\n ];\n else if (debug) console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n return [\n 3 /*break*/ ,\n 3\n ];\n case 2:\n if (debug) console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n _d.label = 3;\n case 3:\n return [\n 2 /*return*/ ,\n false\n ];\n }\n });\n });\n};\nvar $fdb448df0bdfb0de$var$borderedText = function(text) {\n var lines = text.split(\"\\n\");\n var width = Math.max.apply(Math, lines.map(function(l) {\n return l.length;\n }));\n var res = [\n \"\\u250C\".concat(\"\\u2500\".repeat(width + 2), \"\\u2510\")\n ];\n for(var _i = 0, lines_1 = lines; _i < lines_1.length; _i++){\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat(\"\\u2500\".repeat(width + 2), \"\\u2518\"));\n return res.join(\"\\n\");\n};\nvar $fdb448df0bdfb0de$var$simpleUpdateNotifier = function(args) {\n return $fdb448df0bdfb0de$var$__awaiter(void 0, void 0, void 0, function() {\n var latestVersion, err_1;\n return $fdb448df0bdfb0de$var$__generator(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!args.alwaysRun && (!process.stdout.isTTY || $fdb448df0bdfb0de$var$isNpmOrYarn && !args.shouldNotifyInNpmScript)) {\n if (args.debug) console.error(\"Opting out of running simpleUpdateNotifier()\");\n return [\n 2 /*return*/ \n ];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4 /*yield*/ ,\n $fdb448df0bdfb0de$var$hasNewVersion(args)\n ];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) console.error($fdb448df0bdfb0de$var$borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n return [\n 3 /*break*/ ,\n 4\n ];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) console.error(\"Unexpected error in simpleUpdateNotifier():\", err_1);\n return [\n 3 /*break*/ ,\n 4\n ];\n case 4:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n};\n$fdb448df0bdfb0de$exports = $fdb448df0bdfb0de$var$simpleUpdateNotifier;\n\n\nvar $276f0975e227ff36$exports = {};\n$276f0975e227ff36$exports = JSON.parse('{\"name\":\"setup-cpp\",\"version\":\"0.37.0\"}');\n\n\nasync function $cb87868918740ed3$export$31c6d94eb20a8ca7() {\n try {\n await (0, (/*@__PURE__*/$parcel$interopDefault($fdb448df0bdfb0de$exports)))({\n pkg: (0, (/*@__PURE__*/$parcel$interopDefault($276f0975e227ff36$exports)))\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`);\n }\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nfunction $9db6cbd493c17e7d$var$toArr(any) {\n return any == null ? [] : Array.isArray(any) ? any : [\n any\n ];\n}\nfunction $9db6cbd493c17e7d$var$toVal(out, key, val, opts) {\n var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? \"\" : String(val) : typeof val === \"boolean\" ? val : !!~opts.boolean.indexOf(key) ? val === \"false\" ? false : val === \"true\" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;\n out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [\n old,\n nxt\n ];\n}\nfunction $9db6cbd493c17e7d$export$2e2bcd8739ae039(args, opts) {\n args = args || [];\n opts = opts || {};\n var k, arr, arg, name, val, out = {\n _: []\n };\n var i = 0, j = 0, idx = 0, len = args.length;\n const alibi = opts.alias !== void 0;\n const strict = opts.unknown !== void 0;\n const defaults = opts.default !== void 0;\n opts.alias = opts.alias || {};\n opts.string = $9db6cbd493c17e7d$var$toArr(opts.string);\n opts.boolean = $9db6cbd493c17e7d$var$toArr(opts.boolean);\n if (alibi) for(k in opts.alias){\n arr = opts.alias[k] = $9db6cbd493c17e7d$var$toArr(opts.alias[k]);\n for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n }\n for(i = opts.boolean.length; i-- > 0;){\n arr = opts.alias[opts.boolean[i]] || [];\n for(j = arr.length; j-- > 0;)opts.boolean.push(arr[j]);\n }\n for(i = opts.string.length; i-- > 0;){\n arr = opts.alias[opts.string[i]] || [];\n for(j = arr.length; j-- > 0;)opts.string.push(arr[j]);\n }\n if (defaults) for(k in opts.default){\n name = typeof opts.default[k];\n arr = opts.alias[k] = opts.alias[k] || [];\n if (opts[name] !== void 0) {\n opts[name].push(k);\n for(i = 0; i < arr.length; i++)opts[name].push(arr[i]);\n }\n }\n const keys = strict ? Object.keys(opts.alias) : [];\n for(i = 0; i < len; i++){\n arg = args[i];\n if (arg === \"--\") {\n out._ = out._.concat(args.slice(++i));\n break;\n }\n for(j = 0; j < arg.length; j++){\n if (arg.charCodeAt(j) !== 45) break; // \"-\"\n }\n if (j === 0) out._.push(arg);\n else if (arg.substring(j, j + 3) === \"no-\") {\n name = arg.substring(j + 3);\n if (strict && !~keys.indexOf(name)) return opts.unknown(arg);\n out[name] = false;\n } else {\n for(idx = j + 1; idx < arg.length; idx++){\n if (arg.charCodeAt(idx) === 61) break; // \"=\"\n }\n name = arg.substring(j, idx);\n val = arg.substring(++idx) || i + 1 === len || (\"\" + args[i + 1]).charCodeAt(0) === 45 || args[++i];\n arr = j === 2 ? [\n name\n ] : name;\n for(idx = 0; idx < arr.length; idx++){\n name = arr[idx];\n if (strict && !~keys.indexOf(name)) return opts.unknown(\"-\".repeat(j) + name);\n $9db6cbd493c17e7d$var$toVal(out, name, idx + 1 < arr.length || val, opts);\n }\n }\n }\n if (defaults) {\n for(k in opts.default)if (out[k] === void 0) out[k] = opts.default[k];\n }\n if (alibi) for(k in out){\n arr = opts.alias[k] || [];\n while(arr.length > 0)out[arr.shift()] = out[k];\n }\n return out;\n}\n\n\n\n\nlet $3cbfee605ac1e082$var$hasDnfCache = undefined;\nfunction $3cbfee605ac1e082$export$8ce8b4b22331a8c7() {\n if (process.platform !== \"linux\") return false;\n if ($3cbfee605ac1e082$var$hasDnfCache === undefined) $3cbfee605ac1e082$var$hasDnfCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"dnf\", {\n nothrow: true\n }) !== null;\n return $3cbfee605ac1e082$var$hasDnfCache;\n}\n\n\n\nlet $84785c71f430250a$var$isArchCache = undefined;\nfunction $84785c71f430250a$export$d415ddb6702ec3a2() {\n if (process.platform !== \"linux\") return false;\n if ($84785c71f430250a$var$isArchCache === undefined) // detect arch by checking if pacman exists\n $84785c71f430250a$var$isArchCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"pacman\", {\n nothrow: true\n }) !== null;\n return $84785c71f430250a$var$isArchCache;\n}\n\n\n\nlet $7b55ac603b97ae6e$var$isUbuntuCache = undefined;\nfunction $7b55ac603b97ae6e$export$da8baf1d6c6802b6() {\n if (process.platform !== \"linux\") return false;\n if ($7b55ac603b97ae6e$var$isUbuntuCache === undefined) {\n const apt = \"apt-get\";\n $7b55ac603b97ae6e$var$isUbuntuCache = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(apt, {\n nothrow: true\n }) !== null;\n }\n return $7b55ac603b97ae6e$var$isUbuntuCache;\n}\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $2adb2deed09dfe8c$exports = {};\n\n// to detect on with os user had used path.resolve(...)\nconst $2adb2deed09dfe8c$var$is_posix_os = $d7DIX$os.platform() !== \"win32\";\nconst $2adb2deed09dfe8c$var$version = $d7DIX$os.release();\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\n// https://docs.microsoft.com/en-us/windows/release-information/\nconst $2adb2deed09dfe8c$var$windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\nconst $2adb2deed09dfe8c$var$should_not_escape = (major_release = \"\", os_build = \"\")=>/1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\n$2adb2deed09dfe8c$exports = function(given_path) {\n return $2adb2deed09dfe8c$var$is_posix_os ? given_path.replace(/(\\s+)/g, \"\\\\$1\") : $2adb2deed09dfe8c$var$should_not_escape(...$2adb2deed09dfe8c$var$windows_version_regex.exec($2adb2deed09dfe8c$var$version).splice(1)) ? given_path : given_path.replace(/(\\s+)/g, \"%20\");\n};\n\n\nvar $6fbce53baf96bc95$exports = {};\n\n// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n regexEscape = (parcelRequire(\"i8A01\"));\n reverse = function(s) {\n return s.split(\"\").reverse().join(\"\");\n };\n $6fbce53baf96bc95$exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) chars = \"'\";\n if (escapeChar == null) escapeChar = \"\\\\\";\n if (typeof s !== \"string\") return s;\n regex = new RegExp(\"([\" + regexEscape(chars) + \"])(?!\" + regexEscape(escapeChar) + \")\", \"g\");\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n}).call($6fbce53baf96bc95$exports);\n\n\n\n\n\n\n\n\n\n\n\nconst $66be15f27277e552$var$getErrorPrefix = ({ timedOut: timedOut, timeout: timeout, errorCode: errorCode, signal: signal, signalDescription: signalDescription, exitCode: exitCode, isCanceled: isCanceled })=>{\n if (timedOut) return `timed out after ${timeout} milliseconds`;\n if (isCanceled) return \"was canceled\";\n if (errorCode !== undefined) return `failed with ${errorCode}`;\n if (signal !== undefined) return `was killed with ${signal} (${signalDescription})`;\n if (exitCode !== undefined) return `failed with exit code ${exitCode}`;\n return \"failed\";\n};\nconst $66be15f27277e552$export$5a4bb2b1c89bdce7 = ({ stdout: stdout, stderr: stderr, all: all, error: error, signal: signal, exitCode: exitCode, command: command, escapedCommand: escapedCommand, timedOut: timedOut, isCanceled: isCanceled, killed: killed, parsed: { options: { timeout: timeout } } })=>{\n // `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n // We normalize them to `undefined`\n exitCode = exitCode === null ? undefined : exitCode;\n signal = signal === null ? undefined : signal;\n const signalDescription = signal === undefined ? undefined : (0, $e8ce250ce43ec2f1$export$c3fcb39d6848c78d)[signal].description;\n const errorCode = error && error.code;\n const prefix = $66be15f27277e552$var$getErrorPrefix({\n timedOut: timedOut,\n timeout: timeout,\n errorCode: errorCode,\n signal: signal,\n signalDescription: signalDescription,\n exitCode: exitCode,\n isCanceled: isCanceled\n });\n const execaMessage = `Command ${prefix}: ${command}`;\n const isError = Object.prototype.toString.call(error) === \"[object Error]\";\n const shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n const message = [\n shortMessage,\n stderr,\n stdout\n ].filter(Boolean).join(\"\\n\");\n if (isError) {\n error.originalMessage = error.message;\n error.message = message;\n } else error = new Error(message);\n error.shortMessage = shortMessage;\n error.command = command;\n error.escapedCommand = escapedCommand;\n error.exitCode = exitCode;\n error.signal = signal;\n error.signalDescription = signalDescription;\n error.stdout = stdout;\n error.stderr = stderr;\n if (all !== undefined) error.all = all;\n if (\"bufferedData\" in error) delete error.bufferedData;\n error.failed = true;\n error.timedOut = Boolean(timedOut);\n error.isCanceled = isCanceled;\n error.killed = killed && !timedOut;\n return error;\n};\n\n\nconst $e3142e39d503d843$var$aliases = [\n \"stdin\",\n \"stdout\",\n \"stderr\"\n];\nconst $e3142e39d503d843$var$hasAlias = (options)=>$e3142e39d503d843$var$aliases.some((alias)=>options[alias] !== undefined);\nconst $e3142e39d503d843$export$a581401a57fac02e = (options)=>{\n if (!options) return;\n const { stdio: stdio } = options;\n if (stdio === undefined) return $e3142e39d503d843$var$aliases.map((alias)=>options[alias]);\n if ($e3142e39d503d843$var$hasAlias(options)) throw new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${$e3142e39d503d843$var$aliases.map((alias)=>`\\`${alias}\\``).join(\", \")}`);\n if (typeof stdio === \"string\") return stdio;\n if (!Array.isArray(stdio)) throw new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n const length = Math.max(stdio.length, $e3142e39d503d843$var$aliases.length);\n return Array.from({\n length: length\n }, (value, index)=>stdio[index]);\n};\nconst $e3142e39d503d843$export$889423b478ae2ba = (options)=>{\n const stdio = $e3142e39d503d843$export$a581401a57fac02e(options);\n if (stdio === \"ipc\") return \"ipc\";\n if (stdio === undefined || typeof stdio === \"string\") return [\n stdio,\n stdio,\n stdio,\n \"ipc\"\n ];\n if (stdio.includes(\"ipc\")) return stdio;\n return [\n ...stdio,\n \"ipc\"\n ];\n};\n\n\n\n\nconst $ae33ff7ab47dac97$var$DEFAULT_FORCE_KILL_TIMEOUT = 5000;\nconst $ae33ff7ab47dac97$export$971fa1b57c7f00b = (kill, signal = \"SIGTERM\", options = {})=>{\n const killResult = kill(signal);\n $ae33ff7ab47dac97$var$setKillTimeout(kill, signal, options, killResult);\n return killResult;\n};\nconst $ae33ff7ab47dac97$var$setKillTimeout = (kill, signal, options, killResult)=>{\n if (!$ae33ff7ab47dac97$var$shouldForceKill(signal, options, killResult)) return;\n const timeout = $ae33ff7ab47dac97$var$getForceKillAfterTimeout(options);\n const t = setTimeout(()=>{\n kill(\"SIGKILL\");\n }, timeout);\n // Guarded because there's no `.unref()` when `execa` is used in the renderer\n // process in Electron. This cannot be tested since we don't run tests in\n // Electron.\n // istanbul ignore else\n if (t.unref) t.unref();\n};\nconst $ae33ff7ab47dac97$var$shouldForceKill = (signal, { forceKillAfterTimeout: forceKillAfterTimeout }, killResult)=>$ae33ff7ab47dac97$var$isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\nconst $ae33ff7ab47dac97$var$isSigterm = (signal)=>signal === (0, ($parcel$interopDefault($d7DIX$nodeos))).constants.signals.SIGTERM || typeof signal === \"string\" && signal.toUpperCase() === \"SIGTERM\";\nconst $ae33ff7ab47dac97$var$getForceKillAfterTimeout = ({ forceKillAfterTimeout: forceKillAfterTimeout = true })=>{\n if (forceKillAfterTimeout === true) return $ae33ff7ab47dac97$var$DEFAULT_FORCE_KILL_TIMEOUT;\n if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) throw new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n return forceKillAfterTimeout;\n};\nconst $ae33ff7ab47dac97$export$667e13cd9b70ca17 = (spawned, context)=>{\n const killResult = spawned.kill();\n if (killResult) context.isCanceled = true;\n};\nconst $ae33ff7ab47dac97$var$timeoutKill = (spawned, signal, reject)=>{\n spawned.kill(signal);\n reject(Object.assign(new Error(\"Timed out\"), {\n timedOut: true,\n signal: signal\n }));\n};\nconst $ae33ff7ab47dac97$export$6bcc98999eb82896 = (spawned, { timeout: timeout, killSignal: killSignal = \"SIGTERM\" }, spawnedPromise)=>{\n if (timeout === 0 || timeout === undefined) return spawnedPromise;\n let timeoutId;\n const timeoutPromise = new Promise((resolve, reject)=>{\n timeoutId = setTimeout(()=>{\n $ae33ff7ab47dac97$var$timeoutKill(spawned, killSignal, reject);\n }, timeout);\n });\n const safeSpawnedPromise = spawnedPromise.finally(()=>{\n clearTimeout(timeoutId);\n });\n return Promise.race([\n timeoutPromise,\n safeSpawnedPromise\n ]);\n};\nconst $ae33ff7ab47dac97$export$3186f8866f616f9f = ({ timeout: timeout })=>{\n if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n};\nconst $ae33ff7ab47dac97$export$79fc3056c9ca4ada = async (spawned, { cleanup: cleanup, detached: detached }, timedPromise)=>{\n if (!cleanup || detached) return timedPromise;\n const removeExitHandler = (0, (/*@__PURE__*/$parcel$interopDefault($4f2755c484ab0bb9$exports)))(()=>{\n spawned.kill();\n });\n return timedPromise.finally(()=>{\n removeExitHandler();\n });\n};\n\n\n\n\n\nconst $37b6e981f68ce4cf$var$isExecaChildProcess = (target)=>target instanceof (0, $d7DIX$nodechild_process.ChildProcess) && typeof target.then === \"function\";\nconst $37b6e981f68ce4cf$var$pipeToTarget = (spawned, streamName, target)=>{\n if (typeof target === \"string\") {\n spawned[streamName].pipe((0, $d7DIX$nodefs.createWriteStream)(target));\n return spawned;\n }\n if ((0, $a56021186667e1ae$export$b58a61c52edb4f66)(target)) {\n spawned[streamName].pipe(target);\n return spawned;\n }\n if (!$37b6e981f68ce4cf$var$isExecaChildProcess(target)) throw new TypeError(\"The second argument must be a string, a stream or an Execa child process.\");\n if (!(0, $a56021186667e1ae$export$b58a61c52edb4f66)(target.stdin)) throw new TypeError(\"The target child process's stdin must be available.\");\n spawned[streamName].pipe(target.stdin);\n return target;\n};\nconst $37b6e981f68ce4cf$export$14becf8d91886424 = (spawned)=>{\n if (spawned.stdout !== null) spawned.pipeStdout = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"stdout\");\n if (spawned.stderr !== null) spawned.pipeStderr = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"stderr\");\n if (spawned.all !== undefined) spawned.pipeAll = $37b6e981f68ce4cf$var$pipeToTarget.bind(undefined, spawned, \"all\");\n};\n\n\n\n\n\n\nconst $b766a69ffb9d264e$var$validateInputOptions = (input)=>{\n if (input !== undefined) throw new TypeError(\"The `input` and `inputFile` options cannot be both set.\");\n};\nconst $b766a69ffb9d264e$var$getInputSync = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $b766a69ffb9d264e$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.readFileSync)(inputFile);\n};\nconst $b766a69ffb9d264e$export$7f2f9b6457412b41 = (options)=>{\n const input = $b766a69ffb9d264e$var$getInputSync(options);\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) throw new TypeError(\"The `input` option cannot be a stream in sync mode\");\n return input;\n};\nconst $b766a69ffb9d264e$var$getInput = ({ input: input, inputFile: inputFile })=>{\n if (typeof inputFile !== \"string\") return input;\n $b766a69ffb9d264e$var$validateInputOptions(input);\n return (0, $d7DIX$nodefs.createReadStream)(inputFile);\n};\nconst $b766a69ffb9d264e$export$412508d679148d5c = (spawned, options)=>{\n const input = $b766a69ffb9d264e$var$getInput(options);\n if (input === undefined) return;\n if ((0, $a56021186667e1ae$export$294a92d8f7b3979)(input)) input.pipe(spawned.stdin);\n else spawned.stdin.end(input);\n};\nconst $b766a69ffb9d264e$export$41f5c0c12dadd6ae = (spawned, { all: all })=>{\n if (!all || !spawned.stdout && !spawned.stderr) return;\n const mixed = (0, (/*@__PURE__*/$parcel$interopDefault($c96fa5900af93c80$exports)))();\n if (spawned.stdout) mixed.add(spawned.stdout);\n if (spawned.stderr) mixed.add(spawned.stderr);\n return mixed;\n};\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst $b766a69ffb9d264e$var$getBufferedData = async (stream, streamPromise)=>{\n // When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n if (!stream || streamPromise === undefined) return;\n stream.destroy();\n try {\n return await streamPromise;\n } catch (error) {\n return error.bufferedData;\n }\n};\nconst $b766a69ffb9d264e$var$getStreamPromise = (stream, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer })=>{\n if (!stream || !buffer) return;\n if (encoding) return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports)))(stream, {\n encoding: encoding,\n maxBuffer: maxBuffer\n });\n return (0, (/*@__PURE__*/$parcel$interopDefault($7797ec8e8589a175$exports))).buffer(stream, {\n maxBuffer: maxBuffer\n });\n};\nconst $b766a69ffb9d264e$export$67b768ac9e1c70fa = async ({ stdout: stdout, stderr: stderr, all: all }, { encoding: encoding, buffer: buffer, maxBuffer: maxBuffer }, processDone)=>{\n const stdoutPromise = $b766a69ffb9d264e$var$getStreamPromise(stdout, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const stderrPromise = $b766a69ffb9d264e$var$getStreamPromise(stderr, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer\n });\n const allPromise = $b766a69ffb9d264e$var$getStreamPromise(all, {\n encoding: encoding,\n buffer: buffer,\n maxBuffer: maxBuffer * 2\n });\n try {\n return await Promise.all([\n processDone,\n stdoutPromise,\n stderrPromise,\n allPromise\n ]);\n } catch (error) {\n return Promise.all([\n {\n error: error,\n signal: error.signal,\n timedOut: error.timedOut\n },\n $b766a69ffb9d264e$var$getBufferedData(stdout, stdoutPromise),\n $b766a69ffb9d264e$var$getBufferedData(stderr, stderrPromise),\n $b766a69ffb9d264e$var$getBufferedData(all, allPromise)\n ]);\n }\n};\n\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\nconst $7e356ac2b63932e6$var$nativePromisePrototype = (async ()=>{})().constructor.prototype;\nconst $7e356ac2b63932e6$var$descriptors = [\n \"then\",\n \"catch\",\n \"finally\"\n].map((property)=>[\n property,\n Reflect.getOwnPropertyDescriptor($7e356ac2b63932e6$var$nativePromisePrototype, property)\n ]);\nconst $7e356ac2b63932e6$export$e6eb0007fd542aba = (spawned, promise)=>{\n for (const [property, descriptor] of $7e356ac2b63932e6$var$descriptors){\n // Starting the main `promise` is deferred to avoid consuming streams\n const value = typeof promise === \"function\" ? (...args)=>Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);\n Reflect.defineProperty(spawned, property, {\n ...descriptor,\n value: value\n });\n }\n};\nconst $7e356ac2b63932e6$export$6e3a9b5342d42997 = (spawned)=>new Promise((resolve, reject)=>{\n spawned.on(\"exit\", (exitCode, signal)=>{\n resolve({\n exitCode: exitCode,\n signal: signal\n });\n });\n spawned.on(\"error\", (error)=>{\n reject(error);\n });\n if (spawned.stdin) spawned.stdin.on(\"error\", (error)=>{\n reject(error);\n });\n });\n\n\n\n\nconst $7e1026ca054d0f7e$var$normalizeArgs = (file, args = [])=>{\n if (!Array.isArray(args)) return [\n file\n ];\n return [\n file,\n ...args\n ];\n};\nconst $7e1026ca054d0f7e$var$NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst $7e1026ca054d0f7e$var$DOUBLE_QUOTES_REGEXP = /\"/g;\nconst $7e1026ca054d0f7e$var$escapeArg = (arg)=>{\n if (typeof arg !== \"string\" || $7e1026ca054d0f7e$var$NO_ESCAPE_REGEXP.test(arg)) return arg;\n return `\"${arg.replace($7e1026ca054d0f7e$var$DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\nconst $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1 = (file, args)=>$7e1026ca054d0f7e$var$normalizeArgs(file, args).join(\" \");\nconst $7e1026ca054d0f7e$export$9d3099014bd914f8 = (file, args)=>$7e1026ca054d0f7e$var$normalizeArgs(file, args).map((arg)=>$7e1026ca054d0f7e$var$escapeArg(arg)).join(\" \");\nconst $7e1026ca054d0f7e$var$SPACES_REGEXP = / +/g;\nconst $7e1026ca054d0f7e$export$78bcee23e0849f6a = (command)=>{\n const tokens = [];\n for (const token of command.trim().split($7e1026ca054d0f7e$var$SPACES_REGEXP)){\n // Allow spaces to be escaped by a backslash if not meant as a delimiter\n const previousToken = tokens[tokens.length - 1];\n if (previousToken && previousToken.endsWith(\"\\\\\")) // Merge previous token with current one\n tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n else tokens.push(token);\n }\n return tokens;\n};\nconst $7e1026ca054d0f7e$var$parseExpression = (expression)=>{\n const typeOfExpression = typeof expression;\n if (typeOfExpression === \"string\") return expression;\n if (typeOfExpression === \"number\") return String(expression);\n if (typeOfExpression === \"object\" && expression !== null && !(expression instanceof (0, $d7DIX$nodechild_process.ChildProcess)) && \"stdout\" in expression) {\n const typeOfStdout = typeof expression.stdout;\n if (typeOfStdout === \"string\") return expression.stdout;\n if ((0, $d7DIX$nodebuffer.Buffer).isBuffer(expression.stdout)) return expression.stdout.toString();\n throw new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n }\n throw new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\nconst $7e1026ca054d0f7e$var$concatTokens = (tokens, nextTokens, isNew)=>isNew || tokens.length === 0 || nextTokens.length === 0 ? [\n ...tokens,\n ...nextTokens\n ] : [\n ...tokens.slice(0, -1),\n `${tokens[tokens.length - 1]}${nextTokens[0]}`,\n ...nextTokens.slice(1)\n ];\nconst $7e1026ca054d0f7e$var$parseTemplate = ({ templates: templates, expressions: expressions, tokens: tokens, index: index, template: template })=>{\n const templateString = template ?? templates.raw[index];\n const templateTokens = templateString.split($7e1026ca054d0f7e$var$SPACES_REGEXP).filter(Boolean);\n const newTokens = $7e1026ca054d0f7e$var$concatTokens(tokens, templateTokens, templateString.startsWith(\" \"));\n if (index === expressions.length) return newTokens;\n const expression = expressions[index];\n const expressionTokens = Array.isArray(expression) ? expression.map((expression)=>$7e1026ca054d0f7e$var$parseExpression(expression)) : [\n $7e1026ca054d0f7e$var$parseExpression(expression)\n ];\n return $7e1026ca054d0f7e$var$concatTokens(newTokens, expressionTokens, templateString.endsWith(\" \"));\n};\nconst $7e1026ca054d0f7e$export$4a6ee54de9b0f25d = (templates, expressions)=>{\n let tokens = [];\n for (const [index, template] of templates.entries())tokens = $7e1026ca054d0f7e$var$parseTemplate({\n templates: templates,\n expressions: expressions,\n tokens: tokens,\n index: index,\n template: template\n });\n return tokens;\n};\n\n\n\n\nconst $7f710d5fbb2d2f32$export$38bb3c1fbaa0bdcf = (0, $d7DIX$nodeutil.debuglog)(\"execa\").enabled;\nconst $7f710d5fbb2d2f32$var$padField = (field, padding)=>String(field).padStart(padding, \"0\");\nconst $7f710d5fbb2d2f32$var$getTimestamp = ()=>{\n const date = new Date();\n return `${$7f710d5fbb2d2f32$var$padField(date.getHours(), 2)}:${$7f710d5fbb2d2f32$var$padField(date.getMinutes(), 2)}:${$7f710d5fbb2d2f32$var$padField(date.getSeconds(), 2)}.${$7f710d5fbb2d2f32$var$padField(date.getMilliseconds(), 3)}`;\n};\nconst $7f710d5fbb2d2f32$export$3bb886c4c1352118 = (escapedCommand, { verbose: verbose })=>{\n if (!verbose) return;\n (0, ($parcel$interopDefault($d7DIX$nodeprocess))).stderr.write(`[${$7f710d5fbb2d2f32$var$getTimestamp()}] ${escapedCommand}\\n`);\n};\n\n\nconst $1198021bdb6b74fc$var$DEFAULT_MAX_BUFFER = 100000000;\nconst $1198021bdb6b74fc$var$getEnv = ({ env: envOption, extendEnv: extendEnv, preferLocal: preferLocal, localDir: localDir, execPath: execPath })=>{\n const env = extendEnv ? {\n ...(0, ($parcel$interopDefault($d7DIX$nodeprocess))).env,\n ...envOption\n } : envOption;\n if (preferLocal) return (0, $79a4a337e08e5260$export$340e1fbaac04248b)({\n env: env,\n cwd: localDir,\n execPath: execPath\n });\n return env;\n};\nconst $1198021bdb6b74fc$var$handleArguments = (file, args, options = {})=>{\n const parsed = (0, (/*@__PURE__*/$parcel$interopDefault($8b1434f30c2df0f5$exports)))._parse(file, args, options);\n file = parsed.command;\n args = parsed.args;\n options = parsed.options;\n options = {\n maxBuffer: $1198021bdb6b74fc$var$DEFAULT_MAX_BUFFER,\n buffer: true,\n stripFinalNewline: true,\n extendEnv: true,\n preferLocal: false,\n localDir: options.cwd || (0, ($parcel$interopDefault($d7DIX$nodeprocess))).cwd(),\n execPath: (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath,\n encoding: \"utf8\",\n reject: true,\n cleanup: true,\n all: false,\n windowsHide: true,\n verbose: (0, $7f710d5fbb2d2f32$export$38bb3c1fbaa0bdcf),\n ...options\n };\n options.env = $1198021bdb6b74fc$var$getEnv(options);\n options.stdio = (0, $e3142e39d503d843$export$a581401a57fac02e)(options);\n if ((0, ($parcel$interopDefault($d7DIX$nodeprocess))).platform === \"win32\" && (0, ($parcel$interopDefault($d7DIX$nodepath))).basename(file, \".exe\") === \"cmd\") // #116\n args.unshift(\"/q\");\n return {\n file: file,\n args: args,\n options: options,\n parsed: parsed\n };\n};\nconst $1198021bdb6b74fc$var$handleOutput = (options, value, error)=>{\n if (typeof value !== \"string\" && !(0, $d7DIX$nodebuffer.Buffer).isBuffer(value)) // When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n return error === undefined ? undefined : \"\";\n if (options.stripFinalNewline) return (0, $c36cfccc5e0479d9$export$2e2bcd8739ae039)(value);\n return value;\n};\nfunction $1198021bdb6b74fc$export$db6b1668e3758717(file, args, options) {\n const parsed = $1198021bdb6b74fc$var$handleArguments(file, args, options);\n const command = (0, $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $7e1026ca054d0f7e$export$9d3099014bd914f8)(file, args);\n (0, $7f710d5fbb2d2f32$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n (0, $ae33ff7ab47dac97$export$3186f8866f616f9f)(parsed.options);\n let spawned;\n try {\n spawned = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawn(parsed.file, parsed.args, parsed.options);\n } catch (error) {\n // Ensure the returned error is always both a promise and a child process\n const dummySpawned = new (0, ($parcel$interopDefault($d7DIX$nodechild_process))).ChildProcess();\n const errorPromise = Promise.reject((0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n }));\n (0, $7e356ac2b63932e6$export$e6eb0007fd542aba)(dummySpawned, errorPromise);\n return dummySpawned;\n }\n const spawnedPromise = (0, $7e356ac2b63932e6$export$6e3a9b5342d42997)(spawned);\n const timedPromise = (0, $ae33ff7ab47dac97$export$6bcc98999eb82896)(spawned, parsed.options, spawnedPromise);\n const processDone = (0, $ae33ff7ab47dac97$export$79fc3056c9ca4ada)(spawned, parsed.options, timedPromise);\n const context = {\n isCanceled: false\n };\n spawned.kill = (0, $ae33ff7ab47dac97$export$971fa1b57c7f00b).bind(null, spawned.kill.bind(spawned));\n spawned.cancel = (0, $ae33ff7ab47dac97$export$667e13cd9b70ca17).bind(null, spawned, context);\n const handlePromise = async ()=>{\n const [{ error: error, exitCode: exitCode, signal: signal, timedOut: timedOut }, stdoutResult, stderrResult, allResult] = await (0, $b766a69ffb9d264e$export$67b768ac9e1c70fa)(spawned, parsed.options, processDone);\n const stdout = $1198021bdb6b74fc$var$handleOutput(parsed.options, stdoutResult);\n const stderr = $1198021bdb6b74fc$var$handleOutput(parsed.options, stderrResult);\n const all = $1198021bdb6b74fc$var$handleOutput(parsed.options, allResult);\n if (error || exitCode !== 0 || signal !== null) {\n const returnedError = (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n exitCode: exitCode,\n signal: signal,\n stdout: stdout,\n stderr: stderr,\n all: all,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: timedOut,\n isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n killed: spawned.killed\n });\n if (!parsed.options.reject) return returnedError;\n throw returnedError;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n all: all,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n };\n const handlePromiseOnce = (0, $a257f7b521fbcd70$export$2e2bcd8739ae039)(handlePromise);\n (0, $b766a69ffb9d264e$export$412508d679148d5c)(spawned, parsed.options);\n spawned.all = (0, $b766a69ffb9d264e$export$41f5c0c12dadd6ae)(spawned, parsed.options);\n (0, $37b6e981f68ce4cf$export$14becf8d91886424)(spawned);\n (0, $7e356ac2b63932e6$export$e6eb0007fd542aba)(spawned, handlePromiseOnce);\n return spawned;\n}\nfunction $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, options) {\n const parsed = $1198021bdb6b74fc$var$handleArguments(file, args, options);\n const command = (0, $7e1026ca054d0f7e$export$ab3db8fe5ebf3a1)(file, args);\n const escapedCommand = (0, $7e1026ca054d0f7e$export$9d3099014bd914f8)(file, args);\n (0, $7f710d5fbb2d2f32$export$3bb886c4c1352118)(escapedCommand, parsed.options);\n const input = (0, $b766a69ffb9d264e$export$7f2f9b6457412b41)(parsed.options);\n let result;\n try {\n result = (0, ($parcel$interopDefault($d7DIX$nodechild_process))).spawnSync(parsed.file, parsed.args, {\n ...parsed.options,\n input: input\n });\n } catch (error) {\n throw (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n error: error,\n stdout: \"\",\n stderr: \"\",\n all: \"\",\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: false,\n isCanceled: false,\n killed: false\n });\n }\n const stdout = $1198021bdb6b74fc$var$handleOutput(parsed.options, result.stdout, result.error);\n const stderr = $1198021bdb6b74fc$var$handleOutput(parsed.options, result.stderr, result.error);\n if (result.error || result.status !== 0 || result.signal !== null) {\n const error = (0, $66be15f27277e552$export$5a4bb2b1c89bdce7)({\n stdout: stdout,\n stderr: stderr,\n error: result.error,\n signal: result.signal,\n exitCode: result.status,\n command: command,\n escapedCommand: escapedCommand,\n parsed: parsed,\n timedOut: result.error && result.error.code === \"ETIMEDOUT\",\n isCanceled: false,\n killed: result.signal !== null\n });\n if (!parsed.options.reject) return error;\n throw error;\n }\n return {\n command: command,\n escapedCommand: escapedCommand,\n exitCode: 0,\n stdout: stdout,\n stderr: stderr,\n failed: false,\n timedOut: false,\n isCanceled: false,\n killed: false\n };\n}\nconst $1198021bdb6b74fc$var$normalizeScriptStdin = ({ input: input, inputFile: inputFile, stdio: stdio })=>input === undefined && inputFile === undefined && stdio === undefined ? {\n stdin: \"inherit\"\n } : {};\nconst $1198021bdb6b74fc$var$normalizeScriptOptions = (options = {})=>({\n preferLocal: true,\n ...$1198021bdb6b74fc$var$normalizeScriptStdin(options),\n ...options\n });\nfunction $1198021bdb6b74fc$var$create$(options) {\n function $(templatesOrOptions, ...expressions) {\n if (!Array.isArray(templatesOrOptions)) return $1198021bdb6b74fc$var$create$({\n ...options,\n ...templatesOrOptions\n });\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$4a6ee54de9b0f25d)(templatesOrOptions, expressions);\n return $1198021bdb6b74fc$export$db6b1668e3758717(file, args, $1198021bdb6b74fc$var$normalizeScriptOptions(options));\n }\n $.sync = (templates, ...expressions)=>{\n if (!Array.isArray(templates)) throw new TypeError(\"Please use $(options).sync`command` instead of $.sync(options)`command`.\");\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$4a6ee54de9b0f25d)(templates, expressions);\n return $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, $1198021bdb6b74fc$var$normalizeScriptOptions(options));\n };\n return $;\n}\nconst $1198021bdb6b74fc$export$3d8c2f653ac9d0b9 = $1198021bdb6b74fc$var$create$();\nfunction $1198021bdb6b74fc$export$eb9ed1222071f2f6(command, options) {\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$78bcee23e0849f6a)(command);\n return $1198021bdb6b74fc$export$db6b1668e3758717(file, args, options);\n}\nfunction $1198021bdb6b74fc$export$5c60dbe76a54db4(command, options) {\n const [file, ...args] = (0, $7e1026ca054d0f7e$export$78bcee23e0849f6a)(command);\n return $1198021bdb6b74fc$export$28823a701bb5a12d(file, args, options);\n}\nfunction $1198021bdb6b74fc$export$c004ac68fdb98119(scriptPath, args, options = {}) {\n if (args && !Array.isArray(args) && typeof args === \"object\") {\n options = args;\n args = [];\n }\n const stdio = (0, $e3142e39d503d843$export$889423b478ae2ba)(options);\n const defaultExecArgv = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execArgv.filter((arg)=>!arg.startsWith(\"--inspect\"));\n const { nodePath: nodePath = (0, ($parcel$interopDefault($d7DIX$nodeprocess))).execPath, nodeOptions: nodeOptions = defaultExecArgv } = options;\n return $1198021bdb6b74fc$export$db6b1668e3758717(nodePath, [\n ...nodeOptions,\n scriptPath,\n ...Array.isArray(args) ? args : []\n ], {\n ...options,\n stdin: undefined,\n stdout: undefined,\n stderr: undefined,\n stdio: stdio,\n shell: false\n });\n}\n\n\n\n/** The cached powershell path */ let $beaad862f625dcb6$var$powershell;\nfunction $beaad862f625dcb6$export$43324456a02f71b0(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $1198021bdb6b74fc$export$db6b1668e3758717($beaad862f625dcb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $beaad862f625dcb6$export$395ec453f890f6a3(command, startupFlags = [\n \"-NoProfile\",\n \"-NoLogo\",\n \"-NonInteractive\"\n], execOptions = {\n stdio: \"inherit\"\n}) {\n return $1198021bdb6b74fc$export$28823a701bb5a12d($beaad862f625dcb6$export$4dfdd3964d242d20(), [\n ...startupFlags,\n \"-c\",\n command\n ], execOptions);\n}\nfunction $beaad862f625dcb6$export$4dfdd3964d242d20() {\n if ($beaad862f625dcb6$var$powershell === undefined) {\n const maybePwsh = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"pwsh\", {\n nothrow: true\n });\n if (maybePwsh !== null) $beaad862f625dcb6$var$powershell = maybePwsh;\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"powershell\", {\n nothrow: true\n });\n if (maybePowerShell !== null) $beaad862f625dcb6$var$powershell = maybePowerShell;\n }\n if ($beaad862f625dcb6$var$powershell === undefined) throw new Error(\"Could not find powershell\");\n return $beaad862f625dcb6$var$powershell;\n}\n\n\n\nvar $4oHc1 = parcelRequire(\"4oHc1\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nconst $85fd7153285bfba5$var$defaultAddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false\n};\nasync function $85fd7153285bfba5$export$f63d3080ce25e0fd(name, valGiven, givenOptions = $85fd7153285bfba5$var$defaultAddEnvOptions) {\n const options = {\n ...$85fd7153285bfba5$var$defaultAddEnvOptions,\n ...givenOptions\n };\n const val = $85fd7153285bfba5$var$escapeString(valGiven ?? \"\", options.shouldEscapeSpace);\n try {\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $4t50X.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n (0, $4t50X.exportVariable)(name, val);\n } catch (err) {\n (0, $ER74K.error)(err);\n await $85fd7153285bfba5$var$addEnvSystem(name, val, options);\n }\n else await $85fd7153285bfba5$var$addEnvSystem(name, val, options);\n } catch (err) {\n (0, $ER74K.error)(err);\n (0, $4t50X.setFailed)(`Failed to export environment variable ${name}=${val}. You should add it manually.`);\n }\n}\nfunction $85fd7153285bfba5$var$escapeString(valGiven, shouldEscapeSpace = false) {\n const spaceEscaped = shouldEscapeSpace ? (0, (/*@__PURE__*/$parcel$interopDefault($2adb2deed09dfe8c$exports)))(valGiven) : valGiven;\n return (0, (/*@__PURE__*/$parcel$interopDefault($6fbce53baf96bc95$exports)))(spaceEscaped, '\"', \"\\\\\");\n}\nconst $85fd7153285bfba5$var$ignoredPaths = [\n /\\/usr\\/bin\\/?/,\n /\\/usr\\/local\\/bin\\/?/\n];\n/** Skip adding /usr/bin to PATH if it is already there */ function $85fd7153285bfba5$var$isIgnoredPath(path) {\n if ($85fd7153285bfba5$var$ignoredPaths.some((checkedPath)=>checkedPath.test(path))) {\n const paths = process.env.PATH?.split((0, $d7DIX$path.delimiter)) ?? [];\n return paths.includes(path);\n }\n return false;\n}\nasync function $85fd7153285bfba5$export$4c25481b843feb0b(path) {\n if ($85fd7153285bfba5$var$isIgnoredPath(path)) return;\n process.env.PATH = `${path}${0, $d7DIX$path.delimiter}${process.env.PATH}`;\n try {\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n (0, $4t50X.addPath)(path);\n } catch (err) {\n (0, $ER74K.error)(err);\n await $85fd7153285bfba5$var$addPathSystem(path);\n }\n else await $85fd7153285bfba5$var$addPathSystem(path);\n } catch (err) {\n (0, $ER74K.error)(err);\n (0, $4t50X.setFailed)(`Failed to add ${path} to the percistent PATH. You should add it manually.`);\n }\n}\nconst $85fd7153285bfba5$export$1bbbc3a810c5799d = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.cpprc\");\nasync function $85fd7153285bfba5$var$addEnvSystem(name, valGiven, options) {\n const val = valGiven ?? \"\";\n switch(process.platform){\n case \"win32\":\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n (0, $4t50X.info)(`Environment variable ${name} is already defined. Skipping.`);\n return;\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await (0, $beaad862f625dcb6$export$43324456a02f71b0)(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`);\n (0, $4t50X.info)(`${name}='${val}' was set in the environment.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $85fd7153285bfba5$export$7536cc7938378f6c();\n if (options.shouldAddOnlyIfNotDefined) {\n await (0, $4oHc1.appendFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`);\n (0, $4t50X.info)(`if not defined ${name} then ${name}=\"${val}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n } else {\n await (0, $4oHc1.appendFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nexport ${name}=\"${val}\"\\n`);\n (0, $4t50X.info)(`${name}=\"${val}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n }\n return;\n default:\n }\n process.env[name] = val;\n}\nasync function $85fd7153285bfba5$var$addPathSystem(path) {\n switch(process.platform){\n case \"win32\":\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await (0, $beaad862f625dcb6$export$43324456a02f71b0)(`$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`);\n (0, $4t50X.info)(`\"${path}\" was added to the PATH.`);\n return;\n case \"linux\":\n case \"darwin\":\n await $85fd7153285bfba5$export$7536cc7938378f6c();\n await (0, $4oHc1.appendFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\nexport PATH=\"${path}:$PATH\"\\n`);\n (0, $4t50X.info)(`\"${path}\" was added to \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\"`);\n return;\n default:\n return;\n }\n}\n/* eslint-disable require-atomic-updates */ let $85fd7153285bfba5$var$setupCppInProfile_called = false;\nasync function $85fd7153285bfba5$export$7536cc7938378f6c() {\n if ($85fd7153285bfba5$var$setupCppInProfile_called) return;\n const source_cpprc_string = `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\" ]]; then source \"${$85fd7153285bfba5$export$1bbbc3a810c5799d}\"; fi\\n`;\n try {\n await Promise.all([\n $85fd7153285bfba5$var$addCpprcHeader(),\n $85fd7153285bfba5$var$sourceCpprcInProfile(source_cpprc_string),\n $85fd7153285bfba5$var$sourceCpprcInBashrc(source_cpprc_string)\n ]);\n } catch (err) {\n (0, $ER74K.warning)(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`);\n }\n $85fd7153285bfba5$var$setupCppInProfile_called = true;\n}\nasync function $85fd7153285bfba5$var$addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\";\n if (await (0, $kY0n1.pathExists)($85fd7153285bfba5$export$1bbbc3a810c5799d)) {\n const cpprc_content = await (0, $4oHc1.readFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, \"utf8\");\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await (0, $4oHc1.appendFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, `\\n${cpprc_header}\\n`);\n (0, $4t50X.info)(`Added ${cpprc_header} to ${$85fd7153285bfba5$export$1bbbc3a810c5799d}`);\n }\n }\n}\nasync function $85fd7153285bfba5$var$sourceCpprcInBashrc(source_cpprc_string) {\n const bashrc_path = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.bashrc\");\n if (await (0, $kY0n1.pathExists)(bashrc_path)) {\n const bashrcContent = await (0, $4oHc1.readFile)(bashrc_path, \"utf-8\");\n if (!bashrcContent.includes(source_cpprc_string)) {\n await (0, $4oHc1.appendFile)(bashrc_path, source_cpprc_string);\n (0, $4t50X.info)(`${source_cpprc_string} was added to ${bashrc_path}`);\n }\n }\n}\nasync function $85fd7153285bfba5$var$sourceCpprcInProfile(source_cpprc_string) {\n const profile_path = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.profile\");\n if (await (0, $kY0n1.pathExists)(profile_path)) {\n const profileContent = await (0, $4oHc1.readFile)(profile_path, \"utf-8\");\n if (!profileContent.includes(source_cpprc_string)) {\n await (0, $4oHc1.appendFile)(profile_path, source_cpprc_string);\n (0, $4t50X.info)(`${source_cpprc_string} was added to ${profile_path}`);\n }\n }\n}\nasync function $85fd7153285bfba5$export$ca46151966bee7ba() {\n if (await (0, $kY0n1.pathExists)($85fd7153285bfba5$export$1bbbc3a810c5799d)) {\n const entries = (await (0, $4oHc1.readFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, \"utf-8\")).split(\"\\n\");\n const unique_entries = [\n ...new Set(entries.reverse())\n ].reverse() // remove duplicates, keeping the latest entry\n ;\n await (0, $4oHc1.writeFile)($85fd7153285bfba5$export$1bbbc3a810c5799d, unique_entries.join(\"\\n\"));\n await (0, $8c9709291dc275bc$export$4718e061a205eab)($85fd7153285bfba5$export$1bbbc3a810c5799d);\n }\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $iNGpn = parcelRequire(\"iNGpn\");\n\n\nconst { appendFile: $f0410b58de32386f$var$appendFile } = (0, $d7DIX$fs.promises);\n/* eslint-disable require-atomic-updates */ let $f0410b58de32386f$var$didUpdate = false;\nlet $f0410b58de32386f$var$didInit = false;\nconst $f0410b58de32386f$var$retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\"\n];\nasync function $f0410b58de32386f$export$d73dc343f5abf26(packages, update = false) {\n const apt = $f0410b58de32386f$var$getApt();\n for (const { name: name, version: version } of packages)(0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via ${apt}`);\n process.env.DEBIAN_FRONTEND = \"noninteractive\";\n if (!$f0410b58de32386f$var$didUpdate || update) {\n $f0410b58de32386f$var$updateRepos(apt);\n $f0410b58de32386f$var$didUpdate = true;\n }\n if (!$f0410b58de32386f$var$didInit) {\n await $f0410b58de32386f$var$initApt(apt);\n $f0410b58de32386f$var$didInit = true;\n }\n const allRepositories = [\n ...new Set(packages.flatMap((pack)=>pack.repositories ?? []))\n ];\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories)// eslint-disable-next-line no-await-in-loop\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"add-apt-repository\", [\n \"-y\",\n repo\n ]);\n $f0410b58de32386f$var$updateRepos(apt);\n }\n const aptArgs = await Promise.all(packages.map((pack)=>$f0410b58de32386f$var$getAptArg(pack.name, pack.version)));\n try {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n } catch (err) {\n if (\"stderr\" in err) {\n const stderr = err.stderr;\n if ($f0410b58de32386f$var$retryErrors.some((error)=>stderr.includes(error))) {\n (0, $ER74K.warning)(`Failed to install packages ${aptArgs}. Retrying...`);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n ...aptArgs\n ]);\n }\n } else throw err;\n }\n return {\n binDir: \"/usr/bin/\"\n };\n}\nvar $f0410b58de32386f$export$e6e2160a140a491e;\n(function(AptPackageType) {\n AptPackageType[AptPackageType[\"NameDashVersion\"] = 0] = \"NameDashVersion\";\n AptPackageType[AptPackageType[\"NameEqualsVersion\"] = 1] = \"NameEqualsVersion\";\n AptPackageType[AptPackageType[\"Name\"] = 2] = \"Name\";\n AptPackageType[AptPackageType[\"None\"] = 3] = \"None\";\n})($f0410b58de32386f$export$e6e2160a140a491e || ($f0410b58de32386f$export$e6e2160a140a491e = {}));\nasync function $f0410b58de32386f$export$41cba414fa0bee03(name, version) {\n if (version !== undefined && version !== \"\") {\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${(0, $iNGpn.default)(name)}-${(0, $iNGpn.default)(version)}$`\n ]);\n if (stdout.trim() !== \"\") return 0;\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n `${name}=${version}`\n ]);\n if (stdout.trim() === \"\") return 1;\n } catch {\n // ignore\n }\n }\n try {\n const { stdout: showStdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"apt-cache\", [\n \"show\",\n name\n ]);\n if (showStdout.trim() !== \"\") return 2;\n } catch {\n // ignore\n }\n return 3;\n}\nasync function $f0410b58de32386f$var$getAptArg(name, version) {\n const package_type = await $f0410b58de32386f$export$41cba414fa0bee03(name, version);\n switch(package_type){\n case 0:\n return `${name}-${version}`;\n case 1:\n return `${name}=${version}`;\n case 2:\n return name;\n case 3:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`);\n }\n}\nfunction $f0410b58de32386f$export$89548d91e84ae1a1() {\n return (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"nala\", {\n nothrow: true\n }) !== null;\n}\nfunction $f0410b58de32386f$var$getApt() {\n let apt;\n if ($f0410b58de32386f$export$89548d91e84ae1a1()) apt = \"nala\";\n else apt = \"apt-get\";\n return apt;\n}\nfunction $f0410b58de32386f$var$updateRepos(apt) {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, apt !== \"nala\" ? [\n \"update\",\n \"-y\"\n ] : [\n \"update\"\n ]);\n}\n/** Install apt utils and certificates (usually missing from docker containers) */ async function $f0410b58de32386f$var$initApt(apt) {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\"\n ]);\n const promises = [\n $f0410b58de32386f$export$11aa10c05ada0934([\n \"3B4FE6ACC0B21F32\",\n \"40976EAF437D05B5\"\n ], \"setup-cpp-ubuntu-archive.gpg\"),\n $f0410b58de32386f$export$11aa10c05ada0934([\n \"1E9377A2BA9EF27F\"\n ], \"launchpad-toolchain.gpg\")\n ];\n if (apt === \"nala\") // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LANG\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LC_ALL\", \"C.UTF-8\", {\n shouldAddOnlyIfNotDefined: true\n }));\n await Promise.all(promises);\n}\nfunction $f0410b58de32386f$var$initGpg() {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"gpg\", [\n \"-k\"\n ]);\n}\nasync function $f0410b58de32386f$export$11aa10c05ada0934(keys, name, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $kY0n1.pathExists)(fileName)) {\n $f0410b58de32386f$var$initGpg();\n await Promise.all(keys.map(async (key)=>{\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key\n ]);\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }));\n }\n return fileName;\n } catch (err) {\n (0, $ER74K.warning)(`Failed to add apt key via server ${server}: ${err}`);\n return undefined;\n }\n}\nasync function $f0410b58de32386f$export$7fb1a688af1305f0(name, url) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`;\n if (!await (0, $kY0n1.pathExists)(fileName)) {\n $f0410b58de32386f$var$initGpg();\n await $f0410b58de32386f$export$d73dc343f5abf26([\n {\n name: \"curl\"\n },\n {\n name: \"ca-certificates\"\n }\n ], undefined);\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"curl\", [\n \"-s\",\n url,\n \"-o\",\n `/tmp/${name}`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--import\",\n `/tmp/${name}`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"chmod\", [\n \"644\",\n fileName\n ]);\n }\n return fileName;\n}\nasync function $f0410b58de32386f$export$6fe6436bd9f53d02(name, path, priority = 40) {\n if (0, $52cQ1.GITHUB_ACTIONS) return (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"update-alternatives\", [\n \"--install\",\n `/usr/bin/${name}`,\n name,\n path,\n priority.toString()\n ]);\n else {\n await (0, $85fd7153285bfba5$export$7536cc7938378f6c)();\n return $f0410b58de32386f$var$appendFile((0, $85fd7153285bfba5$export$1bbbc3a810c5799d), `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`);\n }\n}\nasync function $f0410b58de32386f$export$ec2e4deaa1231ecf(regexp) {\n try {\n // check if a package matching the regexp is installed\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dpkg\", [\n \"-l\",\n regexp\n ]);\n if (typeof stdout !== \"string\") return false;\n const lines = stdout.split(\"\\n\");\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line)=>line.startsWith(\"ii\"));\n } catch {\n return false;\n }\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $4t50X = parcelRequire(\"4t50X\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nvar $hZdK0 = parcelRequire(\"hZdK0\");\n\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/* eslint-disable require-atomic-updates */ let $b05e6e28215ee948$var$binDir;\nasync function $b05e6e28215ee948$export$c5eeb9c87a610a0e(_version, _setupDir, _arch) {\n if (![\n \"darwin\",\n \"linux\"\n ].includes(process.platform)) return undefined;\n if (typeof $b05e6e28215ee948$var$binDir === \"string\") return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"brew\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $b05e6e28215ee948$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n }\n // brew is not thread-safe\n const brewTempDirectory = (0, ($parcel$interopDefault($d7DIX$path))).join((0, $d7DIX$os.tmpdir)(), \"setup-cpp\", \"brew\");\n await (0, $hZdK0.mkdirP)(brewTempDirectory);\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"curl\", [\n \"-LJO\",\n \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"\n ], {\n cwd: brewTempDirectory\n });\n const installSh = (0, $d7DIX$path.join)(brewTempDirectory, \"install.sh\");\n if (process.platform === \"linux\") {\n const installShContent = (0, $d7DIX$fs.readFileSync)(installSh, \"utf-8\");\n installShContent.replace(\"#!/bin/bash\", \"\");\n }\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"/bin/bash\", [\n installSh\n ], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\"\n }\n });\n $b05e6e28215ee948$var$binDir = $b05e6e28215ee948$export$cba19b0564b654bf();\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)($b05e6e28215ee948$var$binDir);\n return {\n binDir: $b05e6e28215ee948$var$binDir\n };\n}\nfunction $b05e6e28215ee948$export$cba19b0564b654bf() {\n if (process.platform === \"linux\") return \"/home/linuxbrew/.linuxbrew/bin/\";\n else return \"/usr/local/bin/\";\n}\n\n\nlet $10ddbd636565d4da$var$hasBrew = false;\nasync function $10ddbd636565d4da$export$ce5d13d8a85cb784(name, version, extraArgs = []) {\n (0, $4t50X.info)(`Installing ${name} ${version ?? \"\"} via brew`);\n if (!$10ddbd636565d4da$var$hasBrew || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"brew\", {\n nothrow: true\n }) === null) {\n await (0, $b05e6e28215ee948$export$c5eeb9c87a610a0e)(\"\", \"\", process.arch);\n $10ddbd636565d4da$var$hasBrew = true;\n }\n const binDir = (0, $b05e6e28215ee948$export$cba19b0564b654bf)();\n // brew is not thread-safe\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)((0, $bzNgi.join)(binDir, \"brew\"), [\n \"install\",\n version !== undefined && version !== \"\" ? `${name}@${version}` : name,\n ...extraArgs\n ], {\n stdio: \"inherit\"\n });\n return {\n binDir: binDir\n };\n}\n\n\n/* eslint-disable require-atomic-updates */ \nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n/* eslint-disable require-atomic-updates */ \n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nlet $5540d46c90af649b$var$binDir;\nasync function $5540d46c90af649b$export$b804d731cdad7ef9(// eslint-disable-next-line @typescript-eslint/no-unused-vars\n_version, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_setupDir, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n if (process.platform !== \"win32\") return undefined;\n if (typeof $5540d46c90af649b$var$binDir === \"string\") return {\n binDir: $5540d46c90af649b$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $5540d46c90af649b$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $5540d46c90af649b$var$binDir\n };\n }\n let powershell = \"powershell.exe\";\n const maybePowerShell = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true\n });\n if (maybePowerShell !== null) powershell = maybePowerShell;\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(powershell, [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\"\n ], {\n stdio: \"inherit\"\n });\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`;\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(chocoPath);\n const maybeChoco = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n });\n if (maybeChoco !== null) $5540d46c90af649b$var$binDir = (0, $bzNgi.dirname)(maybeChoco);\n else $5540d46c90af649b$var$binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (await (0, $kY0n1.pathExists)($5540d46c90af649b$var$binDir)) return {\n binDir: $5540d46c90af649b$var$binDir\n };\n return undefined;\n}\n\n\n\nlet $ca3ee4fd324ae5e9$var$hasChoco = false;\nasync function $ca3ee4fd324ae5e9$export$9f6912bc890040b2(name, version, args = []) {\n (0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via chocolatey`);\n if (!$ca3ee4fd324ae5e9$var$hasChoco || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"choco\", {\n nothrow: true\n }) === null) {\n await (0, $5540d46c90af649b$export$b804d731cdad7ef9)(\"\", \"\", process.arch);\n $ca3ee4fd324ae5e9$var$hasChoco = true;\n }\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH;\n const env = {\n ...process.env\n };\n delete env.TMP;\n delete env.TEMP;\n delete env.Path;\n env.PATH = PATH;\n if (version !== undefined && version !== \"\") (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n `--version=${version}`,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n else try {\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"choco\", [\n \"install\",\n \"-y\",\n name,\n ...args\n ], {\n env: env,\n extendEnv: false,\n stdio: \"inherit\"\n });\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if (err.message.includes(\"exit code 3010\")) (0, $ER74K.info)(`${name} might require a reboot for the completion of the installation.`);\n else throw err;\n }\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nasync function $7e2451edad050552$export$49d4f9ba8e0dd34f(packages) {\n for (const { name: name, version: version } of packages)(0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via dnf`);\n const dnfArgs = await Promise.all(packages.map((pack)=>$7e2451edad050552$var$getDnfArg(pack.name, pack.version)));\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dnf\", [\n \"-y\",\n \"install\",\n ...dnfArgs\n ]);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nasync function $7e2451edad050552$var$getDnfArg(name, version) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}-${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}-${version}`;\n else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"dnf\", [\n \"search\",\n \"-q\",\n `${name}${version}`\n ]);\n if (stdout.trim() !== \"\") return `${name}${version}`;\n (0, $ER74K.warning)(`Failed to install ${name} ${version} via dnf, trying without version`);\n }\n }\n return name;\n}\n\n\nasync function $8550ac0edfced131$export$a66bc93580b0a849(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n // install bazelisk because it contains both\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"bazelisk\", version);\n case \"darwin\":\n // install bazelisk because it contains both\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"bazelisk\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) throw new Error(\"installing bazel on Arch linux is not supported yet\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n // https://bazel.build/install/redhat\n await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"dnf-plugins-core\"\n }\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dnf\", [\n \"copr\",\n \"enable\",\n \"vbatts/bazel\"\n ]);\n return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"bazel4\"\n }\n ]);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await (0, $f0410b58de32386f$export$7fb1a688af1305f0)(\"bazel-archive-keyring.gpg\", \"https://bazel.build/bazel-release.pub.gpg\");\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`\n ]);\n return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"bazel\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n/* eslint-disable require-atomic-updates */ let $6f126e8fe01fa080$var$didUpdate = false;\nlet $6f126e8fe01fa080$var$didInit = false;\nasync function $6f126e8fe01fa080$export$cfa75578ee2d6e6c(name, version, aur) {\n (0, $ER74K.info)(`Installing ${name} ${version ?? \"\"} via pacman`);\n const pacman = \"pacman\";\n if (aur === \"yay\" && (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"yay\", {\n nothrow: true\n }) === null) // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`);\n // yay can't run as root, so skip update\n if (!$6f126e8fe01fa080$var$didUpdate && aur !== \"yay\") {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(pacman, [\n \"-Sy\",\n \"--noconfirm\"\n ]);\n $6f126e8fe01fa080$var$didUpdate = true;\n }\n // install base-devel\n if (!$6f126e8fe01fa080$var$didInit && aur !== \"yay\") {\n (0, $4467f131fc22cbb2$export$58f152936f209932)(pacman, [\n \"-S\",\n \"--noconfirm\",\n \"base-devel\"\n ]);\n $6f126e8fe01fa080$var$didInit = true;\n }\n const runInstall = (arg)=>{\n if (aur === \"yay\") // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return (0, $54908482e02f4b6d$export$28823a701bb5a12d)(aur, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n return (0, $4467f131fc22cbb2$export$58f152936f209932)(aur ?? pacman, [\n \"-S\",\n \"--noconfirm\",\n arg\n ]);\n };\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await $6f126e8fe01fa080$var$availablePacmanVersions(pacman, name);\n if (availableVersions.includes(version)) // try different version formats\n try {\n runInstall(`${name}=${version}`);\n } catch {\n runInstall(`${name}${version}`);\n }\n else {\n // try without version\n (0, $ER74K.info)(`Failed to install ${name} ${version} via pacman, trying without version`);\n runInstall(name);\n }\n } else // version not specified, install latest\n runInstall(name);\n return {\n binDir: \"/usr/bin/\"\n };\n}\nconst $6f126e8fe01fa080$var$pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g;\n/** Query pacman for available versions */ async function $6f126e8fe01fa080$var$availablePacmanVersions(pacman, name) {\n const availableVersions = [];\n try {\n const { stdout: stdout } = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(pacman, [\n \"-Si\",\n name\n ]);\n for (const match of stdout.matchAll($6f126e8fe01fa080$var$pacmanSiVersionRegex))availableVersions.push(match[1]);\n } catch (err) {\n (0, $ER74K.warning)(`Failed to get available versions for ${name}: ${err}`);\n }\n return availableVersions;\n}\n\n\nfunction $37a450505a669dce$export$111263621bbb0768(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"ccache\", version);\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"ccache\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"ccache\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nvar $0106ac245720b572$exports = {};\n\nvar $0106ac245720b572$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $0106ac245720b572$var$__createBinding = $0106ac245720b572$exports && $0106ac245720b572$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $0106ac245720b572$var$__setModuleDefault = $0106ac245720b572$exports && $0106ac245720b572$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $0106ac245720b572$var$__importStar = $0106ac245720b572$exports && $0106ac245720b572$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $0106ac245720b572$var$__createBinding(result, mod, k);\n }\n $0106ac245720b572$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $0106ac245720b572$var$__awaiter = $0106ac245720b572$exports && $0106ac245720b572$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar $0106ac245720b572$var$__importDefault = $0106ac245720b572$exports && $0106ac245720b572$exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty($0106ac245720b572$exports, \"__esModule\", {\n value: true\n});\n$0106ac245720b572$exports.evaluateVersions = $0106ac245720b572$exports.isExplicitVersion = $0106ac245720b572$exports.findFromManifest = $0106ac245720b572$exports.getManifestFromRepo = $0106ac245720b572$exports.findAllVersions = $0106ac245720b572$exports.find = $0106ac245720b572$exports.cacheFile = $0106ac245720b572$exports.cacheDir = $0106ac245720b572$exports.extractZip = $0106ac245720b572$exports.extractXar = $0106ac245720b572$exports.extractTar = $0106ac245720b572$exports.extract7z = $0106ac245720b572$exports.downloadTool = $0106ac245720b572$exports.HTTPError = void 0;\n\nconst $0106ac245720b572$var$core = $0106ac245720b572$var$__importStar((parcelRequire(\"4t50X\")));\n\nconst $0106ac245720b572$var$io = $0106ac245720b572$var$__importStar((parcelRequire(\"hZdK0\")));\n\nconst $0106ac245720b572$var$fs = $0106ac245720b572$var$__importStar($d7DIX$fs);\n\nconst $0106ac245720b572$var$mm = $0106ac245720b572$var$__importStar((parcelRequire(\"42L4Y\")));\n\nconst $0106ac245720b572$var$os = $0106ac245720b572$var$__importStar($d7DIX$os);\n\nconst $0106ac245720b572$var$path = $0106ac245720b572$var$__importStar($d7DIX$path);\n\nconst $0106ac245720b572$var$httpm = $0106ac245720b572$var$__importStar((parcelRequire(\"a7JAS\")));\n\nconst $0106ac245720b572$var$semver = $0106ac245720b572$var$__importStar((parcelRequire(\"lroIv\")));\n\nconst $0106ac245720b572$var$stream = $0106ac245720b572$var$__importStar($d7DIX$stream);\n\nconst $0106ac245720b572$var$util = $0106ac245720b572$var$__importStar($d7DIX$util);\n\n\nconst $0106ac245720b572$var$v4_1 = $0106ac245720b572$var$__importDefault((parcelRequire(\"eAF86\")));\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\nvar $6dd61cb0b432635a$exports = {};\n\"use strict\";\nvar $6dd61cb0b432635a$var$__createBinding = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__createBinding || (Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function() {\n return m[k];\n }\n });\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar $6dd61cb0b432635a$var$__setModuleDefault = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__setModuleDefault || (Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n});\nvar $6dd61cb0b432635a$var$__importStar = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__importStar || function(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.hasOwnProperty.call(mod, k)) $6dd61cb0b432635a$var$__createBinding(result, mod, k);\n }\n $6dd61cb0b432635a$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $6dd61cb0b432635a$var$__awaiter = $6dd61cb0b432635a$exports && $6dd61cb0b432635a$exports.__awaiter || function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty($6dd61cb0b432635a$exports, \"__esModule\", {\n value: true\n});\n$6dd61cb0b432635a$exports.RetryHelper = void 0;\n\nconst $6dd61cb0b432635a$var$core = $6dd61cb0b432635a$var$__importStar((parcelRequire(\"4t50X\")));\n/**\n * Internal class for retries\n */ class $6dd61cb0b432635a$var$RetryHelper {\n constructor(maxAttempts, minSeconds, maxSeconds){\n if (maxAttempts < 1) throw new Error(\"max attempts should be greater than or equal to 1\");\n this.maxAttempts = maxAttempts;\n this.minSeconds = Math.floor(minSeconds);\n this.maxSeconds = Math.floor(maxSeconds);\n if (this.minSeconds > this.maxSeconds) throw new Error(\"min seconds should be less than or equal to max seconds\");\n }\n execute(action, isRetryable) {\n return $6dd61cb0b432635a$var$__awaiter(this, void 0, void 0, function*() {\n let attempt = 1;\n while(attempt < this.maxAttempts){\n // Try\n try {\n return yield action();\n } catch (err) {\n if (isRetryable && !isRetryable(err)) throw err;\n $6dd61cb0b432635a$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $6dd61cb0b432635a$var$core.info(`Waiting ${seconds} seconds before trying again`);\n yield this.sleep(seconds);\n attempt++;\n }\n // Last attempt\n return yield action();\n });\n }\n getSleepAmount() {\n return Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + this.minSeconds;\n }\n sleep(seconds) {\n return $6dd61cb0b432635a$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\n$6dd61cb0b432635a$exports.RetryHelper = $6dd61cb0b432635a$var$RetryHelper;\n\n\nclass $0106ac245720b572$var$HTTPError extends Error {\n constructor(httpStatusCode){\n super(`Unexpected HTTP response: ${httpStatusCode}`);\n this.httpStatusCode = httpStatusCode;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n$0106ac245720b572$exports.HTTPError = $0106ac245720b572$var$HTTPError;\nconst $0106ac245720b572$var$IS_WINDOWS = process.platform === \"win32\";\nconst $0106ac245720b572$var$IS_MAC = process.platform === \"darwin\";\nconst $0106ac245720b572$var$userAgent = \"actions/tool-cache\";\n/**\n * Download a tool from an url and stream it into a file\n *\n * @param url url of tool to download\n * @param dest path to download tool\n * @param auth authorization header\n * @param headers other headers\n * @returns path to downloaded tool\n */ function $0106ac245720b572$var$downloadTool(url, dest, auth, headers) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $0106ac245720b572$var$path.join($0106ac245720b572$var$_getTempDirectory(), $0106ac245720b572$var$v4_1.default());\n yield $0106ac245720b572$var$io.mkdirP($0106ac245720b572$var$path.dirname(dest));\n $0106ac245720b572$var$core.debug(`Downloading ${url}`);\n $0106ac245720b572$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $6dd61cb0b432635a$exports.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n return yield $0106ac245720b572$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $0106ac245720b572$var$HTTPError && err.httpStatusCode) {\n // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests\n if (err.httpStatusCode < 500 && err.httpStatusCode !== 408 && err.httpStatusCode !== 429) return false;\n }\n // Otherwise retry\n return true;\n });\n });\n}\n$0106ac245720b572$exports.downloadTool = $0106ac245720b572$var$downloadTool;\nfunction $0106ac245720b572$var$downloadToolAttempt(url, dest, auth, headers) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if ($0106ac245720b572$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $0106ac245720b572$var$httpm.HttpClient($0106ac245720b572$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $0106ac245720b572$var$core.debug(\"set auth\");\n if (headers === undefined) headers = {};\n headers.authorization = auth;\n }\n const response = yield http.get(url, headers);\n if (response.message.statusCode !== 200) {\n const err = new $0106ac245720b572$var$HTTPError(response.message.statusCode);\n $0106ac245720b572$var$core.debug(`Failed to download from \"${url}\". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);\n throw err;\n }\n // Download the response body\n const pipeline = $0106ac245720b572$var$util.promisify($0106ac245720b572$var$stream.pipeline);\n const responseMessageFactory = $0106ac245720b572$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $0106ac245720b572$var$fs.createWriteStream(dest));\n $0106ac245720b572$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $0106ac245720b572$var$core.debug(\"download failed\");\n try {\n yield $0106ac245720b572$var$io.rmRF(dest);\n } catch (err) {\n $0106ac245720b572$var$core.debug(`Failed to delete '${dest}'. ${err.message}`);\n }\n }\n }\n });\n}\n/**\n * Extract a .7z file\n *\n * @param file path to the .7z file\n * @param dest destination directory. Optional.\n * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this\n * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will\n * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is\n * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line\n * interface, it is smaller than the full command line interface, and it does support long paths. At the\n * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.\n * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path\n * to 7zr.exe can be pass to this function.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extract7z(file, dest, _7zPath) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok($0106ac245720b572$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $d7DIX$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $0106ac245720b572$var$core.isDebug() ? \"-bb1\" : \"-bb0\";\n const args = [\n \"x\",\n logLevel,\n \"-bd\",\n \"-sccUTF-8\",\n file\n ];\n const options = {\n silent: true\n };\n yield $1f6JF.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $0106ac245720b572$var$path.join($0106ac245720b572$var$$parcel$__dirname, \"..\", \"scripts\", \"Invoke-7zdec.ps1\").replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const escapedTarget = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n command\n ];\n const options = {\n silent: true\n };\n try {\n const powershellPath = yield $0106ac245720b572$var$io.which(\"powershell\", true);\n yield $1f6JF.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\n$0106ac245720b572$exports.extract7z = $0106ac245720b572$var$extract7z;\n/**\n * Extract a compressed tar archive\n *\n * @param file path to the tar\n * @param dest destination directory. Optional.\n * @param flags flags for the tar command to use for extraction. Defaults to 'xz' (extracting gzipped tars). Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractTar(file, dest, flags = \"xz\") {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $0106ac245720b572$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $1f6JF.exec(\"tar --version\", [], {\n ignoreReturnCode: true,\n silent: true,\n listeners: {\n stdout: (data)=>versionOutput += data.toString(),\n stderr: (data)=>versionOutput += data.toString()\n }\n });\n $0106ac245720b572$var$core.debug(versionOutput.trim());\n const isGnuTar = versionOutput.toUpperCase().includes(\"GNU TAR\");\n // Initialize args\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n if ($0106ac245720b572$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($0106ac245720b572$var$IS_WINDOWS && isGnuTar) {\n args.push(\"--force-local\");\n destArg = dest.replace(/\\\\/g, \"/\");\n // Technically only the dest needs to have `/` but for aesthetic consistency\n // convert slashes in the file arg too.\n fileArg = file.replace(/\\\\/g, \"/\");\n }\n if (isGnuTar) {\n // Suppress warnings when using GNU tar to extract archives created by BSD tar\n args.push(\"--warning=no-unknown-keyword\");\n args.push(\"--overwrite\");\n }\n args.push(\"-C\", destArg, \"-f\", fileArg);\n yield $1f6JF.exec(`tar`, args);\n return dest;\n });\n}\n$0106ac245720b572$exports.extractTar = $0106ac245720b572$var$extractTar;\n/**\n * Extract a xar compatible archive\n *\n * @param file path to the archive\n * @param dest destination directory. Optional.\n * @param flags flags for the xar. Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractXar(file, dest, flags = []) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n $d7DIX$assert.ok($0106ac245720b572$var$IS_MAC, \"extractXar() not supported on current OS\");\n $d7DIX$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n let args;\n if (flags instanceof Array) args = flags;\n else args = [\n flags\n ];\n args.push(\"-x\", \"-C\", dest, \"-f\", file);\n if ($0106ac245720b572$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $0106ac245720b572$var$io.which(\"xar\", true);\n yield $1f6JF.exec(`\"${xarPath}\"`, $0106ac245720b572$var$_unique(args));\n return dest;\n });\n}\n$0106ac245720b572$exports.extractXar = $0106ac245720b572$var$extractXar;\n/**\n * Extract a zip\n *\n * @param file path to the zip\n * @param dest destination directory. Optional.\n * @returns path to the destination directory\n */ function $0106ac245720b572$var$extractZip(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $0106ac245720b572$var$_createExtractFolder(dest);\n if ($0106ac245720b572$var$IS_WINDOWS) yield $0106ac245720b572$var$extractZipWin(file, dest);\n else yield $0106ac245720b572$var$extractZipNix(file, dest);\n return dest;\n });\n}\n$0106ac245720b572$exports.extractZip = $0106ac245720b572$var$extractZip;\nfunction $0106ac245720b572$var$extractZipWin(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n // build the powershell command\n const escapedFile = file.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\"); // double-up single quotes, remove double quotes and newlines\n const escapedDest = dest.replace(/'/g, \"''\").replace(/\"|\\n|\\r/g, \"\");\n const pwshPath = yield $0106ac245720b572$var$io.which(\"pwsh\", false);\n //To match the file overwrite behavior on nix systems, we use the overwrite = true flag for ExtractToDirectory\n //and the -Force flag for Expand-Archive as a fallback\n if (pwshPath) {\n //attempt to use pwsh with ExtractToDirectory, if this fails attempt Expand-Archive\n const pwshCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,\n `try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`,\n `catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force } else { throw $_ } } ;`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n pwshCommand\n ];\n $0106ac245720b572$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $1f6JF.exec(`\"${pwshPath}\"`, args);\n } else {\n const powershellCommand = [\n `$ErrorActionPreference = 'Stop' ;`,\n `try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,\n `if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${escapedFile}' -DestinationPath '${escapedDest}' -Force }`,\n `else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true) }`\n ].join(\" \");\n const args = [\n \"-NoLogo\",\n \"-Sta\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-ExecutionPolicy\",\n \"Unrestricted\",\n \"-Command\",\n powershellCommand\n ];\n const powershellPath = yield $0106ac245720b572$var$io.which(\"powershell\", true);\n $0106ac245720b572$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $1f6JF.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $0106ac245720b572$var$extractZipNix(file, dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $0106ac245720b572$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$0106ac245720b572$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $1f6JF.exec(`\"${unzipPath}\"`, args, {\n cwd: dest\n });\n });\n}\n/**\n * Caches a directory and installs it into the tool cacheDir\n *\n * @param sourceDir the directory to cache into tools\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $0106ac245720b572$var$cacheDir(sourceDir, tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n version = $0106ac245720b572$var$semver.clean(version) || version;\n arch = arch || $0106ac245720b572$var$os.arch();\n $0106ac245720b572$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $0106ac245720b572$var$core.debug(`source dir: ${sourceDir}`);\n if (!$0106ac245720b572$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $0106ac245720b572$var$_createToolPath(tool, version, arch);\n // copy each child item. do not move. move can fail on Windows\n // due to anti-virus software having an open handle on a file.\n for (const itemName of $0106ac245720b572$var$fs.readdirSync(sourceDir)){\n const s = $0106ac245720b572$var$path.join(sourceDir, itemName);\n yield $0106ac245720b572$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $0106ac245720b572$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\n$0106ac245720b572$exports.cacheDir = $0106ac245720b572$var$cacheDir;\n/**\n * Caches a downloaded file (GUID) and installs it\n * into the tool cache with a given targetName\n *\n * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.\n * @param targetFile the name of the file name in the tools directory\n * @param tool tool name\n * @param version version of the tool. semver format\n * @param arch architecture of the tool. Optional. Defaults to machine architecture\n */ function $0106ac245720b572$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n version = $0106ac245720b572$var$semver.clean(version) || version;\n arch = arch || $0106ac245720b572$var$os.arch();\n $0106ac245720b572$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $0106ac245720b572$var$core.debug(`source file: ${sourceFile}`);\n if (!$0106ac245720b572$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $0106ac245720b572$var$_createToolPath(tool, version, arch);\n // copy instead of move. move can fail on Windows due to\n // anti-virus software having an open handle on a file.\n const destPath = $0106ac245720b572$var$path.join(destFolder, targetFile);\n $0106ac245720b572$var$core.debug(`destination file ${destPath}`);\n yield $0106ac245720b572$var$io.cp(sourceFile, destPath);\n // write .complete\n $0106ac245720b572$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\n$0106ac245720b572$exports.cacheFile = $0106ac245720b572$var$cacheFile;\n/**\n * Finds the path to a tool version in the local installed tool cache\n *\n * @param toolName name of the tool\n * @param versionSpec version of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $0106ac245720b572$var$find(toolName, versionSpec, arch) {\n if (!toolName) throw new Error(\"toolName parameter is required\");\n if (!versionSpec) throw new Error(\"versionSpec parameter is required\");\n arch = arch || $0106ac245720b572$var$os.arch();\n // attempt to resolve an explicit version\n if (!$0106ac245720b572$var$isExplicitVersion(versionSpec)) {\n const localVersions = $0106ac245720b572$var$findAllVersions(toolName, arch);\n const match = $0106ac245720b572$var$evaluateVersions(localVersions, versionSpec);\n versionSpec = match;\n }\n // check for the explicit version in the cache\n let toolPath = \"\";\n if (versionSpec) {\n versionSpec = $0106ac245720b572$var$semver.clean(versionSpec) || \"\";\n const cachePath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $0106ac245720b572$var$core.debug(`checking cache: ${cachePath}`);\n if ($0106ac245720b572$var$fs.existsSync(cachePath) && $0106ac245720b572$var$fs.existsSync(`${cachePath}.complete`)) {\n $0106ac245720b572$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $0106ac245720b572$var$core.debug(\"not found\");\n }\n return toolPath;\n}\n$0106ac245720b572$exports.find = $0106ac245720b572$var$find;\n/**\n * Finds the paths to all versions of a tool that are installed in the local tool cache\n *\n * @param toolName name of the tool\n * @param arch optional arch. defaults to arch of computer\n */ function $0106ac245720b572$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $0106ac245720b572$var$os.arch();\n const toolPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), toolName);\n if ($0106ac245720b572$var$fs.existsSync(toolPath)) {\n const children = $0106ac245720b572$var$fs.readdirSync(toolPath);\n for (const child of children)if ($0106ac245720b572$var$isExplicitVersion(child)) {\n const fullPath = $0106ac245720b572$var$path.join(toolPath, child, arch || \"\");\n if ($0106ac245720b572$var$fs.existsSync(fullPath) && $0106ac245720b572$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\n$0106ac245720b572$exports.findAllVersions = $0106ac245720b572$var$findAllVersions;\nfunction $0106ac245720b572$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n let releases = [];\n const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;\n const http = new $0106ac245720b572$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $0106ac245720b572$var$core.debug(\"set auth\");\n headers.authorization = auth;\n }\n const response = yield http.getJson(treeUrl, headers);\n if (!response.result) return releases;\n let manifestUrl = \"\";\n for (const item of response.result.tree)if (item.path === \"versions-manifest.json\") {\n manifestUrl = item.url;\n break;\n }\n headers[\"accept\"] = \"application/vnd.github.VERSION.raw\";\n let versionsRaw = yield (yield http.get(manifestUrl, headers)).readBody();\n if (versionsRaw) {\n // shouldn't be needed but protects against invalid json saved with BOM\n versionsRaw = versionsRaw.replace(/^\\uFEFF/, \"\");\n try {\n releases = JSON.parse(versionsRaw);\n } catch (_a) {\n $0106ac245720b572$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\n$0106ac245720b572$exports.getManifestFromRepo = $0106ac245720b572$var$getManifestFromRepo;\nfunction $0106ac245720b572$var$findFromManifest(versionSpec, stable, manifest, archFilter = $0106ac245720b572$var$os.arch()) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $0106ac245720b572$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\n$0106ac245720b572$exports.findFromManifest = $0106ac245720b572$var$findFromManifest;\nfunction $0106ac245720b572$var$_createExtractFolder(dest) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getTempDirectory(), $0106ac245720b572$var$v4_1.default());\n yield $0106ac245720b572$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $0106ac245720b572$var$_createToolPath(tool, version, arch) {\n return $0106ac245720b572$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), tool, $0106ac245720b572$var$semver.clean(version) || version, arch || \"\");\n $0106ac245720b572$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $0106ac245720b572$var$io.rmRF(folderPath);\n yield $0106ac245720b572$var$io.rmRF(markerPath);\n yield $0106ac245720b572$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $0106ac245720b572$var$_completeToolPath(tool, version, arch) {\n const folderPath = $0106ac245720b572$var$path.join($0106ac245720b572$var$_getCacheDirectory(), tool, $0106ac245720b572$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $0106ac245720b572$var$fs.writeFileSync(markerPath, \"\");\n $0106ac245720b572$var$core.debug(\"finished caching tool\");\n}\n/**\n * Check if version string is explicit\n *\n * @param versionSpec version string to check\n */ function $0106ac245720b572$var$isExplicitVersion(versionSpec) {\n const c = $0106ac245720b572$var$semver.clean(versionSpec) || \"\";\n $0106ac245720b572$var$core.debug(`isExplicit: ${c}`);\n const valid = $0106ac245720b572$var$semver.valid(c) != null;\n $0106ac245720b572$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\n$0106ac245720b572$exports.isExplicitVersion = $0106ac245720b572$var$isExplicitVersion;\n/**\n * Get the highest satisfiying semantic version in `versions` which satisfies `versionSpec`\n *\n * @param versions array of versions to evaluate\n * @param versionSpec semantic version spec to satisfy\n */ function $0106ac245720b572$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $0106ac245720b572$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($0106ac245720b572$var$semver.gt(a, b)) return 1;\n return -1;\n });\n for(let i = versions.length - 1; i >= 0; i--){\n const potential = versions[i];\n const satisfied = $0106ac245720b572$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $0106ac245720b572$var$core.debug(`matched: ${version}`);\n else $0106ac245720b572$var$core.debug(\"match not found\");\n return version;\n}\n$0106ac245720b572$exports.evaluateVersions = $0106ac245720b572$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $0106ac245720b572$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $d7DIX$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $0106ac245720b572$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $d7DIX$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $0106ac245720b572$var$_getGlobal(key, defaultValue) {\n /* eslint-disable @typescript-eslint/no-explicit-any */ const value = $parcel$global[key];\n /* eslint-enable @typescript-eslint/no-explicit-any */ return value !== undefined ? value : defaultValue;\n}\n/**\n * Returns an array of unique values.\n * @param values Values to make unique.\n */ function $0106ac245720b572$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\nvar $hZdK0 = parcelRequire(\"hZdK0\");\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\n\n\n\n\n\n\n\nfunction $6285d3d29afbf608$export$5fc39629e14c8173(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"7zip\", version);\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"p7zip\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"p7zip\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"p7zip\",\n version: version\n },\n {\n name: \"p7zip-plugins\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"p7zip-full\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nlet $4615baf4c3b031c2$var$sevenZip;\nasync function $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest) {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(await $4615baf4c3b031c2$var$getSevenZip(), [\n \"x\",\n file,\n `-o${dest}`,\n \"-y\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $8c9709291dc275bc$export$4718e061a205eab)(dest);\n return dest;\n}\n/// install 7z if needed\nasync function $4615baf4c3b031c2$var$getSevenZip() {\n if ($4615baf4c3b031c2$var$sevenZip === undefined) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"7z\", {\n nothrow: true\n }) === null) await (0, $6285d3d29afbf608$export$5fc39629e14c8173)(\"\", \"\", process.arch);\n // eslint-disable-next-line require-atomic-updates\n $4615baf4c3b031c2$var$sevenZip = \"7z\";\n }\n return $4615baf4c3b031c2$var$sevenZip;\n}\nfunction $4615baf4c3b031c2$export$7949938b2681a4f0(file, dest) {\n return $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest);\n}\nfunction $4615baf4c3b031c2$export$6411c5cbab21135b(file, dest) {\n return $4615baf4c3b031c2$export$eecfe186811d4a20(file, dest);\n}\nasync function $4615baf4c3b031c2$export$2ab07ac150064014(file, dest, flags = [\n \"--strip-components=0\"\n]) {\n try {\n await (0, $hZdK0.mkdirP)(dest);\n } catch {\n // ignore\n }\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"tar\", [\n \"xf\",\n file,\n \"-C\",\n dest,\n ...flags\n ], {\n stdio: \"inherit\"\n });\n } catch (e) {\n if (process.platform === \"win32\" && e.message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) (0, $ER74K.warning)(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`);\n }\n (0, $8c9709291dc275bc$export$4718e061a205eab)(dest);\n return dest;\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\nvar $9a76aa2467c494ea$exports = {};\n\"use strict\";\nObject.defineProperty($9a76aa2467c494ea$exports, \"__esModule\", {\n value: true\n});\n$9a76aa2467c494ea$exports.retryAsPromised = $9a76aa2467c494ea$exports.TimeoutError = void 0;\nclass $9a76aa2467c494ea$var$TimeoutError extends Error {\n constructor(message, previousError){\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\n$9a76aa2467c494ea$exports.TimeoutError = $9a76aa2467c494ea$var$TimeoutError;\nfunction $9a76aa2467c494ea$var$matches(match, err) {\n if (typeof match === \"function\") try {\n if (err instanceof match) return true;\n } catch (_) {\n return !!match(err);\n }\n if (match === err.toString()) return true;\n if (match === err.message) return true;\n return match instanceof RegExp && (match.test(err.message) || match.test(err.toString()));\n}\nfunction $9a76aa2467c494ea$var$retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) throw new Error(\"retry-as-promised must be passed a callback and a options set\");\n optionsInput = typeof optionsInput === \"number\" ? {\n max: optionsInput\n } : optionsInput;\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [\n optionsInput.match\n ] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || \"unknown\"\n };\n if (options.match && !Array.isArray(options.match)) options.match = [\n options.match\n ];\n if (options.report) options.report(\"Trying \" + options.name + \" #\" + options.$current + \" at \" + new Date().toLocaleTimeString(), options);\n return new Promise(function(resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) timeout = setTimeout(function() {\n if (backoffTimeout) clearTimeout(backoffTimeout);\n reject(new $9a76aa2467c494ea$var$TimeoutError(options.name + \" timed out\", lastError));\n }, options.timeout);\n Promise.resolve(callback({\n current: options.$current\n })).then(resolve).then(function() {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n }).catch(function(err) {\n if (timeout) clearTimeout(timeout);\n if (backoffTimeout) clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report) options.report(err && err.toString() || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry) return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function(match) {\n return $9a76aa2467c494ea$var$matches(match, err);\n });\n if (!shouldRetry) return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report) options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report) options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function() {\n $9a76aa2467c494ea$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n }, retryDelay);\n } else $9a76aa2467c494ea$var$retryAsPromised(callback, options).then(resolve).catch(reject);\n });\n });\n}\n$9a76aa2467c494ea$exports.retryAsPromised = $9a76aa2467c494ea$var$retryAsPromised;\n$9a76aa2467c494ea$exports.default = $9a76aa2467c494ea$var$retryAsPromised;\n\n\n\n\n\n\n\n\nlet $d81b351c18e56f74$var$didInit = false;\nasync function $d81b351c18e56f74$export$334f77c9844c21f6(name, version, getPackageInfo, setupDir, arch) {\n (0, $ER74K.info)(`Installing ${name} ${version} ${arch} via direct downloading`);\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? (0, $d7DIX$os.tmpdir)();\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? (0, $bzNgi.join)((0, $d7DIX$os.tmpdir)(), \"setup-cpp\", \"hostedtoolcache\");\n const { url: url, binRelativeDir: binRelativeDir, binFileName: binFileName, extractedFolderName: extractedFolderName, extractFunction: extractFunction } = await getPackageInfo(version, process.platform, arch);\n // Restore from cache (if found).\n if (0, $52cQ1.GITHUB_ACTIONS) try {\n const dir = (0, $0106ac245720b572$exports.find)(name, version);\n if (dir) {\n const installDir = (0, $bzNgi.join)(dir, extractedFolderName);\n const binDir = (0, $bzNgi.join)(installDir, binRelativeDir);\n if (await (0, $kY0n1.pathExists)((0, $bzNgi.join)(binDir, binFileName))) {\n (0, $ER74K.info)(`${name} ${version} was found in the cache at ${binDir}.`);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n installDir: installDir,\n binDir: binDir\n };\n }\n }\n } catch {\n // fails on a local machine?\n }\n const installDir = (0, $bzNgi.join)(setupDir, extractedFolderName);\n const binDir = (0, $bzNgi.join)(installDir, binRelativeDir);\n const binFile = (0, $bzNgi.join)(binDir, binFileName);\n // download ane extract the package into the installation directory.\n if ((await Promise.all([\n (0, $kY0n1.pathExists)(binDir),\n (0, $kY0n1.pathExists)(binFile)\n ])).includes(false)) try {\n (0, $ER74K.info)(`Download ${name} ${version}`);\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await (0, (/*@__PURE__*/$parcel$interopDefault($9a76aa2467c494ea$exports)))(()=>{\n return (0, $0106ac245720b572$exports.downloadTool)(url);\n }, {\n name: url,\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $ER74K.info)(err)\n });\n if (!$d81b351c18e56f74$var$didInit) {\n (0, $ER74K.info)(`Installing extraction dependencies`);\n if (process.platform === \"linux\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"xz\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"xz-utils\"\n }\n ]);\n }\n // eslint-disable-next-line require-atomic-updates\n $d81b351c18e56f74$var$didInit = true;\n }\n (0, $ER74K.info)(`Extracting ${downloaded} to ${setupDir}`);\n await extractFunction?.(downloaded, setupDir);\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`);\n }\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */ (0, $ER74K.info)(`Add ${binDir} to PATH`);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n // check if inside Github Actions. If so, cache the installation\n if ((0, $52cQ1.GITHUB_ACTIONS) && typeof process.env.RUNNER_TOOL_CACHE === \"string\") await (0, $0106ac245720b572$exports.cacheDir)(setupDir, name, version);\n return {\n installDir: installDir,\n binDir: binDir\n };\n}\n\n\n/** Get the platform data for cmake */ function $cd6a37a8a2760b1d$var$getCmakePackageInfo(version, platform, arch) {\n const semVersion = (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? version;\n switch(platform){\n case \"win32\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.6\");\n let osArchStr;\n if ([\n \"ia32\",\n \"x86\",\n \"i386\",\n \"x32\"\n ].includes(arch)) osArchStr = isOld ? \"win32-x86\" : \"windows-i386\";\n else osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`\n };\n }\n case \"darwin\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.1\");\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n case \"linux\":\n {\n const isOld = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(semVersion, \"v3.19.8\");\n let osArchStr;\n if ([\n \"aarch64\"\n ].includes(arch)) osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\";\n else osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\";\n const folderName = `cmake-${version}-${osArchStr}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nfunction $cd6a37a8a2760b1d$export$c28663a621f418ce(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"cmake\", version, $cd6a37a8a2760b1d$var$getCmakePackageInfo, setupDir, arch);\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n/**\n * @constant DEFAULT_OPTIONS_KEYS the default options keys\n */ var $429c83835ea21620$var$DEFAULT_OPTIONS_KEYS = {\n isEqual: true,\n isMatchingKey: true,\n isPromise: true,\n maxSize: true,\n onCacheAdd: true,\n onCacheChange: true,\n onCacheHit: true,\n transformKey: true\n};\n/**\n * @function slice\n *\n * @description\n * slice.call() pre-bound\n */ var $429c83835ea21620$var$slice = Array.prototype.slice;\n/**\n * @function cloneArray\n *\n * @description\n * clone the array-like object and return the new array\n *\n * @param arrayLike the array-like object to clone\n * @returns the clone as an array\n */ function $429c83835ea21620$var$cloneArray(arrayLike) {\n var length = arrayLike.length;\n if (!length) return [];\n if (length === 1) return [\n arrayLike[0]\n ];\n if (length === 2) return [\n arrayLike[0],\n arrayLike[1]\n ];\n if (length === 3) return [\n arrayLike[0],\n arrayLike[1],\n arrayLike[2]\n ];\n return $429c83835ea21620$var$slice.call(arrayLike, 0);\n}\n/**\n * @function getCustomOptions\n *\n * @description\n * get the custom options on the object passed\n *\n * @param options the memoization options passed\n * @returns the custom options passed\n */ function $429c83835ea21620$var$getCustomOptions(options) {\n var customOptions = {};\n /* eslint-disable no-restricted-syntax */ for(var key in options)if (!$429c83835ea21620$var$DEFAULT_OPTIONS_KEYS[key]) customOptions[key] = options[key];\n /* eslint-enable */ return customOptions;\n}\n/**\n * @function isMemoized\n *\n * @description\n * is the function passed already memoized\n *\n * @param fn the function to test\n * @returns is the function already memoized\n */ function $429c83835ea21620$var$isMemoized(fn) {\n return typeof fn === \"function\" && fn.isMemoized;\n}\n/**\n * @function isSameValueZero\n *\n * @description\n * are the objects equal based on SameValueZero equality\n *\n * @param object1 the first object to compare\n * @param object2 the second object to compare\n * @returns are the two objects equal\n */ function $429c83835ea21620$var$isSameValueZero(object1, object2) {\n // eslint-disable-next-line no-self-compare\n return object1 === object2 || object1 !== object1 && object2 !== object2;\n}\n/**\n * @function mergeOptions\n *\n * @description\n * merge the options into the target\n *\n * @param existingOptions the options provided\n * @param newOptions the options to include\n * @returns the merged options\n */ function $429c83835ea21620$var$mergeOptions(existingOptions, newOptions) {\n var target = {};\n /* eslint-disable no-restricted-syntax */ for(var key in existingOptions)target[key] = existingOptions[key];\n for(var key in newOptions)target[key] = newOptions[key];\n /* eslint-enable */ return target;\n}\n// utils\nvar $429c83835ea21620$var$Cache = /** @class */ function() {\n function Cache(options) {\n this.keys = [];\n this.values = [];\n this.options = options;\n var isMatchingKeyFunction = typeof options.isMatchingKey === \"function\";\n if (isMatchingKeyFunction) this.getKeyIndex = this._getKeyIndexFromMatchingKey;\n else if (options.maxSize > 1) this.getKeyIndex = this._getKeyIndexForMany;\n else this.getKeyIndex = this._getKeyIndexForSingle;\n this.canTransformKey = typeof options.transformKey === \"function\";\n this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;\n this.shouldUpdateOnAdd = typeof options.onCacheAdd === \"function\";\n this.shouldUpdateOnChange = typeof options.onCacheChange === \"function\";\n this.shouldUpdateOnHit = typeof options.onCacheHit === \"function\";\n }\n Object.defineProperty(Cache.prototype, \"size\", {\n /**\n * The number of cached [key,value] results.\n */ get: function() {\n return this.keys.length;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Cache.prototype, \"snapshot\", {\n /**\n * A copy of the cache at a moment in time. This is useful\n * to compare changes over time, since the cache mutates\n * internally for performance reasons.\n */ get: function() {\n return {\n keys: $429c83835ea21620$var$cloneArray(this.keys),\n size: this.size,\n values: $429c83835ea21620$var$cloneArray(this.values)\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Gets the matching key index when a custom key matcher is used.\n */ Cache.prototype._getKeyIndexFromMatchingKey = function(keyToMatch) {\n var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (isMatchingKey(keys[0], keyToMatch)) return 0;\n if (maxSize > 1) for(var index = 1; index < keysLength; index++){\n if (isMatchingKey(keys[index], keyToMatch)) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when multiple keys are used.\n */ Cache.prototype._getKeyIndexForMany = function(keyToMatch) {\n var isEqual = this.options.isEqual;\n var keys = this.keys;\n var keysLength = keys.length;\n if (!keysLength) return -1;\n if (keysLength === 1) return this._getKeyIndexForSingle(keyToMatch);\n var keyLength = keyToMatch.length;\n var existingKey;\n var argIndex;\n if (keyLength > 1) for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength) {\n argIndex = 0;\n for(; argIndex < keyLength; argIndex++){\n if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) break;\n }\n if (argIndex === keyLength) return index;\n }\n }\n else for(var index = 0; index < keysLength; index++){\n existingKey = keys[index];\n if (existingKey.length === keyLength && isEqual(existingKey[0], keyToMatch[0])) return index;\n }\n return -1;\n };\n /**\n * Gets the matching key index when a single key is used.\n */ Cache.prototype._getKeyIndexForSingle = function(keyToMatch) {\n var keys = this.keys;\n if (!keys.length) return -1;\n var existingKey = keys[0];\n var length = existingKey.length;\n if (keyToMatch.length !== length) return -1;\n var isEqual = this.options.isEqual;\n if (length > 1) {\n for(var index = 0; index < length; index++){\n if (!isEqual(existingKey[index], keyToMatch[index])) return -1;\n }\n return 0;\n }\n return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;\n };\n /**\n * Order the array based on a Least-Recently-Used basis.\n */ Cache.prototype.orderByLru = function(key, value, startingIndex) {\n var keys = this.keys;\n var values = this.values;\n var currentLength = keys.length;\n var index = startingIndex;\n while(index--){\n keys[index + 1] = keys[index];\n values[index + 1] = values[index];\n }\n keys[0] = key;\n values[0] = value;\n var maxSize = this.options.maxSize;\n if (currentLength === maxSize && startingIndex === currentLength) {\n keys.pop();\n values.pop();\n } else if (startingIndex >= maxSize) // eslint-disable-next-line no-multi-assign\n keys.length = values.length = maxSize;\n };\n /**\n * Update the promise method to auto-remove from cache if rejected, and\n * if resolved then fire cache hit / changed.\n */ Cache.prototype.updateAsyncCache = function(memoized) {\n var _this = this;\n var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;\n var firstKey = this.keys[0];\n var firstValue = this.values[0];\n this.values[0] = firstValue.then(function(value) {\n if (_this.shouldUpdateOnHit) onCacheHit(_this, _this.options, memoized);\n if (_this.shouldUpdateOnChange) onCacheChange(_this, _this.options, memoized);\n return value;\n }, function(error) {\n var keyIndex = _this.getKeyIndex(firstKey);\n if (keyIndex !== -1) {\n _this.keys.splice(keyIndex, 1);\n _this.values.splice(keyIndex, 1);\n }\n throw error;\n });\n };\n return Cache;\n}();\nfunction $429c83835ea21620$export$2e2bcd8739ae039(fn, options) {\n if (options === void 0) options = {};\n if ($429c83835ea21620$var$isMemoized(fn)) return $429c83835ea21620$export$2e2bcd8739ae039(fn.fn, $429c83835ea21620$var$mergeOptions(fn.options, options));\n if (typeof fn !== \"function\") throw new TypeError(\"You must pass a function to `memoize`.\");\n var _a = options.isEqual, isEqual = _a === void 0 ? $429c83835ea21620$var$isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;\n var normalizedOptions = $429c83835ea21620$var$mergeOptions({\n isEqual: isEqual,\n isMatchingKey: isMatchingKey,\n isPromise: isPromise,\n maxSize: maxSize,\n onCacheAdd: onCacheAdd,\n onCacheChange: onCacheChange,\n onCacheHit: onCacheHit,\n transformKey: transformKey\n }, $429c83835ea21620$var$getCustomOptions(options));\n var cache = new $429c83835ea21620$var$Cache(normalizedOptions);\n var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;\n var memoized = function() {\n var key = shouldCloneArguments ? $429c83835ea21620$var$cloneArray(arguments) : arguments;\n if (canTransformKey) key = transformKey(key);\n var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;\n if (keyIndex !== -1) {\n if (shouldUpdateOnHit) onCacheHit(cache, normalizedOptions, memoized);\n if (keyIndex) {\n cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n } else {\n var newValue = fn.apply(this, arguments);\n var newKey = shouldCloneArguments ? key : $429c83835ea21620$var$cloneArray(arguments);\n cache.orderByLru(newKey, newValue, keys.length);\n if (isPromise) cache.updateAsyncCache(memoized);\n if (shouldUpdateOnAdd) onCacheAdd(cache, normalizedOptions, memoized);\n if (shouldUpdateOnChange) onCacheChange(cache, normalizedOptions, memoized);\n }\n return values[0];\n };\n memoized.cache = cache;\n memoized.fn = fn;\n memoized.isMemoized = true;\n memoized.options = normalizedOptions;\n return memoized;\n}\n\n\n\n\nconst $a2e64d197ec61889$export$edfda2f049ea6cd1 = (opts)=>{\n if (!opts) opts = {\n mode: 511\n };\n else if (typeof opts === \"object\") opts = {\n mode: 511,\n ...opts\n };\n else if (typeof opts === \"number\") opts = {\n mode: opts\n };\n else if (typeof opts === \"string\") opts = {\n mode: parseInt(opts, 8)\n };\n else throw new TypeError(\"invalid options argument\");\n const resolved = opts;\n const optsFs = opts.fs || {};\n opts.mkdir = opts.mkdir || optsFs.mkdir || (0, $d7DIX$fs.mkdir);\n opts.mkdirAsync = opts.mkdirAsync ? opts.mkdirAsync : async (path, options)=>{\n return new Promise((res, rej)=>resolved.mkdir(path, options, (er, made)=>er ? rej(er) : res(made)));\n };\n opts.stat = opts.stat || optsFs.stat || (0, $d7DIX$fs.stat);\n opts.statAsync = opts.statAsync ? opts.statAsync : async (path)=>new Promise((res, rej)=>resolved.stat(path, (err, stats)=>err ? rej(err) : res(stats)));\n opts.statSync = opts.statSync || optsFs.statSync || (0, $d7DIX$fs.statSync);\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || (0, $d7DIX$fs.mkdirSync);\n return resolved;\n};\n\n\nconst $e4ea9f87a1261121$export$fa6f1b792dc805a5 = (path, options, made)=>{\n const parent = (0, $d7DIX$path.dirname)(path);\n const opts = {\n ...(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options),\n recursive: false\n };\n if (parent === path) try {\n return opts.mkdirSync(path, opts);\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n return;\n }\n try {\n opts.mkdirSync(path, opts);\n return made || path;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $e4ea9f87a1261121$export$fa6f1b792dc805a5(path, opts, $e4ea9f87a1261121$export$fa6f1b792dc805a5(parent, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer && fer.code !== \"EROFS\") throw er;\n try {\n if (!opts.statSync(path).isDirectory()) throw er;\n } catch (_) {\n throw er;\n }\n }\n};\nconst $e4ea9f87a1261121$export$96a3a6083628c9d8 = Object.assign(async (path, options, made)=>{\n const opts = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options);\n opts.recursive = false;\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return opts.mkdirAsync(path, opts).catch((er)=>{\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er;\n if (fer && fer.code !== \"EISDIR\") throw er;\n });\n return opts.mkdirAsync(path, opts).then(()=>made || path, async (er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return $e4ea9f87a1261121$export$96a3a6083628c9d8(parent, opts).then((made)=>$e4ea9f87a1261121$export$96a3a6083628c9d8(path, opts, made));\n if (fer && fer.code !== \"EEXIST\" && fer.code !== \"EROFS\") throw er;\n return opts.statAsync(path).then((st)=>{\n if (st.isDirectory()) return made;\n else throw er;\n }, ()=>{\n throw er;\n });\n });\n}, {\n sync: $e4ea9f87a1261121$export$fa6f1b792dc805a5\n});\n\n\n\n\nconst $93478d381be8340e$export$f0fc1d32fc1d7461 = async (opts, parent, path)=>{\n // we never want the 'made' return value to be a root directory\n if (path === parent) return;\n return opts.statAsync(parent).then((st)=>st.isDirectory() ? path : undefined, // will fail later\n (er)=>{\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $93478d381be8340e$export$f0fc1d32fc1d7461(opts, (0, $d7DIX$path.dirname)(parent), parent) : undefined;\n });\n};\nconst $93478d381be8340e$export$5bbea51519185a10 = (opts, parent, path)=>{\n if (path === parent) return undefined;\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined;\n } catch (er) {\n const fer = er;\n return fer && fer.code === \"ENOENT\" ? $93478d381be8340e$export$5bbea51519185a10(opts, (0, $d7DIX$path.dirname)(parent), parent) : undefined;\n }\n};\n\n\n\n\nconst $427b619c6b7a11b6$export$abcdbcf229aec40d = (path, options)=>{\n const opts = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options);\n opts.recursive = true;\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return opts.mkdirSync(path, opts);\n const made = (0, $93478d381be8340e$export$5bbea51519185a10)(opts, path);\n try {\n opts.mkdirSync(path, opts);\n return made;\n } catch (er) {\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5)(path, opts);\n else throw er;\n }\n};\nconst $427b619c6b7a11b6$export$efd8fb7a8c453d34 = Object.assign(async (path, options)=>{\n const opts = {\n ...(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(options),\n recursive: true\n };\n const parent = (0, $d7DIX$path.dirname)(path);\n if (parent === path) return await opts.mkdirAsync(path, opts);\n return (0, $93478d381be8340e$export$f0fc1d32fc1d7461)(opts, path).then((made)=>opts.mkdirAsync(path, opts).then((m)=>made || m).catch((er)=>{\n const fer = er;\n if (fer && fer.code === \"ENOENT\") return (0, $e4ea9f87a1261121$export$96a3a6083628c9d8)(path, opts);\n else throw er;\n }));\n}, {\n sync: $427b619c6b7a11b6$export$abcdbcf229aec40d\n});\n\n\n\n\nconst $2fc5cfcca73afcae$var$platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;\nconst $2fc5cfcca73afcae$export$84f52eb1a6059876 = (path)=>{\n if (/\\0/.test(path)) // simulate same failure that node raises\n throw Object.assign(new TypeError(\"path must be a string without null bytes\"), {\n path: path,\n code: \"ERR_INVALID_ARG_VALUE\"\n });\n path = (0, $d7DIX$path.resolve)(path);\n if ($2fc5cfcca73afcae$var$platform === \"win32\") {\n const badWinChars = /[*|\"<>?:]/;\n const { root: root } = (0, $d7DIX$path.parse)(path);\n if (badWinChars.test(path.substring(root.length))) throw Object.assign(new Error(\"Illegal characters in path.\"), {\n path: path,\n code: \"EINVAL\"\n });\n }\n return path;\n};\n\n\n\n\nconst $747f9e4efce6ee21$var$version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;\nconst $747f9e4efce6ee21$var$versArr = $747f9e4efce6ee21$var$version.replace(/^v/, \"\").split(\".\");\nconst $747f9e4efce6ee21$var$hasNative = +$747f9e4efce6ee21$var$versArr[0] > 10 || +$747f9e4efce6ee21$var$versArr[0] === 10 && +$747f9e4efce6ee21$var$versArr[1] >= 12;\nconst $747f9e4efce6ee21$export$f32201cb36e5654a = !$747f9e4efce6ee21$var$hasNative ? ()=>false : (opts)=>(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts).mkdirSync === (0, $d7DIX$fs.mkdirSync);\nconst $747f9e4efce6ee21$export$875f149e5ea533c1 = Object.assign(!$747f9e4efce6ee21$var$hasNative ? ()=>false : (opts)=>(0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts).mkdir === (0, $d7DIX$fs.mkdir), {\n sync: $747f9e4efce6ee21$export$f32201cb36e5654a\n});\n\n\nconst $08f425779d18d4ec$export$f5e50515bfceb13b = (path, opts)=>{\n path = (0, $2fc5cfcca73afcae$export$84f52eb1a6059876)(path);\n const resolved = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts);\n return (0, $747f9e4efce6ee21$export$f32201cb36e5654a)(resolved) ? (0, $427b619c6b7a11b6$export$abcdbcf229aec40d)(path, resolved) : (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5)(path, resolved);\n};\nconst $08f425779d18d4ec$export$92d6409d68f0739a = $08f425779d18d4ec$export$f5e50515bfceb13b;\nconst $08f425779d18d4ec$export$d5db38ffe1f43b01 = (0, $e4ea9f87a1261121$export$96a3a6083628c9d8);\nconst $08f425779d18d4ec$export$36e1c11973ff5d6a = (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5);\nconst $08f425779d18d4ec$export$e199e4a0c0335c4f = (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34);\nconst $08f425779d18d4ec$export$dd70f1af61563969 = (0, $427b619c6b7a11b6$export$abcdbcf229aec40d);\nconst $08f425779d18d4ec$export$fd6858aa0f578dc7 = Object.assign(async (path, opts)=>{\n path = (0, $2fc5cfcca73afcae$export$84f52eb1a6059876)(path);\n const resolved = (0, $a2e64d197ec61889$export$edfda2f049ea6cd1)(opts);\n return (0, $747f9e4efce6ee21$export$875f149e5ea533c1)(resolved) ? (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34)(path, resolved) : (0, $e4ea9f87a1261121$export$96a3a6083628c9d8)(path, resolved);\n}, {\n mkdirpSync: $08f425779d18d4ec$export$f5e50515bfceb13b,\n mkdirpNative: $427b619c6b7a11b6$export$efd8fb7a8c453d34,\n mkdirpNativeSync: $427b619c6b7a11b6$export$abcdbcf229aec40d,\n mkdirpManual: $e4ea9f87a1261121$export$96a3a6083628c9d8,\n mkdirpManualSync: $e4ea9f87a1261121$export$fa6f1b792dc805a5,\n sync: $08f425779d18d4ec$export$f5e50515bfceb13b,\n native: (0, $427b619c6b7a11b6$export$efd8fb7a8c453d34),\n nativeSync: (0, $427b619c6b7a11b6$export$abcdbcf229aec40d),\n manual: (0, $e4ea9f87a1261121$export$96a3a6083628c9d8),\n manualSync: (0, $e4ea9f87a1261121$export$fa6f1b792dc805a5),\n useNative: $747f9e4efce6ee21$export$875f149e5ea533c1,\n useNativeSync: $747f9e4efce6ee21$export$f32201cb36e5654a\n});\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/* eslint-disable require-atomic-updates */ \nvar $1f6JF = parcelRequire(\"1f6JF\");\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\n\n\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n// src/modules/https-utils.ts\n\n\nfunction $19873b61ea31f597$var$isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction $19873b61ea31f597$var$requestWorks(url, method) {\n return new Promise((resolve)=>{\n try {\n const req = (0, $d7DIX$https.request)(url, {\n method: method\n }, (result)=>{\n resolve($19873b61ea31f597$var$isStatusOK(result));\n });\n req.on(\"error\", (_error)=>{\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\nvar $19873b61ea31f597$export$8092cb61b2731942 = (url)=>{\n if (typeof url !== \"string\") return false;\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) return false;\n try {\n new (0, $d7DIX$url.URL)(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n// src/modules/isUrlOnline.ts\nvar $19873b61ea31f597$export$61e6a71eee2b02f9 = async (url)=>{\n const isUrl = $19873b61ea31f597$export$8092cb61b2731942(url);\n if (!isUrl) return false;\n let response = await $19873b61ea31f597$var$requestWorks(url, \"HEAD\");\n if (response) return true;\n response = await $19873b61ea31f597$var$requestWorks(url, \"GET\");\n return !!response;\n};\n// src/modules/prependHttp.ts\nvar $19873b61ea31f597$export$b9a79b9e9f921305 = ({ url: url, https: https = true })=>{\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) return url;\n return trimmedUrl.replace(/^(?!(?:\\w+:)?\\/\\/)/u, https ? \"https://\" : \"http://\");\n};\n\n\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $3uysP = parcelRequire(\"3uysP\");\n\nvar $l655J = parcelRequire(\"l655J\");\nfunction $5683decf99cdafe6$export$deb1064c8260c54c(versions, semversion) {\n return Array.from(versions).filter((v)=>/^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion)).sort((a, b)=>{\n try {\n return (0, (/*@__PURE__*/$parcel$interopDefault($3uysP)))(a, b);\n } catch (err) {\n return a.localeCompare(b);\n }\n }).reverse();\n}\nfunction $5683decf99cdafe6$export$cbd9528a83fbffa1(specific) {\n const versions = new Set(specific);\n for (const version of specific){\n versions.add(/^\\d+/.exec(version)[0]);\n versions.add(/^\\d+\\.\\d+/.exec(version)[0]);\n }\n return versions;\n}\nasync function $5683decf99cdafe6$export$4e4d3581f69a6d71(versions, platform, version, getUrl) {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version);\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) return [\n version,\n url\n ];\n }\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n const offlineUrls = [];\n // TODO use Promise.any\n for (const specificVersion of $5683decf99cdafe6$export$deb1064c8260c54c(versions, version)){\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion);\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) return [\n specificVersion,\n url\n ];\n else offlineUrls.push(url);\n }\n }\n throw new Error(`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(versions)}`);\n}\nconst $5683decf99cdafe6$export$d7ab5e2d33b06cd5 = /v?(\\d\\S*)/;\nasync function $5683decf99cdafe6$export$5b54ecc7386538f(file, versionRegex = $5683decf99cdafe6$export$d7ab5e2d33b06cd5) {\n try {\n const execout = await (0, $1f6JF.getExecOutput)(file, [\n \"--version\"\n ]);\n const version_output = execout.stdout || execout.stderr || \"\";\n const version = version_output.trim().match(versionRegex)?.[1];\n return (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? undefined;\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nasync function $5683decf99cdafe6$export$d1f0d32b896ba08(givenFile, targetVersion, versionRegex = $5683decf99cdafe6$export$d7ab5e2d33b06cd5) {\n const givenVersion = await $5683decf99cdafe6$export$5b54ecc7386538f(givenFile, versionRegex);\n if (givenVersion !== undefined && targetVersion !== \"\") return (0, (/*@__PURE__*/$parcel$interopDefault($3uysP)))(givenVersion, targetVersion) !== -1;\n else // assume given version is old\n return false;\n}\nfunction $5683decf99cdafe6$export$afd7401db249098f(version) {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(version) === null) // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = (0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version);\n if (coercedVersion !== null) {\n (0, $ER74K.info)(`Coerced version '${version}' to '${coercedVersion}'`);\n return coercedVersion.version;\n }\n } catch (err) {\n // handled below\n }\n return version;\n}\nfunction $5683decf99cdafe6$export$b19007c0050a2fcc(version) {\n return parseInt(version.replace(/^v/, \"\"), 10);\n}\nfunction $5683decf99cdafe6$export$6863a97504984656(version) {\n if (!version.match(/^v/)) return `v${version}`;\n return version;\n}\n\n\nfunction $eac35b7c3e82d235$export$7a5d5c156e7dc406(dirs) {\n return [\n ...new Set(dirs)\n ];\n}\n\n\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\nfunction $0965eaed961dcb55$var$getLLVMDefault() {\n switch(process.platform){\n case \"win32\":\n return \"17.0.6\";\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\";\n case \"darwin\":\n return \"15.0.3\";\n default:\n return \"17.0.6\";\n }\n}\nconst $0965eaed961dcb55$export$5fb1985a02d8f66f = {\n llvm: $0965eaed961dcb55$var$getLLVMDefault(),\n clangtidy: $0965eaed961dcb55$var$getLLVMDefault(),\n clangformat: $0965eaed961dcb55$var$getLLVMDefault(),\n ninja: \"1.11.1\",\n cmake: \"3.28.1\",\n gcovr: \"5.2\",\n conan: \"1.62.0\",\n meson: \"1.3.1\",\n kcov: \"42\",\n task: \"3.33.1\",\n doxygen: (0, $84785c71f430250a$export$d415ddb6702ec3a2)() ? \"1.10.0-1\" : \"1.10.0\",\n gcc: (0, $84785c71f430250a$export$d415ddb6702ec3a2)() ? \"13.2.1-3\" : \"13\"\n};\nconst $0965eaed961dcb55$export$b0fc8ac572b39938 = {\n pip: \"22.2.0\",\n python: \"3.7.9\"\n};\nconst $0965eaed961dcb55$export$1bb63c984aa6e760 = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\"\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\"\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\"\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\"\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\"\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\"\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\",\n 18: \"40\",\n 16: \"40\",\n 14: \"40\"\n }\n};\n\n\nasync function $ae5265b0f840d575$export$2b0b68e9df3d4a02(version, setupDir, arch) {\n const installInfo = await $ae5265b0f840d575$var$findOrSetupPython(version, setupDir, arch);\n (0, ($parcel$interopDefault($d7DIX$assert)))(installInfo.bin !== undefined);\n const foundPython = installInfo.bin;\n // setup pip\n const foundPip = await $ae5265b0f840d575$var$findOrSetupPip(foundPython);\n if (foundPip === undefined) throw new Error(\"pip was not installed correctly\");\n await $ae5265b0f840d575$var$setupPipx(foundPython);\n await $ae5265b0f840d575$var$setupWheel(foundPython);\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$setupPipx(foundPython) {\n try {\n if (!await (0, $cfebcec0830c9a7b$export$ffe24b8e86dbc863)(foundPython)) try {\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"pipx\", undefined, {\n upgrade: true,\n usePipx: false\n });\n } catch (err) {\n if ((0, $cfebcec0830c9a7b$export$6de3fef38027e326)(\"pipx\", false) === null) throw new Error(`pipx was not installed correctly ${err}`);\n }\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pipx\",\n \"ensurepath\"\n ], {\n stdio: \"inherit\"\n });\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"venv\", undefined, {\n upgrade: false,\n usePipx: false\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to install pipx: ${err.toString()}. Ignoring...`);\n }\n}\n/** Setup wheel and setuptools */ async function $ae5265b0f840d575$var$setupWheel(foundPython) {\n try {\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n await (0, $cfebcec0830c9a7b$export$7c60aea099ad1c1d)(foundPython, \"wheel\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false\n });\n } catch (err) {\n (0, $ER74K.warning)(`Failed to install setuptools or wheel: ${err.toString()}. Ignoring...`);\n }\n}\n\nasync function $ae5265b0f840d575$var$findOrSetupPython(version, setupDir, arch) {\n let installInfo;\n let foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n if (foundPython !== undefined) {\n const binDir = (0, $bzNgi.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } else {\n // if python is not found, try to install it\n if (0, $52cQ1.GITHUB_ACTIONS) // install python in GitHub Actions\n try {\n (0, $ER74K.info)(\"Installing python in GitHub Actions\");\n const { setupActionsPython: setupActionsPython } = await (parcelRequire(\"4JiFg\"));\n await setupActionsPython(version, setupDir, arch);\n foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n const binDir = (0, $bzNgi.dirname)(foundPython);\n installInfo = {\n bin: foundPython,\n installDir: binDir,\n binDir: binDir\n };\n } catch (err) {\n (0, $ER74K.warning)(err.toString());\n }\n if (installInfo === undefined) // install python via system package manager\n installInfo = await $ae5265b0f840d575$var$setupPythonSystem(setupDir, version);\n }\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = await $ae5265b0f840d575$var$findPython(setupDir);\n installInfo.bin = foundPython;\n }\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$setupPythonSystem(setupDir, version) {\n let installInfo;\n switch(process.platform){\n case \"win32\":\n {\n if (setupDir) await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"python3\", version, [\n `--params=/InstallDir:${setupDir}`\n ]);\n else await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"python3\", version);\n // Adding the bin dir to the path\n const bin = await $ae5265b0f840d575$var$findPython(setupDir);\n const binDir = (0, $bzNgi.dirname)(bin);\n /** The directory which the tool is installed to */ await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n installInfo = {\n installDir: binDir,\n binDir: binDir,\n bin: bin\n };\n break;\n }\n case \"darwin\":\n {\n installInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"python3\", version);\n // add the python and pip binaries to the path\n const brewPythonPrefix = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"brew\", [\n \"--prefix\",\n \"python\"\n ], {\n stdio: \"pipe\"\n });\n const brewPythonBin = (0, $bzNgi.join)(brewPythonPrefix.stdout, \"libexec\", \"bin\");\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(brewPythonBin);\n break;\n }\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"python\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"python3\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"python3\",\n version: version\n },\n {\n name: \"python-is-python3\"\n }\n ]);\n else throw new Error(\"Unsupported linux distributions\");\n break;\n default:\n throw new Error(\"Unsupported platform\");\n }\n return installInfo;\n}\nasync function $ae5265b0f840d575$var$findPython(binDir) {\n for (const pythonBin of [\n \"python3\",\n \"python\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await $ae5265b0f840d575$var$isPythonUpToDate(pythonBin, binDir);\n if (foundPython !== undefined) return foundPython;\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$isPythonUpToDate(candidate, binDir) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = (0, $bzNgi.join)(binDir, (0, $bzNgi.addExeExt)(candidate));\n if (await (0, $kY0n1.pathExists)(pythonBinPath)) {\n if (await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pythonBinPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n }\n const pythonBinPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports)))(candidate, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pythonBinPath of pythonBinPaths){\n // eslint-disable-next-line no-await-in-loop\n if (await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pythonBinPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).python)) return pythonBinPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$findOrSetupPip(foundPython) {\n const maybePip = await $ae5265b0f840d575$var$findPip();\n if (maybePip === undefined) {\n // install pip if not installed\n (0, $ER74K.info)(\"pip was not found. Installing pip\");\n await $ae5265b0f840d575$var$setupPip(foundPython);\n return $ae5265b0f840d575$var$findPip() // recurse to check if pip is on PATH and up-to-date\n ;\n }\n return maybePip;\n}\nasync function $ae5265b0f840d575$var$findPip() {\n for (const pipCandidate of [\n \"pip3\",\n \"pip\"\n ]){\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await $ae5265b0f840d575$var$isPipUptoDate(pipCandidate);\n if (maybePip !== undefined) return maybePip;\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$isPipUptoDate(pip) {\n try {\n const pipPaths = await (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports)))(pip, {\n nothrow: true,\n all: true\n }) ?? [];\n for (const pipPath of pipPaths){\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && await (0, $5683decf99cdafe6$export$d1f0d32b896ba08)(pipPath, (0, $0965eaed961dcb55$export$b0fc8ac572b39938).pip)) return pipPath;\n }\n } catch {\n // fall through\n }\n return undefined;\n}\nasync function $ae5265b0f840d575$var$setupPip(foundPython) {\n const upgraded = await $ae5265b0f840d575$var$ensurePipUpgrade(foundPython);\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await (0, $cfebcec0830c9a7b$export$6de3fef38027e326)(\"pip\");\n // upgrade pip\n await $ae5265b0f840d575$var$ensurePipUpgrade(foundPython);\n }\n}\nasync function $ae5265b0f840d575$var$ensurePipUpgrade(foundPython) {\n try {\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"ensurepip\",\n \"-U\",\n \"--upgrade\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err1) {\n (0, $ER74K.info)(err1.toString());\n try {\n // ensure pip is disabled on Ubuntu\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(foundPython, [\n \"-m\",\n \"pip\",\n \"install\",\n \"--upgrade\",\n \"pip\"\n ], {\n stdio: \"inherit\"\n });\n return true;\n } catch (err2) {\n (0, $ER74K.info)(err2.toString());\n // pip module not found\n }\n }\n // all methods failed\n return false;\n}\nasync function $ae5265b0f840d575$var$addPythonBaseExecPrefix_raw(python) {\n const dirs = [];\n // detection based on the platform\n if (process.platform === \"linux\") dirs.push(\"/home/runner/.local/bin/\");\n else if (process.platform === \"darwin\") dirs.push(\"/usr/local/bin/\");\n // detection using python.sys\n const base_exec_prefix = (await (0, $1f6JF.getExecOutput)(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim();\n // any of these are possible depending on the operating system!\n dirs.push((0, $bzNgi.join)(base_exec_prefix, \"Scripts\"), (0, $bzNgi.join)(base_exec_prefix, \"Scripts\", \"bin\"), (0, $bzNgi.join)(base_exec_prefix, \"bin\"));\n // remove duplicates\n return (0, $eac35b7c3e82d235$export$7a5d5c156e7dc406)(dirs);\n}\nconst $ae5265b0f840d575$export$4bf645347c3b7001 = (0, $429c83835ea21620$export$2e2bcd8739ae039)($ae5265b0f840d575$var$addPythonBaseExecPrefix_raw, {\n isPromise: true\n});\n\n\n\nfunction $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a(name, version, osVersion = null) {\n if ($cb3b5dc5a4eadeb1$var$isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in (0, $0965eaed961dcb55$export$1bb63c984aa6e760)) return $cb3b5dc5a4eadeb1$var$getDefaultLinuxVersion(osVersion, (0, $0965eaed961dcb55$export$1bb63c984aa6e760)[name]);\n else if ($cb3b5dc5a4eadeb1$var$isVersionDefault(version) && name in (0, $0965eaed961dcb55$export$5fb1985a02d8f66f)) return (0, $0965eaed961dcb55$export$5fb1985a02d8f66f)[name];\n else if (version === \"true\") return \"\";\n return version ?? \"\";\n}\nfunction $cb3b5dc5a4eadeb1$var$isVersionDefault(version) {\n return version === \"true\" || version === undefined;\n}\n/// choose the default linux version based on ubuntu version\nfunction $cb3b5dc5a4eadeb1$var$getDefaultLinuxVersion(osVersion, toolLinuxVersions) {\n const osVersionMaj = osVersion[0];\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions).map((v)=>parseInt(v, 10)).sort((a, b)=>b - a) // sort in descending order\n .find((v)=>osVersionMaj >= v);\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion];\n}\nfunction $cb3b5dc5a4eadeb1$export$dd13a1e418f5a5fe(opts, tools) {\n const toolsInUse = tools.filter((tool)=>opts[tool] !== undefined);\n const toolsNonDefaultVersion = toolsInUse.filter((tool)=>!$cb3b5dc5a4eadeb1$var$isVersionDefault(opts[tool]));\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\";\n if (toolsNonDefaultVersion.some((tool)=>opts[tool] !== targetVersion)) // error if any explicit versions don't match the target version\n return false;\n toolsInUse.forEach((tool)=>{\n opts[tool] = targetVersion;\n });\n return true;\n}\n\n\n\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $59102f0f5954cddd$exports = {};\n\"use strict\";\nObject.defineProperty($59102f0f5954cddd$exports, \"__esModule\", {\n value: true\n});\n$59102f0f5954cddd$exports.getUbuntuVersion = void 0;\n\nfunction $59102f0f5954cddd$var$isSystemError(e) {\n return \"errno\" in e;\n}\nfunction $59102f0f5954cddd$var$command(exe, args) {\n return new Promise((resolve, reject)=>{\n $d7DIX$child_process.execFile(exe, args, {\n encoding: \"utf8\",\n shell: false\n }, (error, stdout, stderr)=>{\n if (error) {\n if ($59102f0f5954cddd$var$isSystemError(error) && error.code === \"ENOENT\") {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(\" \")}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function $59102f0f5954cddd$var$getUbuntuVersion() {\n if (process.platform !== \"linux\") return [];\n const stdout = await $59102f0f5954cddd$var$command(\"lsb_release\", [\n \"-a\"\n ]);\n if (stdout === null) return [];\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split(\"\\n\")){\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== \"Ubuntu\") return [];\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) description = desc;\n const rel = line.match(reRelease);\n if (rel) release = rel;\n if (distributorFound && description && release) break;\n }\n if (!distributorFound) return [];\n for (const m of [\n description,\n release\n ])if (m) {\n const ss = [\n m[1],\n m[2]\n ];\n if (m[3]) ss.push(m[3]);\n return ss.map((s)=>parseInt(s, 10));\n }\n return [];\n}\n$59102f0f5954cddd$exports.getUbuntuVersion = $59102f0f5954cddd$var$getUbuntuVersion; //# sourceMappingURL=index.js.map\n\n\n\n\n\nasync function $d6a4ad0ff65d0a5e$var$ubuntuVersion_raw() {\n try {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"lsb_release\", {\n nothrow: true\n }) === null) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"lsb-release\"\n }\n ]);\n } catch {\n return $d6a4ad0ff65d0a5e$var$detectUsingOsVersion();\n }\n const versionSplitted = await (0, $59102f0f5954cddd$exports.getUbuntuVersion)();\n if (versionSplitted.length === 0) return $d6a4ad0ff65d0a5e$var$detectUsingOsVersion();\n return versionSplitted;\n } else return null;\n } catch (err) {\n (0, $ER74K.warning)(err.toString());\n return null;\n }\n}\nconst $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee = (0, $429c83835ea21620$export$2e2bcd8739ae039)($d6a4ad0ff65d0a5e$var$ubuntuVersion_raw, {\n isPromise: true\n});\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */ function $d6a4ad0ff65d0a5e$var$detectUsingOsVersion() {\n if (!(\"version\" in (0, ($parcel$interopDefault($d7DIX$os))) && typeof (0, ($parcel$interopDefault($d7DIX$os))).version === \"function\")) return null;\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = (0, ($parcel$interopDefault($d7DIX$os))).version();\n const versionSplitted = osVersion.split(\".\");\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10);\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10);\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10);\n return [\n majorVersion,\n minorVersion,\n patchVersion\n ];\n}\n\n\n\n\n\nasync function $cfebcec0830c9a7b$export$4020cb77ffa3ffac(name, version, options = {}) {\n return $cfebcec0830c9a7b$export$7c60aea099ad1c1d(await $cfebcec0830c9a7b$var$getPython(), name, version, options);\n}\nasync function $cfebcec0830c9a7b$export$7c60aea099ad1c1d(givenPython, name, version, options = {}) {\n const { usePipx: usePipx = true, user: user = true, upgrade: upgrade = false, isLibrary: isLibrary = false } = options;\n const isPipx = usePipx && !isLibrary && await $cfebcec0830c9a7b$export$ffe24b8e86dbc863(givenPython);\n const pip = isPipx ? \"pipx\" : \"pip\";\n const hasPackage = await $cfebcec0830c9a7b$var$pipHasPackage(givenPython, name);\n if (hasPackage) try {\n (0, $4t50X.info)(`Installing ${name} ${version ?? \"\"} via ${pip}`);\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name;\n const upgradeFlag = upgrade ? isPipx ? [\n \"upgrade\"\n ] : [\n \"install\",\n \"--upgrade\"\n ] : [\n \"install\"\n ];\n const userFlag = !isPipx && user ? [\n \"--user\"\n ] : [];\n const env = process.env;\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await $cfebcec0830c9a7b$var$getPipxHome();\n env.PIPX_BIN_DIR = await $cfebcec0830c9a7b$var$getPipxBinDir();\n }\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)(givenPython, [\n \"-m\",\n pip,\n ...upgradeFlag,\n ...userFlag,\n nameAndVersion\n ], {\n stdio: \"inherit\",\n env: env\n });\n } catch (err) {\n (0, $4t50X.info)(`Failed to install ${name} via ${pip}: ${err}.`);\n if (await $cfebcec0830c9a7b$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} via ${pip}: ${err}.`);\n }\n else {\n if (await $cfebcec0830c9a7b$export$6de3fef38027e326(name) === null) throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`);\n }\n const execPaths = await (0, $ae5265b0f840d575$export$4bf645347c3b7001)(givenPython);\n const binDir = await $cfebcec0830c9a7b$var$findBinDir(execPaths, name);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n}\nasync function $cfebcec0830c9a7b$export$ffe24b8e86dbc863(givenPython) {\n return (await (0, $54908482e02f4b6d$export$db6b1668e3758717)(givenPython, [\n \"-m\",\n \"pipx\",\n \"--help\"\n ], {\n stdio: \"ignore\",\n reject: false\n })).exitCode === 0;\n}\nasync function $cfebcec0830c9a7b$var$getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME;\n if (pipxHome !== undefined) return pipxHome;\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/pipx\");\n if (await (0, $kY0n1.pathExists)(compatHome)) return compatHome;\n switch(process.platform){\n case \"win32\":\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/AppData/Local/pipx\");\n break;\n case \"darwin\":\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/Library/Application Support/pipx\");\n break;\n default:\n pipxHome = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/share/pipx\");\n break;\n }\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)(pipxHome);\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"trash\"));\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"shared\"));\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)((0, $bzNgi.join)(pipxHome, \"venv\"));\n return pipxHome;\n}\nconst $cfebcec0830c9a7b$var$getPipxHome = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPipxHome_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) return process.env.PIPX_BIN_DIR;\n const pipxBinDir = (0, $cc03115747abd396$export$8312d9eeba321950)(\"~/.local/bin\");\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(pipxBinDir);\n await (0, $08f425779d18d4ec$export$fd6858aa0f578dc7)(pipxBinDir);\n return pipxBinDir;\n}\nconst $cfebcec0830c9a7b$var$getPipxBinDir = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPipxBinDir_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$getPython_raw() {\n const pythonBin = (await (0, $ae5265b0f840d575$export$2b0b68e9df3d4a02)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"python\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", process.arch)).bin;\n if (pythonBin === undefined) throw new Error(\"Python binary was not found\");\n return pythonBin;\n}\nconst $cfebcec0830c9a7b$var$getPython = (0, $429c83835ea21620$export$2e2bcd8739ae039)($cfebcec0830c9a7b$var$getPython_raw, {\n isPromise: true\n});\nasync function $cfebcec0830c9a7b$var$pipHasPackage(python, name) {\n const result = await (0, $54908482e02f4b6d$export$db6b1668e3758717)(python, [\n \"-m\",\n \"pip\",\n \"-qq\",\n \"index\",\n \"versions\",\n name\n ], {\n stdio: \"ignore\",\n reject: false\n });\n return result.exitCode === 0;\n}\nasync function $cfebcec0830c9a7b$var$findBinDir(dirs, name) {\n const exists = await Promise.all(dirs.map((dir)=>(0, $kY0n1.pathExists)((0, $bzNgi.join)(dir, (0, $bzNgi.addExeExt)(name)))));\n const dirIndex = exists.findIndex((exist)=>exist);\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex];\n return foundDir;\n }\n const whichDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync((0, $bzNgi.addExeExt)(name), {\n nothrow: true\n });\n if (whichDir !== null) return (0, $bzNgi.dirname)(whichDir);\n return dirs[dirs.length - 1];\n}\nfunction $cfebcec0830c9a7b$export$6de3fef38027e326(name, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n (0, $4t50X.info)(`Installing ${name} via the system package manager`);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(addPythonPrefix ? `python-${name}` : name);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: addPythonPrefix ? `python3-${name}` : name\n }\n ]);\n }\n return null;\n}\n\n\nfunction $928be18130bb437a$export$249d0c7d779d362f(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"conan\", version);\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $6f659008f4a1ac73$export$13d77464c548b5d3(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"cppcheck\", version);\n const binDir = await $6f659008f4a1ac73$var$activateWinCppcheck();\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"cppcheck\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"cppcheck\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"ccache\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"cppcheck\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $6f659008f4a1ac73$var$activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\nasync function $9f6a19f1eee9e3b6$export$b885bd977caaafb9(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"graphviz\", version);\n return $9f6a19f1eee9e3b6$var$activateGraphviz();\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"graphviz\", version);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"graphviz\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"graphviz\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $9f6a19f1eee9e3b6$var$activateGraphviz() {\n switch(process.platform){\n case \"win32\":\n {\n const binDir = \"C:/Program Files/Graphviz/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\n\n\n\n\nconst $3860300c8c0fdc48$var$nameMap = new Map([\n [\n 23,\n [\n \"Sonoma\",\n \"14\"\n ]\n ],\n [\n 22,\n [\n \"Ventura\",\n \"13\"\n ]\n ],\n [\n 21,\n [\n \"Monterey\",\n \"12\"\n ]\n ],\n [\n 20,\n [\n \"Big Sur\",\n \"11\"\n ]\n ],\n [\n 19,\n [\n \"Catalina\",\n \"10.15\"\n ]\n ],\n [\n 18,\n [\n \"Mojave\",\n \"10.14\"\n ]\n ],\n [\n 17,\n [\n \"High Sierra\",\n \"10.13\"\n ]\n ],\n [\n 16,\n [\n \"Sierra\",\n \"10.12\"\n ]\n ],\n [\n 15,\n [\n \"El Capitan\",\n \"10.11\"\n ]\n ],\n [\n 14,\n [\n \"Yosemite\",\n \"10.10\"\n ]\n ],\n [\n 13,\n [\n \"Mavericks\",\n \"10.9\"\n ]\n ],\n [\n 12,\n [\n \"Mountain Lion\",\n \"10.8\"\n ]\n ],\n [\n 11,\n [\n \"Lion\",\n \"10.7\"\n ]\n ],\n [\n 10,\n [\n \"Snow Leopard\",\n \"10.6\"\n ]\n ],\n [\n 9,\n [\n \"Leopard\",\n \"10.5\"\n ]\n ],\n [\n 8,\n [\n \"Tiger\",\n \"10.4\"\n ]\n ],\n [\n 7,\n [\n \"Panther\",\n \"10.3\"\n ]\n ],\n [\n 6,\n [\n \"Jaguar\",\n \"10.2\"\n ]\n ],\n [\n 5,\n [\n \"Puma\",\n \"10.1\"\n ]\n ]\n]);\nfunction $3860300c8c0fdc48$export$2e2bcd8739ae039(release) {\n release = Number((release || (0, ($parcel$interopDefault($d7DIX$nodeos))).release()).split(\".\")[0]);\n const [name, version] = $3860300c8c0fdc48$var$nameMap.get(release) || [\n \"Unknown\",\n \"\"\n ];\n return {\n name: name,\n version: version\n };\n}\n\n\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */ function $baa90ea94af07c06$var$macosVersion_raw() {\n if (process.platform !== \"darwin\") return [];\n const { version: version } = (0, $3860300c8c0fdc48$export$2e2bcd8739ae039)();\n return version.split(\".\").map((v)=>parseInt(v, 10));\n}\nconst $baa90ea94af07c06$export$b16fc932ee62ae86 = (0, $429c83835ea21620$export$2e2bcd8739ae039)($baa90ea94af07c06$var$macosVersion_raw);\n\n\n\n\n\nasync function $4e7ff62cf3fa94e2$export$9beb52a1d6d0b068(path, destDir) {\n const { ArchiveHdi: ArchiveHdi } = await (parcelRequire(\"2tlzJ\"));\n const dmg = new ArchiveHdi(path);\n await dmg.read(async (entry)=>{\n await entry.extract((0, $d7DIX$path.join)(destDir, entry.path));\n });\n}\n\n\n\n/** Get the platform data for cmake */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $4b1f70d03c91cebd$var$getDoxygenPackageInfo(version, platform, _arch) {\n switch(platform){\n case \"linux\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $0106ac245720b572$exports.extractTar),\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`\n };\n }\n case \"win32\":\n {\n const folderName = `doxygen-${version}`;\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`\n };\n }\n case \"darwin\":\n {\n const folderName = `Doxygen-${version}`;\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: (0, $bzNgi.addExeExt)(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: (0, $4e7ff62cf3fa94e2$export$9beb52a1d6d0b068),\n url: `https://doxygen.nl/files/${folderName}.dmg`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $4b1f70d03c91cebd$export$b6e6613a954051ee(version, setupDir, arch) {\n switch(process.platform){\n case \"win32\":\n {\n // try to download the package 4 times with 2 seconds delay\n await (0, (/*@__PURE__*/$parcel$interopDefault($9a76aa2467c494ea$exports)))(()=>{\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"doxygen.install\", version);\n }, {\n name: \"doxygen.install\",\n max: 4,\n backoffBase: 2000,\n report: (err)=>(0, $ER74K.info)(err)\n });\n const binDir = await $4b1f70d03c91cebd$var$activateWinDoxygen();\n const installationInfo = {\n binDir: binDir\n };\n await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"darwin\":\n {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"doxygen\", undefined);\n // }\n // only install graphviz if the macOS version is greater than 11\n if ((0, $baa90ea94af07c06$export$b16fc932ee62ae86)()[0] > 11) await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined), \"\", arch);\n return installationInfo;\n }\n case \"linux\":\n {\n let installationInfo;\n if (version === \"\" || (0, $84785c71f430250a$export$d415ddb6702ec3a2)() || (0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"doxygen\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"doxygen\",\n version: version\n }\n ]);\n else throw new Error(`Unsupported linux distributions`);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"doxygen\", version, $4b1f70d03c91cebd$var$getDoxygenPackageInfo, setupDir, arch);\n try {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libclang-cpp9\"\n }\n ]);\n } catch (err) {\n (0, $ER74K.info)(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`);\n }\n } catch (err) {\n (0, $ER74K.notice)(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`);\n installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"doxygen\"\n }\n ]);\n }\n else throw new Error(`Unsupported linux distributions`);\n await (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"graphviz\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", arch);\n return installationInfo;\n }\n default:\n throw new Error(`Unsupported platform`);\n }\n}\nasync function $4b1f70d03c91cebd$var$activateWinDoxygen() {\n switch(process.platform){\n case \"win32\":\n for (const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\"\n ])// eslint-disable-next-line no-await-in-loop\n if (await (0, $kY0n1.pathExists)((0, $bzNgi.join)(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n }\n throw new Error(\"Failed to find doxygen binary\");\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $l8hao = parcelRequire(\"l8hao\");\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $1f6JF = parcelRequire(\"1f6JF\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nasync function $1ebfc945e4f5b17a$export$28f5fd35e3005b7a() {\n if (process.platform === \"darwin\") try {\n const xcrun = await (0, $1f6JF.getExecOutput)(\"xcrun --sdk macosx --show-sdk-path\");\n const sdkroot = xcrun.stdout || xcrun.stderr;\n if (sdkroot) await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"SDKROOT\", sdkroot.trim());\n else (0, $ER74K.error)(`SDKROOT not set`);\n } catch (e) {\n (0, $ER74K.error)(e);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $bd769018416dc7f2$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/gcc\");\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst $bd769018416dc7f2$var$GccToMingwInfo = {\n \"13\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.2-ucrt-mcf\": {\n releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\",\n fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\"\n },\n \"13.2-msvcrt\": {\n releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\",\n fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"13.1-ucrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"13.1-msvcrt\": {\n releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\",\n fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-ucrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\"\n },\n \"12.3.0-msvcrt\": {\n releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\",\n fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\"\n },\n \"12.2.0-ucrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.2.0-msvcrt\": {\n releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\",\n fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\"\n },\n \"12.1.0-ucrt\": {\n releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\",\n fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\"\n },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-ucrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\"\n },\n \"11.3.0-msvcrt\": {\n releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\",\n fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\"\n },\n \"11.2.0-ucrt\": {\n releaseName: \"11.2.0-9.0.0-ucrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\"\n },\n \"11.2.0-msvcrt\": {\n releaseName: \"11.2.0-9.0.0-msvcrt-r5\",\n fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\"\n },\n \"10\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.5.0-msvcrt\": {\n releaseName: \"10.5.0-11.0.1-msvcrt-r1\",\n fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\"\n },\n \"10.3.0\": {\n releaseName: \"10.3.0-12.0.0-9.0.0-r2\",\n fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\"\n },\n \"10.2.0\": {\n releaseName: \"10.2.0-7.0.0-r4\",\n fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\"\n },\n \"9\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n },\n \"9.4.0\": {\n releaseName: \"9.4.0-9.0.0-r1\",\n fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\"\n }\n};\nfunction $bd769018416dc7f2$var$getGccPackageInfo(version, platform, arch) {\n switch(platform){\n case \"win32\":\n {\n const mingwInfo = $bd769018416dc7f2$var$GccToMingwInfo[version];\n if (mingwInfo === undefined) throw new Error(`mingw version ${version} is not supported`);\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\";\n const exceptionModel = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n ;\n return {\n binRelativeDir: \"bin/\",\n binFileName: (0, $bzNgi.addExeExt)(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: (0, $4615baf4c3b031c2$export$eecfe186811d4a20),\n url: `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`\n };\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\nasync function $bd769018416dc7f2$export$405fab3de79b77b(version, setupDir, arch, priority = 40) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n if (arch === \"arm\" || arch === \"arm64\") await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"gcc-arm-embedded\", version);\n try {\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"g++\", version, $bd769018416dc7f2$var$getGccPackageInfo, setupDir, arch);\n } catch (err) {\n (0, $ER74K.info)(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`);\n installationInfo = await $bd769018416dc7f2$var$setupChocoMingw(version, arch);\n }\n break;\n case \"darwin\":\n installationInfo = await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"gcc\", version);\n break;\n case \"linux\":\n if (arch === \"x64\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"gcc\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"gcc\",\n version: version\n },\n {\n name: \"gcc-c++\",\n version: version\n },\n {\n name: \"libstdc++-devel\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"gcc\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n },\n {\n name: \"g++\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n } else {\n (0, $ER74K.info)(`Install g++-multilib because gcc for ${arch} was requested`);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"gcc-multilib\", version);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"gcc-multilib\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n }\n break;\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) {\n await $bd769018416dc7f2$var$activateGcc(version, installationInfo.binDir, priority);\n return installationInfo;\n }\n return undefined;\n}\nasync function $bd769018416dc7f2$export$f115c01d224b9e9a(version, setupDir, arch) {\n let installationInfo;\n switch(process.platform){\n case \"win32\":\n case \"darwin\":\n return $bd769018416dc7f2$export$405fab3de79b77b(version, setupDir, arch);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) installationInfo = await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"mingw-w64-gcc\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) installationInfo = await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"mingw64-gcc\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) installationInfo = await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"mingw-w64\",\n version: version,\n repositories: [\n \"ppa:ubuntu-toolchain-r/test\"\n ]\n }\n ]);\n break;\n default:\n throw new Error(`Unsupported platform for ${arch}`);\n }\n if (installationInfo !== undefined) // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo;\n return undefined;\n}\nasync function $bd769018416dc7f2$var$setupChocoMingw(version, arch) {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"mingw\", version);\n let binDir;\n if (arch === \"x64\" && await (0, $kY0n1.pathExists)(\"C:/tools/mingw64/bin\")) {\n binDir = \"C:/tools/mingw64/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n } else if (arch === \"ia32\" && await (0, $kY0n1.pathExists)(\"C:/tools/mingw32/bin\")) {\n binDir = \"C:/tools/mingw32/bin\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n } else if (await (0, $kY0n1.pathExists)(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`;\n if (binDir !== undefined) return {\n binDir: binDir\n };\n return undefined;\n}\nasync function $bd769018416dc7f2$var$activateGcc(version, binDir, priority = 40) {\n const promises = [];\n // Setup gcc as the compiler\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n if (process.platform === \"win32\") promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", (0, $bzNgi.addExeExt)(`${binDir}/gcc`)), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", (0, $bzNgi.addExeExt)(`${binDir}/g++`)));\n else {\n const majorVersion = (0, (/*@__PURE__*/$parcel$interopDefault($2aJGP)))((0, (/*@__PURE__*/$parcel$interopDefault($l8hao)))(version) ?? version);\n if (majorVersion >= 5) {\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${majorVersion}`), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${majorVersion}`));\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) promises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${majorVersion}`, priority));\n } else {\n promises.push((0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", `${binDir}/gcc-${version}`), (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", `${binDir}/g++-${version}`));\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) promises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${binDir}/gcc-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${binDir}/g++-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"gcc\", `${binDir}/gcc-${version}`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"g++\", `${binDir}/g++-${version}`, priority));\n }\n }\n promises.push((0, $1ebfc945e4f5b17a$export$28f5fd35e3005b7a)());\n if (0, $52cQ1.GITHUB_ACTIONS) await $bd769018416dc7f2$var$addGccLoggingMatcher();\n await Promise.all(promises);\n}\nasync function $bd769018416dc7f2$var$addGccLoggingMatcher() {\n const matcherPath = (0, $bzNgi.join)($bd769018416dc7f2$var$$parcel$__dirname, \"gcc_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\nvar $2aJGP = parcelRequire(\"2aJGP\");\n\nvar $l655J = parcelRequire(\"l655J\");\n\n\nfunction $9e5689f497201ccc$export$b98d69f362caf61f(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"gcovr\", version);\n}\nfunction $9e5689f497201ccc$export$2a0488baf2a20c0f() {\n return (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"GCOV\", \"llvm-cov gcov\");\n}\nfunction $9e5689f497201ccc$export$41dabde4775ee2aa(gccVersion) {\n const gccSemver = (0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(gccVersion);\n const gccMajor = gccSemver !== null ? (0, (/*@__PURE__*/$parcel$interopDefault($2aJGP)))(gccSemver) : gccVersion;\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\";\n return (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"GCOV\", gcov);\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/** Get the platform name Ninja uses in their download links */ function $c8e436f083063bf5$var$getNinjaPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"win\";\n case \"darwin\":\n return \"mac\";\n case \"linux\":\n return \"linux\";\n default:\n throw new Error(`Unsupported platform '${platform}'`);\n }\n}\n/** Get the platform data for ninja */ // eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction $c8e436f083063bf5$var$getNinjaPackageInfo(version, platform, _arch) {\n const ninjaPlatform = $c8e436f083063bf5$var$getNinjaPlatform(platform);\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: (0, $4615baf4c3b031c2$export$6411c5cbab21135b),\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`\n };\n}\nfunction $c8e436f083063bf5$export$e6190f4bfe2ef71(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"ninja\", version, $c8e436f083063bf5$var$getNinjaPackageInfo, setupDir, arch);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $a32e41fd6d9c05e4$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/kcov\");\nfunction $a32e41fd6d9c05e4$var$getDownloadKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: (0, $bzNgi.addExeExt)(\"kcov\"),\n extractFunction: (0, $4615baf4c3b031c2$export$2ab07ac150064014)\n };\n}\nfunction $a32e41fd6d9c05e4$var$getBuildKcovPackageInfo(version) {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: (0, $bzNgi.addExeExt)(\"kcov\"),\n extractFunction: $a32e41fd6d9c05e4$var$buildKcov\n };\n}\nasync function $a32e41fd6d9c05e4$var$buildKcov(file, dest) {\n const out = await (0, $4615baf4c3b031c2$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n // build after extraction using CMake\n const cmake = await $a32e41fd6d9c05e4$var$getCmake();\n if (process.platform === \"linux\") {\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"libdwarf\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"libcurl-openssl\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"libdwarf-devel\"\n },\n {\n name: \"libcurl-devel\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libdw-dev\"\n },\n {\n name: \"libcurl4-openssl-dev\"\n }\n ]);\n }\n // apply gcc13.patch\n try {\n if ((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"patch\", {\n nothrow: true\n }) !== null) {\n const patch = (0, $bzNgi.join)($a32e41fd6d9c05e4$var$$parcel$__dirname, \"gcc13.patch\");\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"patch\", [\n \"-N\",\n \"-p1\",\n \"-i\",\n patch\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n } else (0, $ER74K.info)(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\");\n } catch {\n // ignore\n }\n const buildDir = (0, $bzNgi.join)(out, \"build\");\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(cmake, [\n \"-S\",\n out,\n \"-B\",\n buildDir,\n \"-DCMAKE_BUILD_TYPE=Release\",\n \"-G\",\n \"Ninja\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(cmake, [\n \"--build\",\n buildDir,\n \"--config\",\n \"Release\"\n ], {\n cwd: out,\n stdio: \"inherit\"\n });\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out;\n}\nasync function $a32e41fd6d9c05e4$var$getCmake() {\n let cmake = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"cmake\", {\n nothrow: true\n });\n if (cmake === null) {\n const { binDir: binDir } = await (0, $cd6a37a8a2760b1d$export$c28663a621f418ce)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"cmake\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), (0, $bzNgi.join)((0, $cc03115747abd396$export$8312d9eeba321950)(\"~\"), \"cmake\"), \"\");\n cmake = (0, $bzNgi.join)(binDir, \"cmake\");\n }\n const ninja = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"ninja\", {\n nothrow: true\n });\n if (ninja === null) await (0, $c8e436f083063bf5$export$e6190f4bfe2ef71)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"ninja\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), (0, $bzNgi.join)((0, $cc03115747abd396$export$8312d9eeba321950)(\"~\"), \"ninja\"), \"\");\n return cmake;\n}\nasync function $a32e41fd6d9c05e4$export$abb7c2ff987b1f6b(versionGiven, setupDir, arch) {\n if (process.platform !== \"linux\") {\n (0, $ER74K.info)(\"Kcov is not supported on non-linux\");\n return;\n }\n // parse version\n const versionSplit = versionGiven.split(\"-\");\n let version = (0, $5683decf99cdafe6$export$6863a97504984656)(versionSplit[0]);\n const installMethod = versionSplit[1];\n const version_number = (0, $5683decf99cdafe6$export$b19007c0050a2fcc)(version);\n // fix inconsistency in tagging\n if (version_number === 38) version = \"v38\";\n let installationInfo;\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"kcov\", version, $a32e41fd6d9c05e4$var$getDownloadKcovPackageInfo, setupDir, arch);\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"binutils\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"binutils\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libbinutils\"\n }\n ]);\n return installationInfo;\n } else installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"kcov\", version, $a32e41fd6d9c05e4$var$getBuildKcovPackageInfo, setupDir, arch);\n return installationInfo;\n}\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\nclass $b9333a802c23edcc$export$66d311bf29d5c89c extends Error {\n constructor(message){\n super(message);\n this.name = \"TimeoutError\";\n }\n}\nclass $b9333a802c23edcc$export$18b052ffd8c84d7 extends Error {\n constructor(message){\n super();\n this.name = \"AbortError\";\n this.message = message;\n }\n}\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/ const $b9333a802c23edcc$var$getDOMException = (errorMessage)=>globalThis.DOMException === undefined ? new $b9333a802c23edcc$export$18b052ffd8c84d7(errorMessage) : new DOMException(errorMessage);\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/ const $b9333a802c23edcc$var$getAbortedReason = (signal)=>{\n const reason = signal.reason === undefined ? $b9333a802c23edcc$var$getDOMException(\"This operation was aborted.\") : signal.reason;\n return reason instanceof Error ? reason : $b9333a802c23edcc$var$getDOMException(reason);\n};\nfunction $b9333a802c23edcc$export$2e2bcd8739ae039(promise, options) {\n const { milliseconds: milliseconds, fallback: fallback, message: message, customTimers: customTimers = {\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n } } = options;\n let timer;\n const wrappedPromise = new Promise((resolve, reject)=>{\n if (typeof milliseconds !== \"number\" || Math.sign(milliseconds) !== 1) throw new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n if (options.signal) {\n const { signal: signal } = options;\n if (signal.aborted) reject($b9333a802c23edcc$var$getAbortedReason(signal));\n signal.addEventListener(\"abort\", ()=>{\n reject($b9333a802c23edcc$var$getAbortedReason(signal));\n });\n }\n if (milliseconds === Number.POSITIVE_INFINITY) {\n promise.then(resolve, reject);\n return;\n }\n // We create the error outside of `setTimeout` to preserve the stack trace.\n const timeoutError = new $b9333a802c23edcc$export$66d311bf29d5c89c();\n timer = customTimers.setTimeout.call(undefined, ()=>{\n if (fallback) {\n try {\n resolve(fallback());\n } catch (error) {\n reject(error);\n }\n return;\n }\n if (typeof promise.cancel === \"function\") promise.cancel();\n if (message === false) resolve();\n else if (message instanceof Error) reject(message);\n else {\n timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n reject(timeoutError);\n }\n }, milliseconds);\n (async ()=>{\n try {\n resolve(await promise);\n } catch (error) {\n reject(error);\n }\n })();\n });\n const cancelablePromise = wrappedPromise.finally(()=>{\n cancelablePromise.clear();\n });\n cancelablePromise.clear = ()=>{\n customTimers.clearTimeout.call(undefined, timer);\n timer = undefined;\n };\n return cancelablePromise;\n}\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\n\nvar $ER74K = parcelRequire(\"ER74K\");\nvar $832772e652e526f0$export$3c7cae5a162b1458;\nvar $832772e652e526f0$export$704f0be24425353b;\nvar $832772e652e526f0$export$f49c12d2898d28cb;\nvar $832772e652e526f0$export$a6a3bfb882356813;\nvar $832772e652e526f0$export$443b8bb890f5027e;\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\n\n\n\nconst $832772e652e526f0$var$PROGRAM_FILES_X86 = $d7DIX$process.env[\"ProgramFiles(x86)\"];\nconst $832772e652e526f0$var$PROGRAM_FILES = [\n $d7DIX$process.env[\"ProgramFiles(x86)\"],\n $d7DIX$process.env[\"ProgramFiles\"]\n];\nconst $832772e652e526f0$var$EDITIONS = [\n \"Enterprise\",\n \"Professional\",\n \"Community\",\n \"BuildTools\"\n];\nconst $832772e652e526f0$var$YEARS = [\n \"2022\",\n \"2019\",\n \"2017\"\n];\nconst $832772e652e526f0$var$VsYearVersion = {\n \"2022\": \"17.0\",\n \"2019\": \"16.0\",\n \"2017\": \"15.0\",\n \"2015\": \"14.0\",\n \"2013\": \"12.0\"\n};\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */ function $832772e652e526f0$var$vsversion_to_versionnumber(vsversion) {\n if (Object.values($832772e652e526f0$var$VsYearVersion).includes(vsversion)) return vsversion;\n else {\n if (vsversion in $832772e652e526f0$var$VsYearVersion) return $832772e652e526f0$var$VsYearVersion[vsversion];\n }\n return vsversion;\n}\n$832772e652e526f0$export$3c7cae5a162b1458 = $832772e652e526f0$var$vsversion_to_versionnumber;\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */ function $832772e652e526f0$var$vsversion_to_year(vsversion) {\n if (Object.keys($832772e652e526f0$var$VsYearVersion).includes(vsversion)) return vsversion;\n else for (const [year, ver] of Object.entries($832772e652e526f0$var$VsYearVersion)){\n if (ver === vsversion) return year;\n }\n return vsversion;\n}\n$832772e652e526f0$export$704f0be24425353b = $832772e652e526f0$var$vsversion_to_year;\nconst $832772e652e526f0$var$VSWHERE_PATH = `${$832772e652e526f0$var$PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`;\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */ function $832772e652e526f0$var$findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = $d7DIX$child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim();\n return installationPath + \"\\\\\" + pattern;\n } catch (e) {\n $4t50X.warning(`vswhere failed: ${e}`);\n }\n return null;\n}\n$832772e652e526f0$export$f49c12d2898d28cb = $832772e652e526f0$var$findWithVswhere;\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */ function $832772e652e526f0$var$findVcvarsall(vsversion) {\n const vsversion_number = $832772e652e526f0$var$vsversion_to_versionnumber(vsversion);\n let version_pattern;\n if (vsversion_number) {\n const upper_bound = vsversion_number.split(\".\")[0] + \".9\";\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`;\n } else version_pattern = \"-latest\";\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = $832772e652e526f0$var$findWithVswhere(\"VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat\", version_pattern);\n if (path && $d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found with vswhere: ${path}`);\n return path;\n }\n $4t50X.info(\"Not found with vswhere\");\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [\n $832772e652e526f0$var$vsversion_to_year(vsversion)\n ] : $832772e652e526f0$var$YEARS;\n for (const prog_files of $832772e652e526f0$var$PROGRAM_FILES){\n for (const ver of years)for (const ed of $832772e652e526f0$var$EDITIONS){\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`;\n $4t50X.info(`Trying standard location: ${path}`);\n if ($d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found standard location: ${path}`);\n return path;\n }\n }\n }\n $4t50X.info(\"Not found in standard locations\");\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${$832772e652e526f0$var$PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`;\n if ($d7DIX$fs.existsSync(path)) {\n $4t50X.info(`Found VS 2015: ${path}`);\n return path;\n }\n $4t50X.info(`Not found in VS 2015 location: ${path}`);\n throw new Error(\"Microsoft Visual Studio not found\");\n}\n$832772e652e526f0$export$a6a3bfb882356813 = $832772e652e526f0$var$findVcvarsall;\nfunction $832772e652e526f0$var$isPathVariable(name) {\n const pathLikeVariables = [\n \"PATH\",\n \"INCLUDE\",\n \"LIB\",\n \"LIBPATH\"\n ];\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1;\n}\nfunction $832772e652e526f0$var$filterPathValue(path) {\n let paths = path.split(\";\");\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index;\n }\n return paths.filter(unique).join(\";\");\n}\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */ function $832772e652e526f0$var$setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if ($d7DIX$process.platform != \"win32\") {\n $4t50X.info(\"This is not a Windows virtual environment, bye!\");\n return;\n }\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n $d7DIX$process.env.PATH += $d7DIX$path.delimiter + $832772e652e526f0$var$VSWHERE_PATH;\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\"\n };\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) arch = arch_aliases[arch.toLowerCase()];\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n var args = [\n arch\n ];\n if (uwp && JSON.parse(uwp) === true) args.push(\"uwp\");\n if (sdk) args.push(sdk);\n if (toolset) args.push(`-vcvars_ver=${toolset}`);\n if (spectre && JSON.parse(spectre) === true) args.push(\"-vcvars_spectre_libs=spectre\");\n const vcvars = `\"${$832772e652e526f0$var$findVcvarsall(vsversion)}\" ${args.join(\" \")}`;\n $4t50X.debug(`vcvars command-line: ${vcvars}`);\n const cmd_output_string = $d7DIX$child_process.execSync(`set && cls && ${vcvars} && cls && set`, {\n shell: \"cmd\"\n }).toString();\n const cmd_output_parts = cmd_output_string.split(\"\\f\");\n const old_environment = cmd_output_parts[0].split(\"\\r\\n\");\n const vcvars_output = cmd_output_parts[1].split(\"\\r\\n\");\n const new_environment = cmd_output_parts[2].split(\"\\r\\n\");\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line)=>{\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) return true;\n }\n return false;\n });\n if (error_messages.length > 0) throw new Error(\"invalid parameters\\r\\n\" + error_messages.join(\"\\r\\n\"));\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {};\n for (let string of old_environment){\n const [name, value] = string.split(\"=\");\n old_env_vars[name] = value;\n }\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n $4t50X.startGroup(\"Environment variables\");\n for (let string of new_environment){\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes(\"=\")) continue;\n let [name, new_value] = string.split(\"=\");\n let old_value = old_env_vars[name];\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n $4t50X.info(`Setting ${name}`);\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if ($832772e652e526f0$var$isPathVariable(name)) new_value = $832772e652e526f0$var$filterPathValue(new_value);\n $4t50X.exportVariable(name, new_value);\n }\n }\n $4t50X.endGroup();\n $4t50X.info(`Configured Developer Command Prompt`);\n}\n$832772e652e526f0$export$443b8bb890f5027e = $832772e652e526f0$var$setupMSVCDevCmd;\n\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nfunction $ffa3775f67868b5f$var$getArch(arch) {\n switch(arch){\n case \"x32\":\n case \"32\":\n case \"ia32\":\n return \"x86\";\n case \"64\":\n return \"x64\";\n default:\n return arch;\n }\n}\nasync function $ffa3775f67868b5f$export$5dcf571c91fc8369(vsversion, VCTargetsPath, arch, toolset, sdk, uwp, spectre) {\n if (VCTargetsPath !== undefined && await (0, $kY0n1.pathExists)(VCTargetsPath)) {\n (0, $ER74K.info)(`Adding ${VCTargetsPath} to PATH`);\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"VCTargetsPath\", VCTargetsPath);\n }\n await (0, $832772e652e526f0$export$443b8bb890f5027e)($ffa3775f67868b5f$var$getArch(arch), sdk, toolset, uwp, spectre, vsversion);\n}\n\n\n\nconst $38b6fc81fd22ef04$export$7bd623b29ec8e1eb = 1200000 // 20 minutes\n;\nasync function $38b6fc81fd22ef04$export$ddb4b945c8581272(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, timeout = $38b6fc81fd22ef04$export$7bd623b29ec8e1eb) {\n (0, $4t50X.startGroup)(`Installing ${tool} ${version}`);\n let hasLLVM = false;\n try {\n hasLLVM = await (0, $b9333a802c23edcc$export$2e2bcd8739ae039)($38b6fc81fd22ef04$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`\n });\n } catch (e) {\n // push error message to the logger\n (0, $ER74K.error)(e);\n errorMessages.push(`${tool} failed to install`);\n }\n (0, $4t50X.endGroup)();\n return hasLLVM;\n}\nasync function $38b6fc81fd22ef04$var$installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages) {\n let installationInfo;\n if (tool === \"vcvarsall\") // eslint-disable-next-line no-await-in-loop\n await (0, $ffa3775f67868b5f$export$5dcf571c91fc8369)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(tool, version, osVersion), undefined, arch, undefined, undefined, false, false);\n else {\n // get the setup function\n const setupFunction = (0, $f58f76cc72dbc50d$export$18a3521ac7306af4)[tool];\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\n \"llvm\",\n \"clangformat\",\n \"clangtidy\"\n ].includes(tool);\n // the tool installation directory (for the functions that ue it)\n const setupDir = (0, $bzNgi.join)(setupCppDir, hasLLVM ? \"llvm\" : tool);\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(tool, version, osVersion), setupDir, arch);\n }\n // preparing a report string\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(tool, installationInfo));\n return hasLLVM;\n}\n\n\n\n\nconst { readFile: $cf098dcb81ecb127$var$readFile, writeFile: $cf098dcb81ecb127$var$writeFile, chmod: $cf098dcb81ecb127$var$chmod } = (0, $d7DIX$fs.promises);\nvar $cf098dcb81ecb127$export$35fa309210df3df6;\n(function(LLVMPackages) {\n LLVMPackages[LLVMPackages[\"All\"] = 0] = \"All\";\n LLVMPackages[LLVMPackages[\"ClangFormat\"] = 1] = \"ClangFormat\";\n LLVMPackages[LLVMPackages[\"Core\"] = 2] = \"Core\";\n})($cf098dcb81ecb127$export$35fa309210df3df6 || ($cf098dcb81ecb127$export$35fa309210df3df6 = {}));\nasync function $cf098dcb81ecb127$export$a86791c88ded7e54(majorVersion, packages = 0) {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`;\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n await (0, $54908482e02f4b6d$export$db6b1668e3758717)(\"curl\", [\n \"-LJO\",\n \"https://apt.llvm.org/llvm.sh\"\n ], {\n cwd: \"/tmp\"\n });\n const neededPackages = await $cf098dcb81ecb127$var$patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages);\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)(neededPackages);\n await $cf098dcb81ecb127$var$chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\");\n await (0, $4467f131fc22cbb2$export$351270479e2eef26)(\"bash\", [\n \"/tmp/llvm-setup-cpp.sh\",\n `${majorVersion}`,\n ...packages === 0 ? [\n \"all\"\n ] : []\n ], {\n stdio: \"inherit\",\n shell: true,\n timeout: (0, $38b6fc81fd22ef04$export$7bd623b29ec8e1eb)\n });\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(`${installationFolder}/bin`);\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`\n };\n}\nasync function $cf098dcb81ecb127$var$patchAptLLVMScript(path, target_path, majorVersion, packages) {\n let script = await $cf098dcb81ecb127$var$readFile(path, \"utf-8\");\n script = $cf098dcb81ecb127$var$debugScript(script);\n script = $cf098dcb81ecb127$var$nonInteractiveScript(script);\n script = $cf098dcb81ecb127$var$choosePackages(packages, script, majorVersion);\n script = await $cf098dcb81ecb127$var$removeConflictingPackages(script);\n script = $cf098dcb81ecb127$var$useNalaScript(script);\n await $cf098dcb81ecb127$var$writeFile(target_path, script);\n // the packages needed by the script\n return [\n {\n name: \"lsb-release\"\n },\n {\n name: \"wget\"\n },\n {\n name: \"software-properties-common\"\n },\n {\n name: \"gnupg\"\n }\n ];\n}\nfunction $cf098dcb81ecb127$var$debugScript(script) {\n if (!process.env.NODE_DEBUG) return script.replace(/set -eux/g, \"set -eu\");\n return script;\n}\nfunction $cf098dcb81ecb127$var$nonInteractiveScript(script) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(/add-apt-repository \"\\${REPO_NAME}\"/g, // eslint-disable-next-line no-template-curly-in-string\n 'add-apt-repository -y \"${REPO_NAME}\"');\n}\nasync function $cf098dcb81ecb127$var$removeConflictingPackages(givenScript) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(/apt-get install -y/g, 'apt-get install -o Dpkg::Options::=\"--force-overwrite\" -y --fix-broken');\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\n \"libc++-$LLVM_VERSION-dev\",\n \"libc++abi-$LLVM_VERSION-dev\",\n \"libunwind-$LLVM_VERSION-dev\"\n ];\n await Promise.all(conflictingPackages.map(async (pack)=>{\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\");\n if (await (0, $f0410b58de32386f$export$ec2e4deaa1231ecf)(installingPack)) {\n (0, $d7DIX$console.info)(`Removing conflicting package ${installingPack}`);\n script = script.replace(pack, \"\");\n }\n }));\n return script;\n}\nfunction $cf098dcb81ecb127$var$useNalaScript(script) {\n // use nala if it is available\n if ((0, $f0410b58de32386f$export$89548d91e84ae1a1)()) return script.replace(/apt-get/g, \"nala\");\n return script;\n}\nfunction $cf098dcb81ecb127$var$choosePackages(packages, script, majorVersion) {\n if (packages === 1) return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`);\n return script;\n}\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $8aNoG = parcelRequire(\"8aNoG\");\n\n\nconst $83abdd9bf69b2f6a$export$aa5307f1aca77413 = (0, $5683decf99cdafe6$export$cbd9528a83fbffa1)([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/** The LLVM versions that were never released for the Windows platform. */ const $83abdd9bf69b2f6a$var$WIN32_MISSING = new Set([\n \"10.0.1\",\n \"15.0.5\",\n \"15.0.6\",\n \"17.0.5\"\n]);\n/** The LLVM versions that were never released for the Darwin platform. */ const $83abdd9bf69b2f6a$var$DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\"\n]);\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */ const $83abdd9bf69b2f6a$var$UBUNTU_RC = new Map();\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */ // TODO change based on ubuntu version\nconst $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\"\n};\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ const $83abdd9bf69b2f6a$var$MAX_UBUNTU = \"17.0.6\";\n// ================================================\n// URL\n// ================================================\n/** Gets a LLVM download URL for GitHub. */ function $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`;\n}\n/** Gets a LLVM download URL for https://releases.llvm.org. */ function $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix) {\n const file = `${prefix}${version}${suffix}`;\n return `https://releases.llvm.org/${version}/${file}`;\n}\n/** Gets an LLVM download URL for the Darwin platform. */ function $83abdd9bf69b2f6a$var$getDarwinUrl(version) {\n if ($83abdd9bf69b2f6a$var$DARWIN_MISSING.has(version)) return null;\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\";\n const prefix = \"clang+llvm-\";\n const suffix = `-x86_64${darwin}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\")) return $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n else return $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n}\nfunction $83abdd9bf69b2f6a$export$ae24f9682a44836b(versionGiven) {\n let version = versionGiven;\n const rc = $83abdd9bf69b2f6a$var$UBUNTU_RC.get(version);\n if (rc !== undefined) version = rc;\n let linuxVersion;\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\");\n if (!$83abdd9bf69b2f6a$export$aa5307f1aca77413.has(givenUbuntuVersion)) throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`);\n linuxVersion = version.replace(givenUbuntuVersion, \"\");\n version = (0, $5683decf99cdafe6$export$deb1064c8260c54c)($83abdd9bf69b2f6a$export$aa5307f1aca77413, givenUbuntuVersion)[0];\n } else if (version !== \"\" && version in $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP) linuxVersion = $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP[version];\n else {\n // default to the maximum version\n linuxVersion = $83abdd9bf69b2f6a$var$UBUNTU_SUFFIX_MAP[$83abdd9bf69b2f6a$var$MAX_UBUNTU];\n (0, $ER74K.warning)(`Falling back to LLVM version ${$83abdd9bf69b2f6a$var$MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`);\n }\n const prefix = \"clang+llvm-\";\n let suffix;\n if (version === \"5.0.0\") suffix = `-linux-x86_64${linuxVersion}.tar.xz`;\n else if (linuxVersion.includes(\"-rhel86\")) suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`;\n else suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`;\n if ((0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\")) return $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n else return $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n}\n/** Gets an LLVM download URL for the Windows platform. */ async function $83abdd9bf69b2f6a$var$getWin32Url(version) {\n if ($83abdd9bf69b2f6a$var$WIN32_MISSING.has(version)) return null;\n const prefix = \"LLVM-\";\n const suffix = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\";\n const olderThan9_1 = (0, (/*@__PURE__*/$parcel$interopDefault($8aNoG)))(version, \"9.0.1\");\n let url;\n let fallback = false;\n if (olderThan9_1) {\n url = $83abdd9bf69b2f6a$var$getReleaseUrl(version, prefix, suffix);\n if (!await (0, $19873b61ea31f597$export$61e6a71eee2b02f9)(url)) fallback = true // fallback to github\n ;\n }\n if (fallback || !olderThan9_1) url = $83abdd9bf69b2f6a$var$getGitHubUrl(version, prefix, suffix);\n return url;\n}\nfunction $83abdd9bf69b2f6a$export$94df0e59ebebf4a7(platform, version) {\n switch(platform){\n case \"darwin\":\n return $83abdd9bf69b2f6a$var$getDarwinUrl(version);\n case \"linux\":\n return $83abdd9bf69b2f6a$export$ae24f9682a44836b(version);\n case \"win32\":\n return $83abdd9bf69b2f6a$var$getWin32Url(version);\n default:\n return null;\n }\n}\nasync function $83abdd9bf69b2f6a$export$f203993d12226a27(version, platform, // eslint-disable-next-line @typescript-eslint/no-unused-vars\n_arch) {\n const [specificVersion, url] = await (0, $5683decf99cdafe6$export$4e4d3581f69a6d71)($83abdd9bf69b2f6a$export$aa5307f1aca77413, platform, version, $83abdd9bf69b2f6a$export$94df0e59ebebf4a7);\n (0, $ER74K.info)(`specific llvm version: ${specificVersion}`);\n return {\n url: url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: (0, $bzNgi.addExeExt)(\"clang\"),\n extractFunction: platform === \"win32\" ? (0, $4615baf4c3b031c2$export$7949938b2681a4f0) : (file, dest)=>{\n return (0, $4615baf4c3b031c2$export$2ab07ac150064014)(file, dest, [\n \"--strip-components=1\"\n ]);\n }\n };\n}\n\n\n\nvar $0213127e07869fde$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/llvm\");\nasync function $0213127e07869fde$export$3016de7ae9d14988(version, setupDir, arch) {\n const installationInfo = await $0213127e07869fde$var$setupLLVMWithoutActivation(version, setupDir, arch);\n await $0213127e07869fde$export$6238b5ebfd6640e7(installationInfo.installDir ?? setupDir);\n return installationInfo;\n}\nasync function $0213127e07869fde$var$setupLLVMWithoutActivation_raw(version, setupDir, arch) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch),\n $0213127e07869fde$var$setupLLVMDeps(arch),\n $0213127e07869fde$var$addLLVMLoggingMatcher()\n ]);\n return installationInfo;\n}\nconst $0213127e07869fde$var$setupLLVMWithoutActivation = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$setupLLVMWithoutActivation_raw, {\n isPromise: true\n});\nfunction $0213127e07869fde$export$1cf2d186cecf1f54(version, setupDir, arch) {\n return $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch, (0, $cf098dcb81ecb127$export$35fa309210df3df6).ClangFormat);\n}\nfunction $0213127e07869fde$export$814ccfc953503728(version, setupDir, arch) {\n return $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch);\n}\nasync function $0213127e07869fde$var$setupLLVMOnly(version, setupDir, arch, packages = (0, $cf098dcb81ecb127$export$35fa309210df3df6).All) {\n const coeredVersion = (0, $5683decf99cdafe6$export$afd7401db249098f)(version);\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10);\n try {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return await (0, $cf098dcb81ecb127$export$a86791c88ded7e54)(majorVersion, packages);\n } catch (err) {\n (0, $ER74K.info)(`Failed to install llvm via system package manager ${err}`);\n }\n const installationInfo = await (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"llvm\", version, (0, $83abdd9bf69b2f6a$export$f203993d12226a27), setupDir, arch);\n await $0213127e07869fde$var$llvmBinaryDeps(majorVersion);\n return installationInfo;\n}\nasync function $0213127e07869fde$var$llvmBinaryDeps_raw(majorVersion) {\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n if (majorVersion <= 10) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libtinfo5\"\n }\n ]);\n else await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"libtinfo-dev\"\n }\n ]);\n }\n}\nconst $0213127e07869fde$var$llvmBinaryDeps = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$llvmBinaryDeps_raw, {\n isPromise: true\n});\nasync function $0213127e07869fde$var$setupLLVMDeps_raw(arch) {\n if (process.platform === \"linux\") // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await (0, $bd769018416dc7f2$export$405fab3de79b77b)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"gcc\", undefined, await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)()), \"\", arch, 40);\n}\nconst $0213127e07869fde$var$setupLLVMDeps = (0, $429c83835ea21620$export$2e2bcd8739ae039)($0213127e07869fde$var$setupLLVMDeps_raw, {\n isPromise: true\n});\nasync function $0213127e07869fde$export$6238b5ebfd6640e7(directory) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\";\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\";\n const actPromises = [\n // the output of this action\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LLVM_PATH\", directory),\n // Setup LLVM as the compiler\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LD_LIBRARY_PATH\", `${directory}/lib${(0, $d7DIX$path.delimiter)}${ld}`),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"DYLD_LIBRARY_PATH\", `${directory}/lib${(0, $d7DIX$path.delimiter)}${dyld}`),\n // compiler flags\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n // compiler paths\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", (0, $bzNgi.addExeExt)(`${directory}/bin/clang`)),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", (0, $bzNgi.addExeExt)(`${directory}/bin/clang++`)),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"LIBRARY_PATH\", `${directory}/lib`),\n // os sdks\n (0, $1ebfc945e4f5b17a$export$28f5fd35e3005b7a)()\n ];\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n const priority = 60;\n actPromises.push((0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cc\", `${directory}/bin/clang`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"cxx\", `${directory}/bin/clang++`, priority), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"clang\", `${directory}/bin/clang`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"clang++\", `${directory}/bin/clang++`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"lld\", `${directory}/bin/lld`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"ld.lld\", `${directory}/bin/ld.lld`), (0, $f0410b58de32386f$export$6fe6436bd9f53d02)(\"llvm-ar\", `${directory}/bin/llvm-ar`));\n }\n await Promise.all(actPromises);\n}\nasync function $0213127e07869fde$var$addLLVMLoggingMatcher() {\n if (0, $52cQ1.GITHUB_ACTIONS) {\n const matcherPath = (0, $bzNgi.join)($0213127e07869fde$var$$parcel$__dirname, \"llvm_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n }\n}\n\n\n\n\n\n\n\n\n\n\n\nasync function $b2527beb3f2e4071$export$b0a9411329e2916(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"make\", version);\n case \"darwin\":\n await (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"make\", version);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(\"/usr/local/opt/make/libexec/gnubin\");\n return {\n binDir: \"/usr/local/opt/make/libexec/gnubin\"\n };\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"make\", version);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"make\",\n version: version\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"make\",\n version: version\n }\n ]);\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\nfunction $841211d84f4a44cd$export$f73905553f087748(version, _setupDir, _arch) {\n return (0, $cfebcec0830c9a7b$export$4020cb77ffa3ffac)(\"meson\", version);\n}\n\n\n\n\n\nvar $52cQ1 = parcelRequire(\"52cQ1\");\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $756746e991f4f289$var$$parcel$__dirname = $d7DIX$path.resolve(__dirname, \"../../src/msvc\");\nasync function $756746e991f4f289$export$a91ef0362c1a7298(versionGiven, _setupDir, arch, sdk, uwp, spectre) {\n if (process.platform !== \"win32\") return;\n const version = (0, $832772e652e526f0$export$3c7cae5a162b1458)(versionGiven);\n // check if the given version is already installed\n (0, $ER74K.info)(`Checking if MSVC ${version} is already installed`);\n let installed = false;\n try {\n const vcvarsall_path = (0, $832772e652e526f0$export$a6a3bfb882356813)(version);\n installed = true;\n (0, $ER74K.info)(`Found the pre-installed version of MSVC at ${vcvarsall_path}`);\n } catch {\n // not installed, try installing\n }\n let toolset;\n let VCTargetsPath;\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) try {\n if (version === \"14.0\") {\n toolset = \"14.0\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualcpp-build-tools\", \"14.0.25420.1\", [\n \"--ignore-dependencies\"\n ]);\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\";\n } else if (version === \"15.0\") {\n toolset = \"14.16\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2017buildtools\", \"15.9.41.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n ;\n } else if (version === \"16.0\") {\n toolset = \"14.29\";\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2019buildtools\", \"16.11.7.0\", []);\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\";\n } else if (version === \"17.0\") {\n toolset = undefined;\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"visualstudio2022buildtools\", \"117.0.5.0\", []);\n VCTargetsPath = undefined;\n } else (0, $ER74K.error)(`The given MSVC versions ${versionGiven} is not supported yet.`);\n } catch (e) {\n (0, $ER74K.error)(e);\n }\n // run vcvarsall.bat environment variables\n await (0, $ffa3775f67868b5f$export$5dcf571c91fc8369)(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre);\n if (0, $52cQ1.GITHUB_ACTIONS) await $756746e991f4f289$var$addMSVCLoggingMatcher();\n}\nasync function $756746e991f4f289$var$addMSVCLoggingMatcher() {\n const matcherPath = (0, $bzNgi.join)($756746e991f4f289$var$$parcel$__dirname, \"msvc_matcher.json\");\n if (!await (0, $kY0n1.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n}\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\nlet $24fc56c48fbaa7ba$var$binDir;\nasync function $24fc56c48fbaa7ba$export$d73cbe8caeff03c5(version, _setupDir, _arch) {\n if (!(0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) return undefined;\n if (typeof $24fc56c48fbaa7ba$var$binDir === \"string\") return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n const maybeBinDir = (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"nala\", {\n nothrow: true\n });\n if (maybeBinDir !== null) {\n $24fc56c48fbaa7ba$var$binDir = (0, $bzNgi.dirname)(maybeBinDir);\n return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n }\n // https://github.com/volitank/nala#-installation\n const keyFileName = await (0, $f0410b58de32386f$export$7fb1a688af1305f0)(\"volian-archive-scar-unstable.gpg\", \"https://deb.volian.org/volian/scar.key\");\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`\n ]);\n try {\n if (version !== \"legacy\") await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala\"\n }\n ], true);\n else await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n } catch (err) {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"nala-legacy\"\n }\n ], true);\n }\n $24fc56c48fbaa7ba$var$binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n ;\n return {\n binDir: $24fc56c48fbaa7ba$var$binDir\n };\n}\nfunction $24fc56c48fbaa7ba$export$2747aa8ef20f818d(script) {\n if ((0, $f0410b58de32386f$export$89548d91e84ae1a1)()) return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`;\n return script;\n}\n\n\n\n\n\nasync function $54ef9c824222402f$export$6aa28a97600a8ae3(version, _setupDir, _arch) {\n if (process.platform !== \"win32\") return;\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"opencppcoverage\", version);\n const binDir = await $54ef9c824222402f$var$activateOpencppcoverage();\n return {\n binDir: binDir\n };\n}\nasync function $54ef9c824222402f$var$activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return binDir;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\nasync function $772fce954f353e90$export$1ff6ad96ee130aba(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n {\n await (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"powershell-core\", version);\n const binDir = \"C:/Program Files/PowerShell/7\";\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(binDir);\n return {\n binDir: binDir\n };\n }\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"powershell\", version, [\n \"--cask\"\n ]);\n case \"linux\":\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) return (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"powershell-bin\", version, \"yay\");\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) {\n (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n }\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`\n ]);\n return (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"powershell\",\n version: version\n }\n ]);\n } else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) {\n await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n }\n ]);\n const ubuntuVerSplitted = await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)();\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`;\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`\n ]);\n (0, $4467f131fc22cbb2$export$58f152936f209932)(\"dpkg\", [\n \"-i\",\n \"packages-microsoft-prod.deb\"\n ]);\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n return (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"powershell\",\n version: version\n }\n ], true);\n }\n throw new Error(`Unsupported linux distribution`);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\n\nfunction $bcbacc5f1ce862e1$export$b963b67cda80fdc(version, _setupDir, _arch) {\n switch(process.platform){\n case \"win32\":\n return (0, $ca3ee4fd324ae5e9$export$9f6912bc890040b2)(\"sccache\", version);\n case \"linux\":\n case \"darwin\":\n return (0, $10ddbd636565d4da$export$ce5d13d8a85cb784)(\"sccache\", version);\n default:\n throw new Error(`Unsupported platform`);\n }\n}\n\n\n\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n/** Get the platform name task uses in their download links */ function $19fb71dac36c98fd$var$getTaskPlatform(platform) {\n switch(platform){\n case \"win32\":\n return \"windows\";\n default:\n return platform;\n }\n}\n/** Get the arch name task uses in their download links */ function $19fb71dac36c98fd$var$getTaskArch(arch) {\n switch(arch){\n case \"x64\":\n return \"amd64\";\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\";\n default:\n return arch;\n }\n}\n/** Get the platform data for task */ function $19fb71dac36c98fd$var$getTaskPackageInfo(version, platform, arch) {\n const taskPlatform = $19fb71dac36c98fd$var$getTaskPlatform(platform);\n const taskArch = $19fb71dac36c98fd$var$getTaskArch(arch);\n const isZip = platform === \"win32\";\n const extension = isZip ? \"zip\" : \"tar.gz\";\n return {\n binRelativeDir: \"\",\n binFileName: (0, $bzNgi.addExeExt)(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? (0, $4615baf4c3b031c2$export$6411c5cbab21135b) : (0, $4615baf4c3b031c2$export$2ab07ac150064014),\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`\n };\n}\nfunction $19fb71dac36c98fd$export$4456b3a3d3540077(version, setupDir, arch) {\n return (0, $d81b351c18e56f74$export$334f77c9844c21f6)(\"task\", version, $19fb71dac36c98fd$var$getTaskPackageInfo, setupDir, arch);\n}\n\n\n\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $kY0n1 = parcelRequire(\"kY0n1\");\n\nvar $bzNgi = parcelRequire(\"bzNgi\");\n\n\n\n\n\n\n\n\nlet $6de10099eaeb725f$var$hasVCPKG = false;\nasync function $6de10099eaeb725f$export$490bdba4ef3e3f82(_version, setupDir, _arch) {\n if (!$6de10099eaeb725f$var$hasVCPKG || (0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"vcpkg\", {\n nothrow: true\n }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)()) await Promise.all([\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"curl\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"zip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"unzip\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"tar\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"git\"),\n (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"pkg-config\")\n ]);\n else if ((0, $3cbfee605ac1e082$export$8ce8b4b22331a8c7)()) await (0, $7e2451edad050552$export$49d4f9ba8e0dd34f)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n else if ((0, $7b55ac603b97ae6e$export$da8baf1d6c6802b6)()) await (0, $f0410b58de32386f$export$d73dc343f5abf26)([\n {\n name: \"curl\"\n },\n {\n name: \"zip\"\n },\n {\n name: \"unzip\"\n },\n {\n name: \"tar\"\n },\n {\n name: \"git\"\n },\n {\n name: \"pkg-config\"\n }\n ]);\n }\n if (!await (0, $kY0n1.pathExists)((0, $bzNgi.join)(setupDir, (0, $bzNgi.addShExt)(\"bootstrap-vcpkg\", \".bat\")))) (0, $54908482e02f4b6d$export$28823a701bb5a12d)(\"git\", [\n \"clone\",\n \"https://github.com/microsoft/vcpkg\"\n ], {\n cwd: (0, $bzNgi.dirname)(setupDir),\n stdio: \"inherit\"\n });\n else (0, $ER74K.notice)(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`);\n (0, $54908482e02f4b6d$export$28823a701bb5a12d)((0, $bzNgi.addShExt)((0, $bzNgi.addShRelativePrefix)(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\"\n });\n await (0, $8c9709291dc275bc$export$4718e061a205eab)(setupDir);\n await (0, $85fd7153285bfba5$export$4c25481b843feb0b)(setupDir);\n // eslint-disable-next-line require-atomic-updates\n $6de10099eaeb725f$var$hasVCPKG = true;\n return {\n binDir: setupDir\n };\n }\n return {\n binDir: (0, $bzNgi.dirname)((0, (/*@__PURE__*/$parcel$interopDefault($851ef3bcd445adf9$exports))).sync(\"vcpkg\"))\n };\n}\n\n\n\nconst $f58f76cc72dbc50d$export$18a3521ac7306af4 = {\n nala: (0, $24fc56c48fbaa7ba$export$d73cbe8caeff03c5),\n cmake: (0, $cd6a37a8a2760b1d$export$c28663a621f418ce),\n ninja: (0, $c8e436f083063bf5$export$e6190f4bfe2ef71),\n python: (0, $ae5265b0f840d575$export$2b0b68e9df3d4a02),\n vcpkg: (0, $6de10099eaeb725f$export$490bdba4ef3e3f82),\n bazel: (0, $8550ac0edfced131$export$a66bc93580b0a849),\n conan: (0, $928be18130bb437a$export$249d0c7d779d362f),\n meson: (0, $841211d84f4a44cd$export$f73905553f087748),\n gcovr: (0, $9e5689f497201ccc$export$b98d69f362caf61f),\n opencppcoverage: (0, $54ef9c824222402f$export$6aa28a97600a8ae3),\n llvm: (0, $0213127e07869fde$export$3016de7ae9d14988),\n gcc: (0, $bd769018416dc7f2$export$405fab3de79b77b),\n choco: (0, $5540d46c90af649b$export$b804d731cdad7ef9),\n brew: (0, $b05e6e28215ee948$export$c5eeb9c87a610a0e),\n powershell: (0, $772fce954f353e90$export$1ff6ad96ee130aba),\n ccache: (0, $37a450505a669dce$export$111263621bbb0768),\n sccache: (0, $bcbacc5f1ce862e1$export$b963b67cda80fdc),\n doxygen: (0, $4b1f70d03c91cebd$export$b6e6613a954051ee),\n graphviz: (0, $9f6a19f1eee9e3b6$export$b885bd977caaafb9),\n cppcheck: (0, $6f659008f4a1ac73$export$13d77464c548b5d3),\n clangtidy: (0, $0213127e07869fde$export$814ccfc953503728),\n clangformat: (0, $0213127e07869fde$export$1cf2d186cecf1f54),\n msvc: (0, $756746e991f4f289$export$a91ef0362c1a7298),\n vcvarsall: (0, $ffa3775f67868b5f$export$5dcf571c91fc8369),\n kcov: (0, $a32e41fd6d9c05e4$export$abb7c2ff987b1f6b),\n make: (0, $b2527beb3f2e4071$export$b0a9411329e2916),\n task: (0, $19fb71dac36c98fd$export$4456b3a3d3540077),\n sevenzip: (0, $6285d3d29afbf608$export$5fc39629e14c8173)\n};\nconst $f58f76cc72dbc50d$export$904054328df186b = Object.keys($f58f76cc72dbc50d$export$18a3521ac7306af4);\nconst $f58f76cc72dbc50d$export$7b388ca536128c6d = [\n \"compiler\",\n \"architecture\",\n \"timeout\",\n ...$f58f76cc72dbc50d$export$904054328df186b\n];\n\n\nfunction $447038b429c54f91$export$7300a92932ee17a3(args) {\n return (0, $9db6cbd493c17e7d$export$2e2bcd8739ae039)(args, {\n string: [\n ...(0, $f58f76cc72dbc50d$export$7b388ca536128c6d),\n \"timeout\"\n ],\n default: Object.fromEntries((0, $f58f76cc72dbc50d$export$7b388ca536128c6d).map((inp)=>[\n inp,\n $447038b429c54f91$export$fc4ce4d885cb1082(inp)\n ])),\n alias: {\n h: \"help\"\n },\n boolean: \"help\"\n });\n}\nfunction $447038b429c54f91$export$f57ebcae4da846e4() {\n (0, $ER74K.info)(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`);\n console.table({\n \"compiler and analyzer\": {\n tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat`\n },\n \"build system\": {\n tools: `--cmake, --ninja, --meson, --make, --task, --bazel`\n },\n \"package manager\": {\n tools: `--vcpkg, --conan, --choco, --brew, --nala`\n },\n cache: {\n tools: `--cppcache, --sccache`\n },\n documentation: {\n tools: `--doxygen, --graphviz`\n },\n coverage: {\n tools: `--gcovr, --opencppcoverage, --kcov`\n },\n other: {\n tools: `--python, --powershell, --sevenzip`\n }\n }, [\n \"tools\"\n ]);\n}\nfunction $447038b429c54f91$export$fc4ce4d885cb1082(key) {\n const value = (0, $4t50X.getInput)(key.toLowerCase());\n if (value !== \"false\" && value !== \"\") return value;\n return undefined // skip installation\n ;\n}\nfunction $447038b429c54f91$export$ad22d805bb3bfaf5(tool, installationInfo) {\n let msg = `\\u{2705} ${tool} was installed successfully:`;\n if (installationInfo === undefined) return msg;\n if (\"installDir\" in installationInfo) msg += `\\n- The installation directory is ${installationInfo.installDir}`;\n if (installationInfo.binDir !== \"\") msg += `\\n- The binary directory is ${installationInfo.binDir}`;\n return msg;\n}\n\n\n\nvar $4t50X = parcelRequire(\"4t50X\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\n\nvar $l655J = parcelRequire(\"l655J\");\n\n\n\n\n\n\n\nfunction $546e05b24c5c5b72$export$588248dee5258836(compilerAndVersion) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\");\n const compiler = compilerAndMaybeVersion[0];\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1];\n if ((0, (/*@__PURE__*/$parcel$interopDefault($l655J)))(maybeVersion) !== null) return {\n compiler: compiler,\n version: maybeVersion\n };\n else {\n (0, $ER74K.info)(`Invalid semver version ${maybeVersion} used for the compiler.`);\n return {\n compiler: compiler,\n version: maybeVersion\n };\n }\n }\n return {\n compiler: compiler,\n version: undefined\n };\n}\nasync function $546e05b24c5c5b72$export$4dabf89bf6376d2b(compilerAndVersion, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages) {\n try {\n const { compiler: compiler, version: version } = $546e05b24c5c5b72$export$588248dee5258836(compilerAndVersion);\n // install the compiler. We allow some aliases for the compiler name\n (0, $4t50X.startGroup)(`Installing ${compiler} ${version ?? \"\"}`);\n switch(compiler){\n case \"llvm\":\n case \"clang\":\n case \"clang++\":\n {\n const installationInfo = await (0, $0213127e07869fde$export$3016de7ae9d14988)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"llvm\", version, osVersion), (0, $d7DIX$path.join)(setupCppDir, \"llvm\"), arch);\n await (0, $9e5689f497201ccc$export$2a0488baf2a20c0f)();\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"llvm\", installationInfo));\n break;\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\":\n {\n const gccVersion = compiler === \"mingw\" ? (0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"mingw\", version, osVersion) : (0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"gcc\", version, osVersion);\n const installationInfo = compiler === \"mingw\" ? await (0, $bd769018416dc7f2$export$f115c01d224b9e9a)(gccVersion, (0, $d7DIX$path.join)(setupCppDir, \"gcc\"), arch) : await (0, $bd769018416dc7f2$export$405fab3de79b77b)(gccVersion, (0, $d7DIX$path.join)(setupCppDir, \"gcc\"), arch);\n if (hasLLVM) // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n await (0, $9e5689f497201ccc$export$41dabde4775ee2aa)(gccVersion);\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"gcc\", installationInfo));\n break;\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\":\n {\n const installationInfo = await (0, $756746e991f4f289$export$a91ef0362c1a7298)((0, $cb3b5dc5a4eadeb1$export$c506eb22e615ba4a)(\"msvc\", version, osVersion), (0, $d7DIX$path.join)(setupCppDir, \"msvc\"), arch);\n if (hasLLVM) // remove the CPPFLAGS of LLVM that include the LLVM headers\n await (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CPPFLAGS\", \"\");\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"msvc\", installationInfo));\n break;\n }\n case \"appleclang\":\n case \"applellvm\":\n (0, $4t50X.notice)(\"Assuming apple-clang is already installed\");\n await Promise.all([\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CC\", \"clang\"),\n (0, $85fd7153285bfba5$export$f63d3080ce25e0fd)(\"CXX\", \"clang++\")\n ]);\n successMessages.push((0, $447038b429c54f91$export$ad22d805bb3bfaf5)(\"apple-clang\", undefined));\n break;\n default:\n errorMessages.push(`Unsupported compiler ${compiler}`);\n }\n } catch (err) {\n (0, $ER74K.error)(err);\n errorMessages.push(`Failed to install the ${compilerAndVersion}`);\n }\n (0, $4t50X.endGroup)();\n}\n\n\n\n\n\n\n\n\n\n/** The main entry function */ async function $0e55037d0c830549$var$main(args) {\n let checkUpdatePromise = Promise.resolve();\n if (!(0, $52cQ1.GITHUB_ACTIONS)) {\n checkUpdatePromise = (0, $cb87868918740ed3$export$31c6d94eb20a8ca7)();\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\";\n }\n // parse options using mri or github actions\n const opts = (0, $447038b429c54f91$export$7300a92932ee17a3)(args);\n // print help\n if (opts.help) (0, $447038b429c54f91$export$f57ebcae4da846e4)();\n // cpu architecture\n const arch = opts.architecture ?? process.arch;\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? (0, $cc03115747abd396$export$8312d9eeba321950)(\"~\");\n // report messages\n const successMessages = [];\n const errorMessages = [];\n const timeFormatter = $0759e10a4c20508a$exports.create({\n autoloadLocales: true\n });\n $0759e10a4c20508a$exports.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($7bf1341a48aa89d2$exports))));\n $iWDmx.addLocale((0, (/*@__PURE__*/$parcel$interopDefault($adccf2292ac17dc9$exports))));\n let time1;\n let time2;\n // installing the specified tools\n const osVersion = await (0, $d6a4ad0ff65d0a5e$export$49c9cf1111dfa0ee)();\n // sync the version for the llvm tools\n if (!(0, $cb3b5dc5a4eadeb1$export$dd13a1e418f5a5fe)(opts, [\n \"llvm\",\n \"clangtidy\",\n \"clangformat\"\n ])) {\n (0, $ER74K.error)(\"The same version must be used for llvm, clangformat and clangtidy\");\n return 1;\n }\n if ((0, $84785c71f430250a$export$d415ddb6702ec3a2)() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n (0, $ER74K.info)(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\");\n await (0, $6f126e8fe01fa080$export$cfa75578ee2d6e6c)(\"python-pygments\");\n }\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */ let hasLLVM = false;\n // loop over the tools and run their setup function\n let failedFast = false;\n for (const tool of (0, $f58f76cc72dbc50d$export$904054328df186b)){\n // fail fast inside CI when any tool fails\n if (0, $52cQ1.isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true;\n break;\n }\n }\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool];\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now();\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await (0, $38b6fc81fd22ef04$export$ddb4b945c8581272)(tool, version, osVersion, arch, setupCppDir, successMessages, errorMessages, parseFloat(opts.timeout ?? \"20\") * 60000);\n time2 = Date.now();\n (0, $ER74K.info)(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`);\n }\n }\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler;\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now();\n await (0, $546e05b24c5c5b72$export$4dabf89bf6376d2b)(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages);\n const time2Compiler = Date.now();\n (0, $ER74K.info)(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`);\n }\n }\n await (0, $85fd7153285bfba5$export$ca46151966bee7ba)();\n if (successMessages.length === 0 && errorMessages.length === 0) {\n (0, $ER74K.warning)(\"setup-cpp was called without any arguments. Nothing to do.\");\n return 0;\n }\n // report the messages in the end\n successMessages.forEach((tool)=>(0, $ER74K.success)(tool));\n errorMessages.forEach((tool)=>(0, $ER74K.error)(tool));\n (0, $ER74K.info)(\"setup-cpp finished\");\n if (!(0, $52cQ1.GITHUB_ACTIONS)) switch(process.platform){\n case \"win32\":\n (0, $ER74K.warning)(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\");\n break;\n case \"linux\":\n case \"darwin\":\n (0, $ER74K.warning)(\"Run `source ~/.cpprc` or restart your shell to update the environment.\");\n break;\n default:\n }\n await checkUpdatePromise;\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n ;\n}\n// Run main\n$0e55037d0c830549$var$main(process.argv).then((ret)=>{\n process.exitCode = ret;\n}).catch((err)=>{\n (0, $ER74K.error)(\"main() panicked!\");\n (0, $ER74K.error)(err);\n process.exitCode = 1;\n});\n\n\n//# sourceMappingURL=setup-cpp.js.map\n","'use strict'\n\nconst vendors = require('./vendors.json')\n\nconst env = process.env\n\n// Used for testing only\nObject.defineProperty(exports, '_vendors', {\n value: vendors.map(function (v) {\n return v.constant\n })\n})\n\nexports.name = null\nexports.isPR = null\n\nvendors.forEach(function (vendor) {\n const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]\n const isCI = envs.every(function (obj) {\n return checkEnv(obj)\n })\n\n exports[vendor.constant] = isCI\n\n if (!isCI) {\n return\n }\n\n exports.name = vendor.name\n\n switch (typeof vendor.pr) {\n case 'string':\n // \"pr\": \"CIRRUS_PR\"\n exports.isPR = !!env[vendor.pr]\n break\n case 'object':\n if ('env' in vendor.pr) {\n // \"pr\": { \"env\": \"BUILDKITE_PULL_REQUEST\", \"ne\": \"false\" }\n exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne\n } else if ('any' in vendor.pr) {\n // \"pr\": { \"any\": [\"ghprbPullId\", \"CHANGE_ID\"] }\n exports.isPR = vendor.pr.any.some(function (key) {\n return !!env[key]\n })\n } else {\n // \"pr\": { \"DRONE_BUILD_EVENT\": \"pull_request\" }\n exports.isPR = checkEnv(vendor.pr)\n }\n break\n default:\n // PR detection not supported for this vendor\n exports.isPR = null\n }\n})\n\nexports.isCI = !!(\n env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'\n (env.BUILD_ID || // Jenkins, Cloudbees\n env.BUILD_NUMBER || // Jenkins, TeamCity\n env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari\n env.CI_APP_ID || // Appflow\n env.CI_BUILD_ID || // Appflow\n env.CI_BUILD_NUMBER || // Appflow\n env.CI_NAME || // Codeship and others\n env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI\n env.RUN_ID || // TaskCluster, dsari\n exports.name ||\n false)\n)\n\nfunction checkEnv (obj) {\n // \"env\": \"CIRRUS\"\n if (typeof obj === 'string') return !!env[obj]\n\n // \"env\": { \"env\": \"NODE\", \"includes\": \"/app/.heroku/node/bin/node\" }\n if ('env' in obj) {\n // Currently there are no other types, uncomment when there are\n // if ('includes' in obj) {\n return env[obj.env] && env[obj.env].includes(obj.includes)\n // }\n }\n if ('any' in obj) {\n return obj.any.some(function (k) {\n return !!env[k]\n })\n }\n return Object.keys(obj).every(function (k) {\n return env[k] === obj[k]\n })\n}\n","[\n {\n \"name\": \"Agola CI\",\n \"constant\": \"AGOLA\",\n \"env\": \"AGOLA_GIT_REF\",\n \"pr\": \"AGOLA_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Appcircle\",\n \"constant\": \"APPCIRCLE\",\n \"env\": \"AC_APPCIRCLE\"\n },\n {\n \"name\": \"AppVeyor\",\n \"constant\": \"APPVEYOR\",\n \"env\": \"APPVEYOR\",\n \"pr\": \"APPVEYOR_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"AWS CodeBuild\",\n \"constant\": \"CODEBUILD\",\n \"env\": \"CODEBUILD_BUILD_ARN\"\n },\n {\n \"name\": \"Azure Pipelines\",\n \"constant\": \"AZURE_PIPELINES\",\n \"env\": \"TF_BUILD\",\n \"pr\": {\n \"BUILD_REASON\": \"PullRequest\"\n }\n },\n {\n \"name\": \"Bamboo\",\n \"constant\": \"BAMBOO\",\n \"env\": \"bamboo_planKey\"\n },\n {\n \"name\": \"Bitbucket Pipelines\",\n \"constant\": \"BITBUCKET\",\n \"env\": \"BITBUCKET_COMMIT\",\n \"pr\": \"BITBUCKET_PR_ID\"\n },\n {\n \"name\": \"Bitrise\",\n \"constant\": \"BITRISE\",\n \"env\": \"BITRISE_IO\",\n \"pr\": \"BITRISE_PULL_REQUEST\"\n },\n {\n \"name\": \"Buddy\",\n \"constant\": \"BUDDY\",\n \"env\": \"BUDDY_WORKSPACE_ID\",\n \"pr\": \"BUDDY_EXECUTION_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Buildkite\",\n \"constant\": \"BUILDKITE\",\n \"env\": \"BUILDKITE\",\n \"pr\": {\n \"env\": \"BUILDKITE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"CircleCI\",\n \"constant\": \"CIRCLE\",\n \"env\": \"CIRCLECI\",\n \"pr\": \"CIRCLE_PULL_REQUEST\"\n },\n {\n \"name\": \"Cirrus CI\",\n \"constant\": \"CIRRUS\",\n \"env\": \"CIRRUS_CI\",\n \"pr\": \"CIRRUS_PR\"\n },\n {\n \"name\": \"Codefresh\",\n \"constant\": \"CODEFRESH\",\n \"env\": \"CF_BUILD_ID\",\n \"pr\": {\n \"any\": [\n \"CF_PULL_REQUEST_NUMBER\",\n \"CF_PULL_REQUEST_ID\"\n ]\n }\n },\n {\n \"name\": \"Codemagic\",\n \"constant\": \"CODEMAGIC\",\n \"env\": \"CM_BUILD_ID\",\n \"pr\": \"CM_PULL_REQUEST\"\n },\n {\n \"name\": \"Codeship\",\n \"constant\": \"CODESHIP\",\n \"env\": {\n \"CI_NAME\": \"codeship\"\n }\n },\n {\n \"name\": \"Drone\",\n \"constant\": \"DRONE\",\n \"env\": \"DRONE\",\n \"pr\": {\n \"DRONE_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"dsari\",\n \"constant\": \"DSARI\",\n \"env\": \"DSARI\"\n },\n {\n \"name\": \"Earthly\",\n \"constant\": \"EARTHLY\",\n \"env\": \"EARTHLY_CI\"\n },\n {\n \"name\": \"Expo Application Services\",\n \"constant\": \"EAS\",\n \"env\": \"EAS_BUILD\"\n },\n {\n \"name\": \"Gerrit\",\n \"constant\": \"GERRIT\",\n \"env\": \"GERRIT_PROJECT\"\n },\n {\n \"name\": \"Gitea Actions\",\n \"constant\": \"GITEA_ACTIONS\",\n \"env\": \"GITEA_ACTIONS\"\n },\n {\n \"name\": \"GitHub Actions\",\n \"constant\": \"GITHUB_ACTIONS\",\n \"env\": \"GITHUB_ACTIONS\",\n \"pr\": {\n \"GITHUB_EVENT_NAME\": \"pull_request\"\n }\n },\n {\n \"name\": \"GitLab CI\",\n \"constant\": \"GITLAB\",\n \"env\": \"GITLAB_CI\",\n \"pr\": \"CI_MERGE_REQUEST_ID\"\n },\n {\n \"name\": \"GoCD\",\n \"constant\": \"GOCD\",\n \"env\": \"GO_PIPELINE_LABEL\"\n },\n {\n \"name\": \"Google Cloud Build\",\n \"constant\": \"GOOGLE_CLOUD_BUILD\",\n \"env\": \"BUILDER_OUTPUT\"\n },\n {\n \"name\": \"Harness CI\",\n \"constant\": \"HARNESS\",\n \"env\": \"HARNESS_BUILD_ID\"\n },\n {\n \"name\": \"Heroku\",\n \"constant\": \"HEROKU\",\n \"env\": {\n \"env\": \"NODE\",\n \"includes\": \"/app/.heroku/node/bin/node\"\n }\n },\n {\n \"name\": \"Hudson\",\n \"constant\": \"HUDSON\",\n \"env\": \"HUDSON_URL\"\n },\n {\n \"name\": \"Jenkins\",\n \"constant\": \"JENKINS\",\n \"env\": [\n \"JENKINS_URL\",\n \"BUILD_ID\"\n ],\n \"pr\": {\n \"any\": [\n \"ghprbPullId\",\n \"CHANGE_ID\"\n ]\n }\n },\n {\n \"name\": \"LayerCI\",\n \"constant\": \"LAYERCI\",\n \"env\": \"LAYERCI\",\n \"pr\": \"LAYERCI_PULL_REQUEST\"\n },\n {\n \"name\": \"Magnum CI\",\n \"constant\": \"MAGNUM\",\n \"env\": \"MAGNUM\"\n },\n {\n \"name\": \"Netlify CI\",\n \"constant\": \"NETLIFY\",\n \"env\": \"NETLIFY\",\n \"pr\": {\n \"env\": \"PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Nevercode\",\n \"constant\": \"NEVERCODE\",\n \"env\": \"NEVERCODE\",\n \"pr\": {\n \"env\": \"NEVERCODE_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Prow\",\n \"constant\": \"PROW\",\n \"env\": \"PROW_JOB_ID\"\n },\n {\n \"name\": \"ReleaseHub\",\n \"constant\": \"RELEASEHUB\",\n \"env\": \"RELEASE_BUILD_ID\"\n },\n {\n \"name\": \"Render\",\n \"constant\": \"RENDER\",\n \"env\": \"RENDER\",\n \"pr\": {\n \"IS_PULL_REQUEST\": \"true\"\n }\n },\n {\n \"name\": \"Sail CI\",\n \"constant\": \"SAIL\",\n \"env\": \"SAILCI\",\n \"pr\": \"SAIL_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Screwdriver\",\n \"constant\": \"SCREWDRIVER\",\n \"env\": \"SCREWDRIVER\",\n \"pr\": {\n \"env\": \"SD_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Semaphore\",\n \"constant\": \"SEMAPHORE\",\n \"env\": \"SEMAPHORE\",\n \"pr\": \"PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Sourcehut\",\n \"constant\": \"SOURCEHUT\",\n \"env\": {\n \"CI_NAME\": \"sourcehut\"\n }\n },\n {\n \"name\": \"Strider CD\",\n \"constant\": \"STRIDER\",\n \"env\": \"STRIDER\"\n },\n {\n \"name\": \"TaskCluster\",\n \"constant\": \"TASKCLUSTER\",\n \"env\": [\n \"TASK_ID\",\n \"RUN_ID\"\n ]\n },\n {\n \"name\": \"TeamCity\",\n \"constant\": \"TEAMCITY\",\n \"env\": \"TEAMCITY_VERSION\"\n },\n {\n \"name\": \"Travis CI\",\n \"constant\": \"TRAVIS\",\n \"env\": \"TRAVIS\",\n \"pr\": {\n \"env\": \"TRAVIS_PULL_REQUEST\",\n \"ne\": \"false\"\n }\n },\n {\n \"name\": \"Vela\",\n \"constant\": \"VELA\",\n \"env\": \"VELA\",\n \"pr\": {\n \"VELA_PULL_REQUEST\": \"1\"\n }\n },\n {\n \"name\": \"Vercel\",\n \"constant\": \"VERCEL\",\n \"env\": {\n \"any\": [\n \"NOW_BUILDER\",\n \"VERCEL\"\n ]\n },\n \"pr\": \"VERCEL_GIT_PULL_REQUEST_ID\"\n },\n {\n \"name\": \"Visual Studio App Center\",\n \"constant\": \"APPCENTER\",\n \"env\": \"APPCENTER_BUILD_ID\"\n },\n {\n \"name\": \"Woodpecker\",\n \"constant\": \"WOODPECKER\",\n \"env\": {\n \"CI\": \"woodpecker\"\n },\n \"pr\": {\n \"CI_BUILD_EVENT\": \"pull_request\"\n }\n },\n {\n \"name\": \"Xcode Cloud\",\n \"constant\": \"XCODE_CLOUD\",\n \"env\": \"CI_XCODE_PROJECT\",\n \"pr\": \"CI_PULL_REQUEST_NUMBER\"\n },\n {\n \"name\": \"Xcode Server\",\n \"constant\": \"XCODE_SERVER\",\n \"env\": \"XCS\"\n }\n]\n","import * as core from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\n\nexport function error(err: string | Error) {\n return GITHUB_ACTIONS ? core.error(err) : console.log(`\\x1b[31m${err}\\x1b[0m`)\n}\n\nexport function success(msg: string) {\n return console.log(`\\x1b[32m${msg}\\x1b[0m`)\n}\n\nexport function warning(msg: string) {\n return GITHUB_ACTIONS ? core.warning(msg) : console.log(`\\x1b[33m${msg}\\x1b[0m`)\n}\n\nexport function notice(msg: string) {\n return GITHUB_ACTIONS ? core.notice(msg) : console.log(`\\x1b[94m${msg}\\x1b[0m`)\n}\n\nexport function info(msg: string) {\n return GITHUB_ACTIONS ? core.info(msg) : console.log(msg)\n}\n",null,null,null,null,null,null,null,null,"import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;",null,null,null,null,null,null,"module.exports = require('./lib/tunnel');\n","'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n",null,null,null,null,null,null,"(function () {\n\n 'use strict';\n\n var root = this;\n\n\n //=========//\n // GLOBALS //\n //=========//\n\n var locales = {};\n\n\n //==========//\n // EXPOSING //\n //==========//\n\n var moduleDefinition = {\n create: factory,\n addLocale: addLocale,\n pluralize: pluralize\n };\n\n if ('undefined' !== typeof module && 'undefined' !== typeof module.exports) {\n module.exports = moduleDefinition;\n } else {\n root.numerous = moduleDefinition;\n }\n\n\n //==================//\n // PUBLIC FUNCTIONS //\n //==================//\n\n /**\n * Creates new instance of numerous.\n *\n * @param {string} locale\n * @returns {object}\n */\n function factory (locale) {\n\n checkLocale(locale);\n\n return {\n pluralize: function (value, variants) {\n return pluralize(locale, value, variants);\n }\n };\n }\n\n /**\n * Adds pluralization function for specified locale.\n * Usually externally called by locale itself.\n *\n * @param {string} locale\n * @param {function} callable\n */\n function addLocale (locale, callable) {\n locales[locale] = callable;\n }\n\n /**\n * Returns variant from the specified list of variants\n * according to the specified value and locale.\n *\n * @param {string} locale\n * @param {int} value\n * @param {object} variants\n */\n function pluralize (locale, value, variants) {\n\n checkLocale(locale);\n\n if ('object' !== typeof variants) {\n throw new Error('List of variants should be specified as an object');\n }\n\n var key = locales[locale](value);\n\n return ('undefined' !== typeof variants[key] ? variants[key] : null);\n }\n\n\n //===================//\n // PRIVATE FUNCTIONS //\n //===================//\n\n /**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} locale\n *\n * @returns {boolean}\n */\n function hasLocale (locale) {\n return ('undefined' !== typeof locales[locale]);\n }\n\n /**\n * Checks if locale is loaded. If not, tries to load it.\n *\n * @param {string} locale\n */\n function checkLocale (locale) {\n if (!hasLocale(locale)) {\n requireLocale(locale);\n }\n }\n\n /**\n * Tries to load the specified locale.\n *\n * @param {string} locale\n */\n function requireLocale (locale) {\n try {\n require(__dirname + '/../locales/' + locale + '.js');\n } catch (error) {\n throw Error('Failed to load the following locale: ' + locale);\n }\n }\n\n}).call(this);\n","\n//==============//\n// DEPENDENCIES //\n//==============//\n\nconst numerous = require('numerous');\nconst isNode = require('is-node');\n\n\n//================//\n// MODULE GLOBALS //\n//================//\n\n/**\n * Pre-calculating millisecond values for each time unit.\n */\nconst timeUnits = [\n ['years', 12 * 4 * 7 * 24 * 60 * 60 * 1000],\n ['months', 4 * 7 * 24 * 60 * 60 * 1000],\n ['weeks', 7 * 24 * 60 * 60 * 1000],\n ['days', 24 * 60 * 60 * 1000],\n ['hours', 60 * 60 * 1000],\n ['minutes', 60 * 1000],\n ['seconds', 1000],\n];\n\nconst defaultConfig = {\n locale: 'en',\n span: 2,\n delimiter: ', ',\n unitType: 'long',\n unitTypeLookupOrder: ['long', 'short', 'narrow'],\n autoloadLocales: true,\n};\n\n/**\n * Contains data of loaded locales.\n * @type {Object}\n */\nconst locales = {};\n\n\n//=========//\n// EXPORTS //\n//=========//\n\nmodule.exports = {\n create: timeDeltaFactory,\n addLocale,\n defaultConfig,\n};\n\n\n//===========//\n// FUNCTIONS //\n//===========//\n\n/**\n * Adds pluralization data for the specified locale.\n * Should be called in browser.\n *\n * @param {Object|Object[]} localeData\n */\nfunction addLocale(localeData) {\n\n // Normalizing input\n if (!Array.isArray(localeData)) {\n localeData = [localeData];\n }\n\n for (const item of localeData) {\n const { id, data } = item;\n locales[id] = data;\n }\n\n}\n\n\n/**\n * Creates new instance.\n *\n * @param {object?} config\n *\n * @returns {object}\n */\nfunction timeDeltaFactory(config) {\n\n // Initializing config by extending the default one\n config = Object.assign({}, defaultConfig, config || {});\n\n return {\n\n /**\n * Public proxy for internal format function.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object?} options\n *\n * @returns {string}\n */\n format: function (firstDate, secondDate, options) {\n\n // Allowing to override config with each individual call\n options = Object.assign({}, config, options || {});\n\n return format(firstDate, secondDate, options);\n\n }\n\n };\n\n}\n\n\n/**\n * Returns difference between two dates as a text string.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n * @param {object} config\n *\n * @returns {string}\n */\nfunction format(firstDate, secondDate, config) {\n\n ensureLocaleLoadedOrThrow(config.locale, {\n autoload: config.autoloadLocales,\n });\n\n // Handling input arguments\n // -----\n\n if (!firstDate) {\n throw new Error('Missing first date argument');\n }\n\n if (!secondDate) {\n throw new Error('Missing second date argument');\n }\n\n // Calculating\n // -----\n\n const difference = getDifference(firstDate, secondDate);\n const parts = [];\n\n for (const unit of difference) {\n const [name, value] = unit;\n if (value > 0) {\n parts.push(pluralize(name, value, config));\n }\n if (parts.length >= config.span) {\n break;\n }\n }\n\n // Returning the string value\n return parts.join(config.delimiter);\n\n}\n\n\n/**\n * Checks if locale is loaded. If not, tries to load it in Node.js,\n * or throws and error in Browser.\n *\n * @param {string} locale\n * @param {Object?} options\n */\nfunction ensureLocaleLoadedOrThrow(locale, options) {\n\n const { autoload } = options;\n\n if (hasLocale(locale)) {\n return;\n }\n\n if (isNode && autoload) {\n requireLocale(locale);\n\n } else {\n throw new Error(\n `Missing locale: ${locale}, you must load it manually before using it`\n );\n }\n\n}\n\n\n/**\n * Returns true if specified locale is loaded, false otherwise.\n *\n * @param {string} localeId\n *\n * @returns {boolean}\n */\nfunction hasLocale(localeId) {\n return Boolean(locales[localeId]);\n}\n\n/**\n * Tries to load the specified locale.\n *\n * @param {string} localeId\n */\nfunction requireLocale(localeId) {\n try {\n addLocale(\n require(`../locales/${localeId}.js`)\n );\n\n } catch (error) {\n throw Error(\n `Failed to load locale: ${localeId} from ../locales/${localeId}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${error}`\n );\n\n }\n}\n\n\n/**\n * Returns difference as separate time units.\n *\n * @param {Date} firstDate\n * @param {Date} secondDate\n *\n * @returns {Array}\n */\nfunction getDifference(firstDate, secondDate) {\n let difference = (secondDate - firstDate);\n const results = [];\n timeUnits.some(function (unit) {\n const name = unit[0];\n const divider = unit[1];\n const value = Math.floor(difference / divider);\n difference -= value * divider;\n results.push([name, value]);\n if (difference <= 0) {\n // Breaking the loop.\n return true;\n }\n });\n return results;\n}\n\n/**\n * Returns localized and pluralized time unit.\n *\n * @param {string} unit\n * @param {int} value\n * @param {object} config\n *\n * @returns {string}\n */\nfunction pluralize(unit, value, config) {\n const unitTypeData = getLocaleDataForUnitType(config);\n const unitString = numerous.pluralize(\n config.locale,\n value,\n unitTypeData[unit]\n );\n return unitString.replace('{0}', value);\n}\n\n\n/**\n * Returns locale data for preferred unit type.\n *\n * @param {object} config\n *\n * @returns {Array}\n */\nfunction getLocaleDataForUnitType(config) {\n\n const localeData = locales[config.locale];\n\n // Making a copy of array from config.\n let lookupOrder = config.unitTypeLookupOrder.slice();\n\n // Adding interested type to the top.\n lookupOrder.unshift(config.unitType);\n\n // Making sure only unique items are present.\n lookupOrder = arrayUnique(lookupOrder);\n\n let unitTypeData = null;\n lookupOrder.some(function (unitType) {\n if ('undefined' !== typeof localeData[unitType]) {\n unitTypeData = localeData[unitType];\n // Breaking the loop.\n return true;\n }\n });\n\n if (null === unitTypeData) {\n throw new Error('Can not find any unit type data for locale: ' + config.locale);\n }\n\n return unitTypeData;\n}\n\n/**\n * Returns array with only unique items.\n *\n * @param {Array} array\n *\n * @returns {Array}\n */\nfunction arrayUnique(array) {\n return Array.from(\n new Set(array)\n );\n}\n","module.exports = require('./lib/numerous.js');\n","// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md\n'use strict';\n\nexports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);\n","import * as fs from \"fs\"\nexport default fs.promises\n\nexport const {\n access,\n appendFile,\n chmod,\n chown,\n copyFile,\n lchmod,\n lchown,\n link,\n lstat,\n mkdir,\n mkdtemp,\n open,\n readdir,\n readFile,\n readlink,\n realpath,\n rename,\n rmdir,\n stat,\n symlink,\n truncate,\n unlink,\n utimes,\n writeFile,\n} = fs.promises\n\nimport { promisify } from \"util\"\nexport const rm = \"rm\" in fs.promises\n ? (\n fs.promises as typeof fs.promises & {\n rm: (path: string, options?: fs.RmDirOptions) => Promise\n }\n ).rm\n : promisify(fs.unlink)\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","// This is not the set of all possible signals.\n//\n// It IS, however, the set of all signals that trigger\n// an exit on either Linux or BSD systems. Linux is a\n// superset of the signal names supported on BSD, and\n// the unknown signals just fail to register, so we can\n// catch that easily enough.\n//\n// Don't bother with SIGKILL. It's uncatchable, which\n// means that we can't fire any callbacks anyway.\n//\n// If a user does happen to register a handler on a non-\n// fatal signal like SIGWINCH or something, and then\n// exit, it'll end up firing `process.emit('exit')`, so\n// the handler will be fired anyway.\n//\n// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised\n// artificially, inherently leave the process in a\n// state from which it is not safe to try and enter JS\n// listeners.\nmodule.exports = [\n 'SIGABRT',\n 'SIGALRM',\n 'SIGHUP',\n 'SIGINT',\n 'SIGTERM'\n]\n\nif (process.platform !== 'win32') {\n module.exports.push(\n 'SIGVTALRM',\n 'SIGXCPU',\n 'SIGXFSZ',\n 'SIGUSR2',\n 'SIGTRAP',\n 'SIGSYS',\n 'SIGQUIT',\n 'SIGIOT'\n // should detect profiler and enable/disable accordingly.\n // see #21\n // 'SIGPROF'\n )\n}\n\nif (process.platform === 'linux') {\n module.exports.push(\n 'SIGIO',\n 'SIGPOLL',\n 'SIGPWR',\n 'SIGSTKFLT',\n 'SIGUNUSED'\n )\n}\n","// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","const {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","const SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","const parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // Otherwise it can be determined by checking the high version\n\n if (highVersion.patch) {\n // anything higher than a patch bump would result in the wrong version\n return 'patch'\n }\n\n if (highVersion.minor) {\n // anything higher than a minor bump would result in the wrong version\n return 'minor'\n }\n\n // bumping major/minor/patch all have same result\n return 'major'\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are preleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","const SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","const SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","const parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","const SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","const compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","const compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","const SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","const compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","const compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","const compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","const compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","const compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","const compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","const compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","const compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","const eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","const SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","const ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.format()\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.format()\n }\n\n format () {\n this.range = this.set\n .map((comps) => comps.join(' ').trim())\n .join('||')\n .trim()\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('lru-cache')\nconst cache = new LRU({ max: 1000 })\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n }${z} <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount, ...nodes) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 0; i < nodes.length; i++) {\n walker = insert(this, walker, nodes[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","const Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","const Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","const SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","const Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","const SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","const outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","const Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","const Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","import fs, {promises as fsPromises} from 'node:fs';\n\nexport async function pathExists(path) {\n\ttry {\n\t\tawait fsPromises.access(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nexport function pathExistsSync(path) {\n\ttry {\n\t\tfs.accessSync(path);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n",null,"import { basename, extname } from \"path\"\n\n/**\n * Get the name of the given file path.\n *\n * By default the file extension is included in the returned name. To remove the extension, set the second parameter to `false`.\n *\n * @example\n *\n * ```js\n * import { name } from \"patha\"\n *\n * name(\"path/to/file.md\") // gives \"file.md\"\n *\n * name(\"path/to/file.md\", false) // gives \"file\"\n * ```\n *\n * @param path The given file path\n * @param includeExtension If the name should include the file extension as well\n * @returns The base name without the extension\n */\nexport function name(path: string, includeExtension: boolean = true) {\n if (includeExtension) {\n return basename(path)\n } else {\n return basename(path, extname(path))\n }\n}\n","import { normalize, sep } from \"path\"\nimport escapeRegexp from \"escape-string-regexp\"\n\n/**\n * Normalizes the path and removes the trailing slashes.\n *\n * @example\n *\n * ```js\n * import { normalize, normalizeTrim } from \"patha\"\n *\n * normalizeTrim(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf\"\n *\n * normalize(\"/foo/bar//baz/asdf/hello/../\") // gives \"/foo/bar/baz/asdf/\"\n * ```\n *\n * @param path The given file path\n * @returns The normalized and trimmed file path\n */\nexport function normalizeTrim(path: string) {\n return normalize(path).replace(new RegExp(`${escapeRegexp(sep)}$`), \"\")\n}\n","/**\n * Add bin extension to the given binary name.\n *\n * @example\n *\n * ```js\n * import { addExeExt } from \"patha\"\n *\n * addExeExt(\"path/to/file-name\") // gives \"path/to/file-name.exe\" on Windows and \"path/to/file-name\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext Defaults to `.exe` on Windows\n * @param other_ext Defaults to `\"\"` On other platforms.\n */\nexport function addExeExt(name: string, win_ext = \".exe\", other_ext = \"\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a prefix to the start of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNamePrefix } from \"patha\"\n *\n * addNamePrefix(\"path/to/file-name.ext\", \"new-\") // gives \"path/to/new-file-name.ext\"\n * ```\n *\n * @param path The given file path\n * @param prefix The prefix to add to the start of the file name\n * @returns The path with a prefix added to its file name\n */\nexport function addNamePrefix(path: string, prefix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name prefix\n const NameWithPrefix = `${prefix}${nameWithoutExt}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithPrefix)\n}\n","import { basename, dirname, extname, join } from \"path\"\n\n/**\n * Adds a suffix to the end of the name of the given path\n *\n * @example\n *\n * ```js\n * import { addNameSuffix } from \"patha\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \"-old\") // gives \"path/to/file-name-old.ext\"\n *\n * addNameSuffix(\"path/to/file-name.ext\", \".test\") // gives \"path/to/file-name.test.ext\"\n * ```\n *\n * @param path The given file path\n * @param suffix The suffix to add to the end of the file name\n * @returns The path with a suffix added to its file name\n */\nexport function addNameSuffix(path: string, suffix: string) {\n // get the extension and the file name\n const ext = extname(path)\n const nameWithoutExt = basename(path, ext)\n\n // add the name suffix\n const NameWithSuffix = `${nameWithoutExt}${suffix}${ext}`\n\n // add the dirname back\n return join(dirname(path), NameWithSuffix)\n}\n","/**\n * Add a native shell extension to the given name.\n *\n * @example\n *\n * ```js\n * import { addShExt } from \"patha\"\n *\n * addShExt(\"path/to/file-name\") // gives \"path/to/file-name.cmd\" on Windows and \"path/to/file-name.sh\" on others\n *\n * addShExt(\"path/to/file-name\", \".bat\") // gives \"path/to/file-name.bat\" on Windows and \"path/to/file-name.sh\" on others\n * ```\n *\n * @param name The name you want to add the shell extension to\n * @param win_ext `.cmd` on Windows\n * @param other_ext `.sh` On others.\n * @returns The file path with the shell extension added\n */\nexport function addShExt(name: string, win_ext = \".cmd\", other_ext = \".sh\") {\n if (process.platform === \"win32\") {\n return `${name}${win_ext}`\n }\n return `${name}${other_ext}`\n}\n","/**\n * Prefix a `./` for unix shell and nothing for `cmd`.\n *\n * @example\n *\n * ```js\n * import { addShRelativePrefix } from \"patha\"\n *\n * addShRelativePrefix(\"some/file-name\") // gives \"some/file-name\" on Windows and \"./some/file-name\" on others.\n * ```\n *\n * @param path The given path\n * @returns The path with `./` added on Unix\n */\nexport function addShRelativePrefix(path: string) {\n if (process.platform === \"win32\") {\n return path\n }\n return `./${path}`\n}\n","import { extname } from \"path\"\n\n/**\n * Remove a path's extension.\n *\n * @example\n *\n * ```js\n * import { removeExt } from \"patha\"\n *\n * removeExt(\"some/dir/file.ext\") // gives \"some/dir/file\"\n * ```\n *\n * @param path The given path\n * @returns The path without its file extension\n */\nexport function removeExt(path: string) {\n const extensionLength = extname(path).length\n return path.slice(0, -extensionLength)\n}\n","import replaceExtOrig from \"replace-ext\"\n\n/**\n * Replaces the extension from path with extension and returns the updated path string.\n *\n * Does not replace the extension if path is not a string or is empty.\n *\n * @example\n *\n * ```js\n * import { replaceExt } from \"patha\"\n *\n * replaceExt(\"path/to/file.md\", \".html\") // gives \"path/to/file.html\"\n * ```\n *\n * @param path The given path\n * @param extension The extension to replace\n */\nexport function replaceExt(path: string, extension: string) {\n // TODO replaceExt should not change `/` to `\\\\` on Windows\n return replaceExtOrig(path, extension)\n}\n","import { relative, resolve, sep } from \"path\"\n\n/**\n * Check if a path is inside another path.\n *\n * Note that relative paths are resolved against `process.cwd()` to make them absolute.\n *\n * This function does not check if the paths exist and it only works with strings.\n *\n * @example\n *\n * ```js\n * import { isPathInside } from \"patha\"\n *\n * isPathInside(\"a/b/c\", \"a/b\")\n * //=> true\n *\n * isPathInside(\"a/b/c\", \"x/y\")\n * //=> false\n *\n * isPathInside(\"a/b/c\", \"a/b/c\")\n * //=> false\n *\n * isPathInside(\"/Users/some/dev/aa\", \"/Users/some\")\n * //=> true\n * ```\n */\nexport function isPathInside(childPath: string, parentPath: string): boolean {\n // copied from is-path-inside because the package uses node:path that can't be bundled for the browser\n\n const relation = relative(parentPath, childPath)\n\n return Boolean(relation && relation !== \"..\" && !relation.startsWith(`..${sep}`) && relation !== resolve(childPath))\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","'use strict';\n\nvar path = require('path');\n\nfunction replaceExt(npath, ext) {\n if (typeof npath !== 'string') {\n return npath;\n }\n\n if (npath.length === 0) {\n return npath;\n }\n\n var nFileName = path.basename(npath, path.extname(npath)) + ext;\n var nFilepath = path.join(path.dirname(npath), nFileName);\n\n // Because `path.join` removes the head './' from the given path.\n // This removal can cause a problem when passing the result to `require` or\n // `import`.\n if (startsWithSingleDot(npath)) {\n return '.' + path.sep + nFilepath;\n }\n\n return nFilepath;\n}\n\nfunction startsWithSingleDot(fpath) {\n var first2chars = fpath.slice(0, 2);\n return first2chars === '.' + path.sep || first2chars === './';\n}\n\nmodule.exports = replaceExt;\n",null,null,null,null,null,null,"exports = module.exports = SemVer\n\nvar debug\n/* istanbul ignore next */\nif (typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)) {\n debug = function () {\n var args = Array.prototype.slice.call(arguments, 0)\n args.unshift('SEMVER')\n console.log.apply(console, args)\n }\n} else {\n debug = function () {}\n}\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nexports.SEMVER_SPEC_VERSION = '2.0.0'\n\nvar MAX_LENGTH = 256\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nvar MAX_SAFE_COMPONENT_LENGTH = 16\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\n// The actual regexps go on exports.re\nvar re = exports.re = []\nvar safeRe = exports.safeRe = []\nvar src = exports.src = []\nvar t = exports.tokens = {}\nvar R = 0\n\nfunction tok (n) {\n t[n] = R++\n}\n\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nvar safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nfunction makeSafeRe (value) {\n for (var i = 0; i < safeRegexReplacements.length; i++) {\n var token = safeRegexReplacements[i][0]\n var max = safeRegexReplacements[i][1]\n value = value\n .split(token + '*').join(token + '{0,' + max + '}')\n .split(token + '+').join(token + '{1,' + max + '}')\n }\n return value\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ntok('NUMERICIDENTIFIER')\nsrc[t.NUMERICIDENTIFIER] = '0|[1-9]\\\\d*'\ntok('NUMERICIDENTIFIERLOOSE')\nsrc[t.NUMERICIDENTIFIERLOOSE] = '\\\\d+'\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ntok('NONNUMERICIDENTIFIER')\nsrc[t.NONNUMERICIDENTIFIER] = '\\\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*'\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ntok('MAINVERSION')\nsrc[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIER] + ')'\n\ntok('MAINVERSIONLOOSE')\nsrc[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\\\.' +\n '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ntok('PRERELEASEIDENTIFIER')\nsrc[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\ntok('PRERELEASEIDENTIFIERLOOSE')\nsrc[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +\n '|' + src[t.NONNUMERICIDENTIFIER] + ')'\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ntok('PRERELEASE')\nsrc[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'\n\ntok('PRERELEASELOOSE')\nsrc[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +\n '(?:\\\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ntok('BUILDIDENTIFIER')\nsrc[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+'\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ntok('BUILD')\nsrc[t.BUILD] = '(?:\\\\+(' + src[t.BUILDIDENTIFIER] +\n '(?:\\\\.' + src[t.BUILDIDENTIFIER] + ')*))'\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ntok('FULL')\ntok('FULLPLAIN')\nsrc[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +\n src[t.PRERELEASE] + '?' +\n src[t.BUILD] + '?'\n\nsrc[t.FULL] = '^' + src[t.FULLPLAIN] + '$'\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ntok('LOOSEPLAIN')\nsrc[t.LOOSEPLAIN] = '[v=\\\\s]*' + src[t.MAINVERSIONLOOSE] +\n src[t.PRERELEASELOOSE] + '?' +\n src[t.BUILD] + '?'\n\ntok('LOOSE')\nsrc[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'\n\ntok('GTLT')\nsrc[t.GTLT] = '((?:<|>)?=?)'\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ntok('XRANGEIDENTIFIERLOOSE')\nsrc[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\\\*'\ntok('XRANGEIDENTIFIER')\nsrc[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\\\*'\n\ntok('XRANGEPLAIN')\nsrc[t.XRANGEPLAIN] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIER] + ')' +\n '(?:' + src[t.PRERELEASE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGEPLAINLOOSE')\nsrc[t.XRANGEPLAINLOOSE] = '[v=\\\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:\\\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +\n '(?:' + src[t.PRERELEASELOOSE] + ')?' +\n src[t.BUILD] + '?' +\n ')?)?'\n\ntok('XRANGE')\nsrc[t.XRANGE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAIN] + '$'\ntok('XRANGELOOSE')\nsrc[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\\\s*' + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ntok('COERCE')\nsrc[t.COERCE] = '(^|[^\\\\d])' +\n '(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:\\\\.(\\\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +\n '(?:$|[^\\\\d])'\ntok('COERCERTL')\nre[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')\nsafeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g')\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ntok('LONETILDE')\nsrc[t.LONETILDE] = '(?:~>?)'\n\ntok('TILDETRIM')\nsrc[t.TILDETRIM] = '(\\\\s*)' + src[t.LONETILDE] + '\\\\s+'\nre[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')\nsafeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g')\nvar tildeTrimReplace = '$1~'\n\ntok('TILDE')\nsrc[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'\ntok('TILDELOOSE')\nsrc[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ntok('LONECARET')\nsrc[t.LONECARET] = '(?:\\\\^)'\n\ntok('CARETTRIM')\nsrc[t.CARETTRIM] = '(\\\\s*)' + src[t.LONECARET] + '\\\\s+'\nre[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')\nsafeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g')\nvar caretTrimReplace = '$1^'\n\ntok('CARET')\nsrc[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'\ntok('CARETLOOSE')\nsrc[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ntok('COMPARATORLOOSE')\nsrc[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'\ntok('COMPARATOR')\nsrc[t.COMPARATOR] = '^' + src[t.GTLT] + '\\\\s*(' + src[t.FULLPLAIN] + ')$|^$'\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ntok('COMPARATORTRIM')\nsrc[t.COMPARATORTRIM] = '(\\\\s*)' + src[t.GTLT] +\n '\\\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'\n\n// this one has to use the /g flag\nre[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')\nsafeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g')\nvar comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ntok('HYPHENRANGE')\nsrc[t.HYPHENRANGE] = '^\\\\s*(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAIN] + ')' +\n '\\\\s*$'\n\ntok('HYPHENRANGELOOSE')\nsrc[t.HYPHENRANGELOOSE] = '^\\\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s+-\\\\s+' +\n '(' + src[t.XRANGEPLAINLOOSE] + ')' +\n '\\\\s*$'\n\n// Star ranges basically just allow anything at all.\ntok('STAR')\nsrc[t.STAR] = '(<|>)?=?\\\\s*\\\\*'\n\n// Compile to actual regexp objects.\n// All are flag-free, unless they were created above with a flag.\nfor (var i = 0; i < R; i++) {\n debug(i, src[i])\n if (!re[i]) {\n re[i] = new RegExp(src[i])\n\n // Replace all greedy whitespace to prevent regex dos issues. These regex are\n // used internally via the safeRe object since all inputs in this library get\n // normalized first to trim and collapse all extra whitespace. The original\n // regexes are exported for userland consumption and lower level usage. A\n // future breaking change could export the safer regex only with a note that\n // all input should have extra whitespace removed.\n safeRe[i] = new RegExp(makeSafeRe(src[i]))\n }\n}\n\nexports.parse = parse\nfunction parse (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n if (version.length > MAX_LENGTH) {\n return null\n }\n\n var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]\n if (!r.test(version)) {\n return null\n }\n\n try {\n return new SemVer(version, options)\n } catch (er) {\n return null\n }\n}\n\nexports.valid = valid\nfunction valid (version, options) {\n var v = parse(version, options)\n return v ? v.version : null\n}\n\nexports.clean = clean\nfunction clean (version, options) {\n var s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\n\nexports.SemVer = SemVer\n\nfunction SemVer (version, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n if (version instanceof SemVer) {\n if (version.loose === options.loose) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')\n }\n\n if (!(this instanceof SemVer)) {\n return new SemVer(version, options)\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n\n var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL])\n\n if (!m) {\n throw new TypeError('Invalid Version: ' + version)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map(function (id) {\n if (/^[0-9]+$/.test(id)) {\n var num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n}\n\nSemVer.prototype.format = function () {\n this.version = this.major + '.' + this.minor + '.' + this.patch\n if (this.prerelease.length) {\n this.version += '-' + this.prerelease.join('.')\n }\n return this.version\n}\n\nSemVer.prototype.toString = function () {\n return this.version\n}\n\nSemVer.prototype.compare = function (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return this.compareMain(other) || this.comparePre(other)\n}\n\nSemVer.prototype.compareMain = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n}\n\nSemVer.prototype.comparePre = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n var i = 0\n do {\n var a = this.prerelease[i]\n var b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\nSemVer.prototype.compareBuild = function (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n var i = 0\n do {\n var a = this.build[i]\n var b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n}\n\n// preminor will bump the version up to the next minor release, and immediately\n// down to pre-release. premajor and prepatch work the same way.\nSemVer.prototype.inc = function (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 \"pre\" would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n var i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error('invalid increment argument: ' + release)\n }\n this.format()\n this.raw = this.version\n return this\n}\n\nexports.inc = inc\nfunction inc (version, release, loose, identifier) {\n if (typeof (loose) === 'string') {\n identifier = loose\n loose = undefined\n }\n\n try {\n return new SemVer(version, loose).inc(release, identifier).version\n } catch (er) {\n return null\n }\n}\n\nexports.diff = diff\nfunction diff (version1, version2) {\n if (eq(version1, version2)) {\n return null\n } else {\n var v1 = parse(version1)\n var v2 = parse(version2)\n var prefix = ''\n if (v1.prerelease.length || v2.prerelease.length) {\n prefix = 'pre'\n var defaultResult = 'prerelease'\n }\n for (var key in v1) {\n if (key === 'major' || key === 'minor' || key === 'patch') {\n if (v1[key] !== v2[key]) {\n return prefix + key\n }\n }\n }\n return defaultResult // may be undefined\n }\n}\n\nexports.compareIdentifiers = compareIdentifiers\n\nvar numeric = /^[0-9]+$/\nfunction compareIdentifiers (a, b) {\n var anum = numeric.test(a)\n var bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nexports.rcompareIdentifiers = rcompareIdentifiers\nfunction rcompareIdentifiers (a, b) {\n return compareIdentifiers(b, a)\n}\n\nexports.major = major\nfunction major (a, loose) {\n return new SemVer(a, loose).major\n}\n\nexports.minor = minor\nfunction minor (a, loose) {\n return new SemVer(a, loose).minor\n}\n\nexports.patch = patch\nfunction patch (a, loose) {\n return new SemVer(a, loose).patch\n}\n\nexports.compare = compare\nfunction compare (a, b, loose) {\n return new SemVer(a, loose).compare(new SemVer(b, loose))\n}\n\nexports.compareLoose = compareLoose\nfunction compareLoose (a, b) {\n return compare(a, b, true)\n}\n\nexports.compareBuild = compareBuild\nfunction compareBuild (a, b, loose) {\n var versionA = new SemVer(a, loose)\n var versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\n\nexports.rcompare = rcompare\nfunction rcompare (a, b, loose) {\n return compare(b, a, loose)\n}\n\nexports.sort = sort\nfunction sort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(a, b, loose)\n })\n}\n\nexports.rsort = rsort\nfunction rsort (list, loose) {\n return list.sort(function (a, b) {\n return exports.compareBuild(b, a, loose)\n })\n}\n\nexports.gt = gt\nfunction gt (a, b, loose) {\n return compare(a, b, loose) > 0\n}\n\nexports.lt = lt\nfunction lt (a, b, loose) {\n return compare(a, b, loose) < 0\n}\n\nexports.eq = eq\nfunction eq (a, b, loose) {\n return compare(a, b, loose) === 0\n}\n\nexports.neq = neq\nfunction neq (a, b, loose) {\n return compare(a, b, loose) !== 0\n}\n\nexports.gte = gte\nfunction gte (a, b, loose) {\n return compare(a, b, loose) >= 0\n}\n\nexports.lte = lte\nfunction lte (a, b, loose) {\n return compare(a, b, loose) <= 0\n}\n\nexports.cmp = cmp\nfunction cmp (a, op, b, loose) {\n switch (op) {\n case '===':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a === b\n\n case '!==':\n if (typeof a === 'object')\n a = a.version\n if (typeof b === 'object')\n b = b.version\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError('Invalid operator: ' + op)\n }\n}\n\nexports.Comparator = Comparator\nfunction Comparator (comp, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n if (!(this instanceof Comparator)) {\n return new Comparator(comp, options)\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n}\n\nvar ANY = {}\nComparator.prototype.parse = function (comp) {\n var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var m = comp.match(r)\n\n if (!m) {\n throw new TypeError('Invalid comparator: ' + comp)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n}\n\nComparator.prototype.toString = function () {\n return this.value\n}\n\nComparator.prototype.test = function (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n}\n\nComparator.prototype.intersects = function (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n var rangeTmp\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n rangeTmp = new Range(comp.value, options)\n return satisfies(this.value, rangeTmp, options)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n rangeTmp = new Range(this.value, options)\n return satisfies(comp.semver, rangeTmp, options)\n }\n\n var sameDirectionIncreasing =\n (this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '>=' || comp.operator === '>')\n var sameDirectionDecreasing =\n (this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '<=' || comp.operator === '<')\n var sameSemVer = this.semver.version === comp.semver.version\n var differentDirectionsInclusive =\n (this.operator === '>=' || this.operator === '<=') &&\n (comp.operator === '>=' || comp.operator === '<=')\n var oppositeDirectionsLessThan =\n cmp(this.semver, '<', comp.semver, options) &&\n ((this.operator === '>=' || this.operator === '>') &&\n (comp.operator === '<=' || comp.operator === '<'))\n var oppositeDirectionsGreaterThan =\n cmp(this.semver, '>', comp.semver, options) &&\n ((this.operator === '<=' || this.operator === '<') &&\n (comp.operator === '>=' || comp.operator === '>'))\n\n return sameDirectionIncreasing || sameDirectionDecreasing ||\n (sameSemVer && differentDirectionsInclusive) ||\n oppositeDirectionsLessThan || oppositeDirectionsGreaterThan\n}\n\nexports.Range = Range\nfunction Range (range, options) {\n if (!options || typeof options !== 'object') {\n options = {\n loose: !!options,\n includePrerelease: false\n }\n }\n\n if (range instanceof Range) {\n if (range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n return new Range(range.value, options)\n }\n\n if (!(this instanceof Range)) {\n return new Range(range, options)\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range\n .trim()\n .split(/\\s+/)\n .join(' ')\n\n // First, split based on boolean or ||\n this.set = this.raw.split('||').map(function (range) {\n return this.parseRange(range.trim())\n }, this).filter(function (c) {\n // throw out any that are not relevant for whatever reason\n return c.length\n })\n\n if (!this.set.length) {\n throw new TypeError('Invalid SemVer Range: ' + this.raw)\n }\n\n this.format()\n}\n\nRange.prototype.format = function () {\n this.range = this.set.map(function (comps) {\n return comps.join(' ').trim()\n }).join('||').trim()\n return this.range\n}\n\nRange.prototype.toString = function () {\n return this.range\n}\n\nRange.prototype.parseRange = function (range) {\n var loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace)\n debug('hyphen replace', range)\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range, safeRe[t.COMPARATORTRIM])\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace)\n\n // normalize spaces\n range = range.split(/\\s+/).join(' ')\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR]\n var set = range.split(' ').map(function (comp) {\n return parseComparator(comp, this.options)\n }, this).join(' ').split(/\\s+/)\n if (this.options.loose) {\n // in loose mode, throw out any that are not valid comparators\n set = set.filter(function (comp) {\n return !!comp.match(compRe)\n })\n }\n set = set.map(function (comp) {\n return new Comparator(comp, this.options)\n }, this)\n\n return set\n}\n\nRange.prototype.intersects = function (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some(function (thisComparators) {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some(function (rangeComparators) {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every(function (thisComparator) {\n return rangeComparators.every(function (rangeComparator) {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n}\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nfunction isSatisfiable (comparators, options) {\n var result = true\n var remainingComparators = comparators.slice()\n var testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every(function (otherComparator) {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// Mostly just for testing and legacy API reasons\nexports.toComparators = toComparators\nfunction toComparators (range, options) {\n return new Range(range, options).set.map(function (comp) {\n return comp.map(function (c) {\n return c.value\n }).join(' ').trim().split(' ')\n })\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nfunction parseComparator (comp, options) {\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nfunction isX (id) {\n return !id || id.toLowerCase() === 'x' || id === '*'\n}\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0\nfunction replaceTildes (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceTilde(comp, options)\n }).join(' ')\n}\n\nfunction replaceTilde (comp, options) {\n var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('tilde', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0\n// ^1.2.3 --> >=1.2.3 <2.0.0\n// ^1.2.0 --> >=1.2.0 <2.0.0\nfunction replaceCarets (comp, options) {\n return comp.trim().split(/\\s+/).map(function (comp) {\n return replaceCaret(comp, options)\n }).join(' ')\n}\n\nfunction replaceCaret (comp, options) {\n debug('caret', comp, options)\n var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET]\n return comp.replace(r, function (_, M, m, p, pr) {\n debug('caret', comp, _, M, m, p, pr)\n var ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'\n } else if (isX(p)) {\n if (M === '0') {\n ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'\n } else {\n ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p + '-' + pr +\n ' <' + (+M + 1) + '.0.0'\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + m + '.' + (+p + 1)\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + M + '.' + (+m + 1) + '.0'\n }\n } else {\n ret = '>=' + M + '.' + m + '.' + p +\n ' <' + (+M + 1) + '.0.0'\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nfunction replaceXRanges (comp, options) {\n debug('replaceXRanges', comp, options)\n return comp.split(/\\s+/).map(function (comp) {\n return replaceXRange(comp, options)\n }).join(' ')\n}\n\nfunction replaceXRange (comp, options) {\n comp = comp.trim()\n var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE]\n return comp.replace(r, function (ret, gtlt, M, m, p, pr) {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n var xM = isX(M)\n var xm = xM || isX(m)\n var xp = xm || isX(p)\n var anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n // >1.2.3 => >= 1.2.4\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n ret = gtlt + M + '.' + m + '.' + p + pr\n } else if (xm) {\n ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr\n } else if (xp) {\n ret = '>=' + M + '.' + m + '.0' + pr +\n ' <' + M + '.' + (+m + 1) + '.0' + pr\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nfunction replaceStars (comp, options) {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp.trim().replace(safeRe[t.STAR], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0\nfunction hyphenReplace ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr, tb) {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = '>=' + fM + '.0.0'\n } else if (isX(fp)) {\n from = '>=' + fM + '.' + fm + '.0'\n } else {\n from = '>=' + from\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = '<' + (+tM + 1) + '.0.0'\n } else if (isX(tp)) {\n to = '<' + tM + '.' + (+tm + 1) + '.0'\n } else if (tpr) {\n to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr\n } else {\n to = '<=' + to\n }\n\n return (from + ' ' + to).trim()\n}\n\n// if ANY of the sets match ALL of its comparators, then pass\nRange.prototype.test = function (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (var i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n}\n\nfunction testSet (set, version, options) {\n for (var i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n var allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n\nexports.satisfies = satisfies\nfunction satisfies (version, range, options) {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\n\nexports.maxSatisfying = maxSatisfying\nfunction maxSatisfying (versions, range, options) {\n var max = null\n var maxSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\n\nexports.minSatisfying = minSatisfying\nfunction minSatisfying (versions, range, options) {\n var min = null\n var minSV = null\n try {\n var rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach(function (v) {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\n\nexports.minVersion = minVersion\nfunction minVersion (range, loose) {\n range = new Range(range, loose)\n\n var minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n comparators.forEach(function (comparator) {\n // Clone to avoid manipulating the comparator's semver object.\n var compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!minver || gt(minver, compver)) {\n minver = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error('Unexpected operation: ' + comparator.operator)\n }\n })\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\n\nexports.validRange = validRange\nfunction validRange (range, options) {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\n\n// Determine if version is less than all the versions possible in the range\nexports.ltr = ltr\nfunction ltr (version, range, options) {\n return outside(version, range, '<', options)\n}\n\n// Determine if version is greater than all the versions possible in the range.\nexports.gtr = gtr\nfunction gtr (version, range, options) {\n return outside(version, range, '>', options)\n}\n\nexports.outside = outside\nfunction outside (version, range, hilo, options) {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n var gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisifes the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (var i = 0; i < range.set.length; ++i) {\n var comparators = range.set[i]\n\n var high = null\n var low = null\n\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nexports.prerelease = prerelease\nfunction prerelease (version, options) {\n var parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\n\nexports.intersects = intersects\nfunction intersects (r1, r2, options) {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2)\n}\n\nexports.coerce = coerce\nfunction coerce (version, options) {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n var match = null\n if (!options.rtl) {\n match = version.match(safeRe[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n var next\n while ((next = safeRe[t.COERCERTL].exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n safeRe[t.COERCERTL].lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n return parse(match[2] +\n '.' + (match[3] || '0') +\n '.' + (match[4] || '0'), options)\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","// Unique ID creation requires a high quality random # generator. In node.js\n// this is pretty straight-forward - we use the crypto API.\n\nvar crypto = require('crypto');\n\nmodule.exports = function nodeRNG() {\n return crypto.randomBytes(16);\n};\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n",null,null,null,null,"module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"actions_python.c4cbfdde.js\"))).then(() => parcelRequire('4kQHk'));","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"hdi.340fbf70.js\"))).then(() => parcelRequire('8Fs7q'));","#!/usr/bin/env node\n/* eslint-disable node/shebang */\n\nimport { GITHUB_ACTIONS, isCI } from \"ci-info\"\nimport { error, info, success, warning } from \"ci-log\"\nimport * as numerous from \"numerous\"\nimport numerousLocale from \"numerous/locales/en.js\"\nimport * as timeDelta from \"time-delta\"\nimport timeDeltaLocale from \"time-delta/locales/en.js\"\nimport { untildifyUser } from \"untildify-user\"\nimport { checkUpdates } from \"./check-updates\"\nimport { parseArgs, printHelp } from \"./cli-options\"\nimport { installCompiler } from \"./compilers\"\nimport { installTool } from \"./installTool\"\nimport { tools } from \"./tool\"\nimport { finalizeCpprc } from \"./utils/env/addEnv\"\nimport { isArch } from \"./utils/env/isArch\"\nimport { ubuntuVersion } from \"./utils/env/ubuntu_version\"\nimport { setupPacmanPack } from \"./utils/setup/setupPacmanPack\"\nimport { syncVersions } from \"./versions/versions\"\n\n/** The main entry function */\nasync function main(args: string[]): Promise {\n let checkUpdatePromise = Promise.resolve()\n if (!GITHUB_ACTIONS) {\n checkUpdatePromise = checkUpdates()\n process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS = \"true\"\n }\n\n // parse options using mri or github actions\n const opts = parseArgs(args)\n\n // print help\n if (opts.help) {\n printHelp()\n }\n\n // cpu architecture\n const arch = opts.architecture ?? process.arch\n\n // the installation dir for the tools that are downloaded directly\n const setupCppDir = process.env.SETUP_CPP_DIR ?? untildifyUser(\"~\")\n\n // report messages\n const successMessages: string[] = []\n const errorMessages: string[] = []\n\n const timeFormatter = timeDelta.create({ autoloadLocales: true })\n timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)\n numerous.addLocale(numerousLocale as numerous.Locale)\n let time1: number\n let time2: number\n\n // installing the specified tools\n\n const osVersion = await ubuntuVersion()\n\n // sync the version for the llvm tools\n if (!syncVersions(opts, [\"llvm\", \"clangtidy\", \"clangformat\"])) {\n error(\"The same version must be used for llvm, clangformat and clangtidy\")\n return 1\n }\n\n if (isArch() && typeof opts.cppcheck === \"string\" && typeof opts.gcovr === \"string\") {\n info(\"installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux\")\n await setupPacmanPack(\"python-pygments\")\n }\n\n /** Used to unset CPPFLAGS of LLVM when other compilers are used as the main compiler */\n let hasLLVM = false\n\n // loop over the tools and run their setup function\n\n let failedFast = false\n for (const tool of tools) {\n // fail fast inside CI when any tool fails\n if (isCI) {\n if (errorMessages.length !== 0) {\n failedFast = true\n break\n }\n }\n\n // get the version or \"true\" or undefined for this tool from the options\n const version = opts[tool]\n\n // skip if undefined\n if (version !== undefined) {\n // running the setup function for this tool\n time1 = Date.now()\n // eslint-disable-next-line no-await-in-loop\n hasLLVM = await installTool(\n tool,\n version,\n osVersion,\n arch,\n setupCppDir,\n successMessages,\n errorMessages,\n parseFloat(opts.timeout ?? \"20\") * 60 * 1000,\n )\n time2 = Date.now()\n info(`took ${timeFormatter.format(time1, time2) || \"0 seconds\"}`)\n }\n }\n\n if (!failedFast) {\n // installing the specified compiler\n const maybeCompiler = opts.compiler\n if (maybeCompiler !== undefined) {\n const time1Compiler = Date.now()\n await installCompiler(maybeCompiler, osVersion, setupCppDir, arch, successMessages, hasLLVM, errorMessages)\n const time2Compiler = Date.now()\n info(`took ${timeFormatter.format(time1Compiler, time2Compiler) || \"0 seconds\"}`)\n }\n }\n\n await finalizeCpprc()\n\n if (successMessages.length === 0 && errorMessages.length === 0) {\n warning(\"setup-cpp was called without any arguments. Nothing to do.\")\n return 0\n }\n\n // report the messages in the end\n successMessages.forEach((tool) => success(tool))\n errorMessages.forEach((tool) => error(tool))\n\n info(\"setup-cpp finished\")\n\n if (!GITHUB_ACTIONS) {\n switch (process.platform) {\n case \"win32\": {\n warning(\"Run `RefreshEnv.cmd` or restart your shell to update the environment.\")\n break\n }\n case \"linux\":\n case \"darwin\": {\n warning(\"Run `source ~/.cpprc` or restart your shell to update the environment.\")\n break\n }\n default: {\n // nothing\n }\n }\n }\n\n await checkUpdatePromise\n\n return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message\n}\n\n// Run main\nmain(process.argv)\n .then((ret) => {\n process.exitCode = ret\n })\n .catch((err) => {\n error(\"main() panicked!\")\n error(err as string | Error)\n process.exitCode = 1\n })\n","(function () {\n var root = this;\n var numerous;\n if ('function' === typeof require) {\n numerous = require('../lib/numerous.js');\n } else {\n numerous = root.numerous;\n }\n numerous.addLocale('en', function pluralize_en(n /*``*/ ) {\n var i = Math.floor(Math.abs(n)),\n v = n.toString().replace(/^[^.]*\\.?/, \"\").length;\n if (typeof n === \"string\") n = parseInt(n, 10);\n if (i === 1 && v === 0) return \"one\";\n return \"other\"\n });\n}).call(this);","\nmodule.exports = require('./lib/time-delta.js');\n","module.exports = {\n \"id\": \"en\",\n \"data\": {\n \"long\": {\n \"years\": {\n \"one\": \"{0} year\",\n \"other\": \"{0} years\"\n },\n \"months\": {\n \"one\": \"{0} month\",\n \"other\": \"{0} months\"\n },\n \"weeks\": {\n \"one\": \"{0} week\",\n \"other\": \"{0} weeks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hour\",\n \"other\": \"{0} hours\"\n },\n \"minutes\": {\n \"one\": \"{0} minute\",\n \"other\": \"{0} minutes\"\n },\n \"seconds\": {\n \"one\": \"{0} second\",\n \"other\": \"{0} seconds\"\n }\n },\n \"narrow\": {\n \"years\": {\n \"one\": \"{0}y\",\n \"other\": \"{0}y\"\n },\n \"months\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"weeks\": {\n \"one\": \"{0}w\",\n \"other\": \"{0}w\"\n },\n \"days\": {\n \"one\": \"{0}d\",\n \"other\": \"{0}d\"\n },\n \"hours\": {\n \"one\": \"{0}h\",\n \"other\": \"{0}h\"\n },\n \"minutes\": {\n \"one\": \"{0}m\",\n \"other\": \"{0}m\"\n },\n \"seconds\": {\n \"one\": \"{0}s\",\n \"other\": \"{0}s\"\n }\n },\n \"short\": {\n \"years\": {\n \"one\": \"{0} yr\",\n \"other\": \"{0} yrs\"\n },\n \"months\": {\n \"one\": \"{0} mth\",\n \"other\": \"{0} mths\"\n },\n \"weeks\": {\n \"one\": \"{0} wk\",\n \"other\": \"{0} wks\"\n },\n \"days\": {\n \"one\": \"{0} day\",\n \"other\": \"{0} days\"\n },\n \"hours\": {\n \"one\": \"{0} hr\",\n \"other\": \"{0} hr\"\n },\n \"minutes\": {\n \"one\": \"{0} min\",\n \"other\": \"{0} min\"\n },\n \"seconds\": {\n \"one\": \"{0} sec\",\n \"other\": \"{0} sec\"\n }\n }\n }\n};\n","import { isSudo } from \"admina\"\nimport { homedir } from \"os\"\nimport { join } from \"path\"\n\nexport function userHomeDir() {\n if (isSudo() && typeof process.env.SUDO_USER === \"string\" && process.env.SUDO_USER !== \"\") {\n // use the user profile even if root\n if (process.platform === \"darwin\") {\n return join(\"/Users/\", process.env.SUDO_USER)\n } else {\n return join(\"/home/\", process.env.SUDO_USER)\n }\n } else {\n const maybeHomeDir = homedir()\n if (maybeHomeDir === \"\") {\n return undefined\n }\n return maybeHomeDir\n }\n}\n\nconst tildeRegex = /^~(?=$|\\/|\\\\)/\n\n/**\n * Replaces a tilde with the user's home directory\n *\n * @example UntildifyUser(\"~/foo\") // /home/user/foo\n *\n * @param path The path to untildify\n * @returns The untildified path\n */\nexport function untildifyUser(path: string) {\n const maybeHomeDir = userHomeDir()\n if (maybeHomeDir === undefined) {\n return path\n }\n\n return path.replace(tildeRegex, maybeHomeDir)\n}\n","export * from \"./root.mjs\"\nexport * from \"./admin.mjs\"\nexport * from \"./user-access.mjs\"\n",null,"import which from \"which\"\nimport {\n execa,\n execaCommand,\n execaCommandSync,\n execaSync,\n SyncOptions as ExecaSyncOptions,\n ExecaSyncReturnValue,\n Options as ExecaOptions,\n ExecaChildProcess,\n} from \"execa\"\n\n/** Detect if sudo is available */\nexport function hasSudo(): boolean {\n return which.sync(\"sudo\", { nothrow: true }) !== null\n}\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isRoot } from \"admina\"\n *\n * console.log(isRoot())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport function isRoot(): boolean {\n // TODO not all CI systems are root\n return process.getuid?.() === 0 || Boolean(process.env.CI)\n}\n\n/** Detect if sudo is available and the user has root privileges */\nexport function isSudo(): boolean {\n return isRoot() && hasSudo()\n}\n\n/** Prepend `sudo` to the command if sudo is available */\nexport function prependSudo(command: string) {\n if (isSudo()) {\n return `sudo ${command}`\n }\n return command\n}\n\n/** Default exec options `{ stdio: \"inherit\", shell: true }` */\nexport const defaultExecOptions: ExecaSyncOptions = { stdio: \"inherit\", shell: true }\n\n/**\n * Execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns The execution result\n */\nexport function execRootSync(\n program: string,\n args: string[] = [],\n execOptions: ExecaSyncOptions = defaultExecOptions,\n): ExecaSyncReturnValue {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommandSync(command, execOptions)\n } else {\n return execaSync(program, quote(args), execOptions)\n }\n}\n\n/**\n * Asynchronously execute a command as root if sudo is available. Otherwise executes the command normally without sudo.\n *\n * @param program The program to spawn\n * @param args The command arguments\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\", shell: true }`\n * @returns A promise to the execution result\n */\nexport function execRoot(\n program: string,\n args: string[] = [],\n execOptions: ExecaOptions = defaultExecOptions,\n): ExecaChildProcess {\n if (isSudo()) {\n const command = getSudoCommand(program, args)\n return execaCommand(command, execOptions)\n } else {\n return execa(program, quote(args), execOptions)\n }\n}\n\nfunction getSudoCommand(program: string, args: string[]) {\n return `sudo ${quote([program, ...args]).join(\" \")}`\n}\n\nfunction quote(strings: string[]) {\n return strings.map((str) => `'${str}'`)\n}\n","const { isexe, sync: isexeSync } = require('isexe')\nconst { join, delimiter, sep, posix } = require('path')\n\nconst isWindows = process.platform === 'win32'\n\n// used to check for slashed in commands passed in. always checks for the posix\n// seperator on all platforms, and checks for the current separator when not on\n// a posix platform. don't use the isWindows check for this since that is mocked\n// in tests but we still need the code to actually work when called. that is also\n// why it is ignored from coverage.\n/* istanbul ignore next */\nconst rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\\\)/g, '\\\\$1'))\nconst rRel = new RegExp(`^\\\\.${rSlash.source}`)\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, {\n path: optPath = process.env.PATH,\n pathExt: optPathExt = process.env.PATHEXT,\n delimiter: optDelimiter = delimiter,\n}) => {\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(rSlash) ? [''] : [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(optPath || /* istanbul ignore next: very unusual */ '').split(optDelimiter),\n ]\n\n if (isWindows) {\n const pathExtExe = optPathExt ||\n ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)\n const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()])\n if (cmd.includes('.') && pathExt[0] !== '') {\n pathExt.unshift('')\n }\n return { pathEnv, pathExt, pathExtExe }\n }\n\n return { pathEnv, pathExt: [''] }\n}\n\nconst getPathPart = (raw, cmd) => {\n const pathPart = /^\".*\"$/.test(raw) ? raw.slice(1, -1) : raw\n const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''\n return prefix + join(pathPart, cmd)\n}\n\nconst which = async (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const envPart of pathEnv) {\n const p = getPathPart(envPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nconst whichSync = (cmd, opt = {}) => {\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (const pathEnvPart of pathEnv) {\n const p = getPathPart(pathEnvPart, cmd)\n\n for (const ext of pathExt) {\n const withExt = p + ext\n const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true })\n if (is) {\n if (!opt.all) {\n return withExt\n }\n found.push(withExt)\n }\n }\n }\n\n if (opt.all && found.length) {\n return found\n }\n\n if (opt.nothrow) {\n return null\n }\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n",null,"import * as posix from './posix.js'\nimport * as win32 from './win32.js'\nexport * from './options.js'\nexport { win32, posix }\n\nconst platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform\nconst impl = platform === 'win32' ? win32 : posix\n\n/**\n * Determine whether a path is executable on the current platform.\n */\nexport const isexe = impl.isexe\n/**\n * Synchronously determine whether a path is executable on the\n * current platform.\n */\nexport const sync = impl.sync\n",null,"/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n",null,"/**\n * This is the Windows implementation of isexe, which uses the file\n * extension and PATHEXT setting.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'fs'\nimport { stat } from 'fs/promises'\nimport { IsexeOptions } from './options'\n\n/**\n * Determine whether a path is executable based on the file extension\n * and PATHEXT environment variable (or specified pathExt option)\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {}\n): Promise => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable based on the file\n * extension and PATHEXT environment variable (or specified pathExt option)\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {}\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), path, options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkPathExt = (path: string, options: IsexeOptions) => {\n const { pathExt = process.env.PATHEXT || '' } = options\n const peSplit = pathExt.split(';')\n if (peSplit.indexOf('') !== -1) {\n return true\n }\n\n for (let i = 0; i < peSplit.length; i++) {\n const p = peSplit[i].toLowerCase()\n const ext = path.substring(path.length - p.length).toLowerCase()\n\n if (p && ext === p) {\n return true\n }\n }\n return false\n}\n\nconst checkStat = (stat: Stats, path: string, options: IsexeOptions) =>\n stat.isFile() && checkPathExt(path, options)\n","export interface IsexeOptions {\n /**\n * Ignore errors arising from attempting to get file access status\n * Note that EACCES is always ignored, because that just means\n * it's not executable. If this is not set, then attempting to check\n * the executable-ness of a nonexistent file will raise ENOENT, for\n * example.\n */\n ignoreErrors?: boolean\n\n /**\n * effective uid when checking executable mode flags on posix\n * Defaults to process.getuid()\n */\n uid?: number\n\n /**\n * effective gid when checking executable mode flags on posix\n * Defaults to process.getgid()\n */\n gid?: number\n\n /**\n * effective group ID list to use when checking executable mode flags\n * on posix\n * Defaults to process.getgroups()\n */\n groups?: number[]\n\n /**\n * The ;-delimited path extension list for win32 implementation.\n * Defaults to process.env.PATHEXT\n */\n pathExt?: string\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","export default function stripFinalNewline(input) {\n\tconst LF = typeof input === 'string' ? '\\n' : '\\n'.charCodeAt();\n\tconst CR = typeof input === 'string' ? '\\r' : '\\r'.charCodeAt();\n\n\tif (input[input.length - 1] === LF) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\tif (input[input.length - 1] === CR) {\n\t\tinput = input.slice(0, -1);\n\t}\n\n\treturn input;\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport url from 'node:url';\nimport pathKey from 'path-key';\n\nexport function npmRunPath(options = {}) {\n\tconst {\n\t\tcwd = process.cwd(),\n\t\tpath: path_ = process.env[pathKey()],\n\t\texecPath = process.execPath,\n\t} = options;\n\n\tlet previous;\n\tconst execPathString = execPath instanceof URL ? url.fileURLToPath(execPath) : execPath;\n\tconst cwdString = cwd instanceof URL ? url.fileURLToPath(cwd) : cwd;\n\tlet cwdPath = path.resolve(cwdString);\n\tconst result = [];\n\n\twhile (previous !== cwdPath) {\n\t\tresult.push(path.join(cwdPath, 'node_modules/.bin'));\n\t\tprevious = cwdPath;\n\t\tcwdPath = path.resolve(cwdPath, '..');\n\t}\n\n\t// Ensure the running `node` binary is used.\n\tresult.push(path.resolve(cwdString, execPathString, '..'));\n\n\treturn [...result, path_].join(path.delimiter);\n}\n\nexport function npmRunPathEnv({env = process.env, ...options} = {}) {\n\tenv = {...env};\n\n\tconst path = pathKey({env});\n\toptions.path = env[path];\n\tenv[path] = npmRunPath(options);\n\n\treturn env;\n}\n","export default function pathKey(options = {}) {\n\tconst {\n\t\tenv = process.env,\n\t\tplatform = process.platform\n\t} = options;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n}\n","import mimicFunction from 'mimic-fn';\n\nconst calledFunctions = new WeakMap();\n\nconst onetime = (function_, options = {}) => {\n\tif (typeof function_ !== 'function') {\n\t\tthrow new TypeError('Expected a function');\n\t}\n\n\tlet returnValue;\n\tlet callCount = 0;\n\tconst functionName = function_.displayName || function_.name || '';\n\n\tconst onetime = function (...arguments_) {\n\t\tcalledFunctions.set(onetime, ++callCount);\n\n\t\tif (callCount === 1) {\n\t\t\treturnValue = function_.apply(this, arguments_);\n\t\t\tfunction_ = null;\n\t\t} else if (options.throw === true) {\n\t\t\tthrow new Error(`Function \\`${functionName}\\` can only be called once`);\n\t\t}\n\n\t\treturn returnValue;\n\t};\n\n\tmimicFunction(onetime, function_);\n\tcalledFunctions.set(onetime, callCount);\n\n\treturn onetime;\n};\n\nonetime.callCount = function_ => {\n\tif (!calledFunctions.has(function_)) {\n\t\tthrow new Error(`The given function \\`${function_.name}\\` is not wrapped by the \\`onetime\\` package`);\n\t}\n\n\treturn calledFunctions.get(function_);\n};\n\nexport default onetime;\n","const copyProperty = (to, from, property, ignoreNonConfigurable) => {\n\t// `Function#length` should reflect the parameters of `to` not `from` since we keep its body.\n\t// `Function#prototype` is non-writable and non-configurable so can never be modified.\n\tif (property === 'length' || property === 'prototype') {\n\t\treturn;\n\t}\n\n\t// `Function#arguments` and `Function#caller` should not be copied. They were reported to be present in `Reflect.ownKeys` for some devices in React Native (#41), so we explicitly ignore them here.\n\tif (property === 'arguments' || property === 'caller') {\n\t\treturn;\n\t}\n\n\tconst toDescriptor = Object.getOwnPropertyDescriptor(to, property);\n\tconst fromDescriptor = Object.getOwnPropertyDescriptor(from, property);\n\n\tif (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {\n\t\treturn;\n\t}\n\n\tObject.defineProperty(to, property, fromDescriptor);\n};\n\n// `Object.defineProperty()` throws if the property exists, is not configurable and either:\n// - one its descriptors is changed\n// - it is non-writable and its value is changed\nconst canCopyProperty = function (toDescriptor, fromDescriptor) {\n\treturn toDescriptor === undefined || toDescriptor.configurable || (\n\t\ttoDescriptor.writable === fromDescriptor.writable &&\n\t\ttoDescriptor.enumerable === fromDescriptor.enumerable &&\n\t\ttoDescriptor.configurable === fromDescriptor.configurable &&\n\t\t(toDescriptor.writable || toDescriptor.value === fromDescriptor.value)\n\t);\n};\n\nconst changePrototype = (to, from) => {\n\tconst fromPrototype = Object.getPrototypeOf(from);\n\tif (fromPrototype === Object.getPrototypeOf(to)) {\n\t\treturn;\n\t}\n\n\tObject.setPrototypeOf(to, fromPrototype);\n};\n\nconst wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\\n${fromBody}`;\n\nconst toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, 'toString');\nconst toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, 'name');\n\n// We call `from.toString()` early (not lazily) to ensure `from` can be garbage collected.\n// We use `bind()` instead of a closure for the same reason.\n// Calling `from.toString()` early also allows caching it in case `to.toString()` is called several times.\nconst changeToString = (to, from, name) => {\n\tconst withName = name === '' ? '' : `with ${name.trim()}() `;\n\tconst newToString = wrappedToString.bind(null, withName, from.toString());\n\t// Ensure `to.toString.toString` is non-enumerable and has the same `same`\n\tObject.defineProperty(newToString, 'name', toStringName);\n\tObject.defineProperty(to, 'toString', {...toStringDescriptor, value: newToString});\n};\n\nexport default function mimicFunction(to, from, {ignoreNonConfigurable = false} = {}) {\n\tconst {name} = to;\n\n\tfor (const property of Reflect.ownKeys(from)) {\n\t\tcopyProperty(to, from, property, ignoreNonConfigurable);\n\t}\n\n\tchangePrototype(to, from);\n\tchangeToString(to, from, name);\n\n\treturn to;\n}\n","import process from 'node:process';\nimport {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout, cwd = process.cwd()}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\terror.cwd = cwd;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","import{constants}from\"node:os\";\n\nimport{SIGRTMAX}from\"./realtime.js\";\nimport{getSignals}from\"./signals.js\";\n\n\n\nconst getSignalsByName=()=>{\nconst signals=getSignals();\nreturn Object.fromEntries(signals.map(getSignalByName));\n};\n\nconst getSignalByName=({\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n})=>[name,{name,number,description,supported,action,forced,standard}];\n\nexport const signalsByName=getSignalsByName();\n\n\n\n\nconst getSignalsByNumber=()=>{\nconst signals=getSignals();\nconst length=SIGRTMAX+1;\nconst signalsA=Array.from({length},(value,number)=>\ngetSignalByNumber(number,signals));\n\nreturn Object.assign({},...signalsA);\n};\n\nconst getSignalByNumber=(number,signals)=>{\nconst signal=findSignalByNumber(number,signals);\n\nif(signal===undefined){\nreturn{};\n}\n\nconst{name,description,supported,action,forced,standard}=signal;\nreturn{\n[number]:{\nname,\nnumber,\ndescription,\nsupported,\naction,\nforced,\nstandard\n}\n};\n};\n\n\n\nconst findSignalByNumber=(number,signals)=>{\nconst signal=signals.find(({name})=>constants.signals[name]===number);\n\nif(signal!==undefined){\nreturn signal;\n}\n\nreturn signals.find((signalA)=>signalA.number===number);\n};\n\nexport const signalsByNumber=getSignalsByNumber();","\nexport const getRealtimeSignals=()=>{\nconst length=SIGRTMAX-SIGRTMIN+1;\nreturn Array.from({length},getRealtimeSignal);\n};\n\nconst getRealtimeSignal=(value,index)=>({\nname:`SIGRT${index+1}`,\nnumber:SIGRTMIN+index,\naction:\"terminate\",\ndescription:\"Application-specific signal (realtime)\",\nstandard:\"posix\"\n});\n\nconst SIGRTMIN=34;\nexport const SIGRTMAX=64;","import{constants}from\"node:os\";\n\nimport{SIGNALS}from\"./core.js\";\nimport{getRealtimeSignals}from\"./realtime.js\";\n\n\n\nexport const getSignals=()=>{\nconst realtimeSignals=getRealtimeSignals();\nconst signals=[...SIGNALS,...realtimeSignals].map(normalizeSignal);\nreturn signals;\n};\n\n\n\n\n\n\n\nconst normalizeSignal=({\nname,\nnumber:defaultNumber,\ndescription,\naction,\nforced=false,\nstandard\n})=>{\nconst{\nsignals:{[name]:constantSignal}\n}=constants;\nconst supported=constantSignal!==undefined;\nconst number=supported?constantSignal:defaultNumber;\nreturn{name,number,description,supported,action,forced,standard};\n};","\n\nexport const SIGNALS=[\n{\nname:\"SIGHUP\",\nnumber:1,\naction:\"terminate\",\ndescription:\"Terminal closed\",\nstandard:\"posix\"\n},\n{\nname:\"SIGINT\",\nnumber:2,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-C\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGQUIT\",\nnumber:3,\naction:\"core\",\ndescription:\"User interruption with CTRL-\\\\\",\nstandard:\"posix\"\n},\n{\nname:\"SIGILL\",\nnumber:4,\naction:\"core\",\ndescription:\"Invalid machine instruction\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGTRAP\",\nnumber:5,\naction:\"core\",\ndescription:\"Debugger breakpoint\",\nstandard:\"posix\"\n},\n{\nname:\"SIGABRT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGIOT\",\nnumber:6,\naction:\"core\",\ndescription:\"Aborted\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGBUS\",\nnumber:7,\naction:\"core\",\ndescription:\n\"Bus error due to misaligned, non-existing address or paging error\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGEMT\",\nnumber:7,\naction:\"terminate\",\ndescription:\"Command should be emulated but is not implemented\",\nstandard:\"other\"\n},\n{\nname:\"SIGFPE\",\nnumber:8,\naction:\"core\",\ndescription:\"Floating point arithmetic error\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGKILL\",\nnumber:9,\naction:\"terminate\",\ndescription:\"Forced termination\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGUSR1\",\nnumber:10,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGSEGV\",\nnumber:11,\naction:\"core\",\ndescription:\"Segmentation fault\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGUSR2\",\nnumber:12,\naction:\"terminate\",\ndescription:\"Application-specific signal\",\nstandard:\"posix\"\n},\n{\nname:\"SIGPIPE\",\nnumber:13,\naction:\"terminate\",\ndescription:\"Broken pipe or socket\",\nstandard:\"posix\"\n},\n{\nname:\"SIGALRM\",\nnumber:14,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTERM\",\nnumber:15,\naction:\"terminate\",\ndescription:\"Termination\",\nstandard:\"ansi\"\n},\n{\nname:\"SIGSTKFLT\",\nnumber:16,\naction:\"terminate\",\ndescription:\"Stack is empty or overflowed\",\nstandard:\"other\"\n},\n{\nname:\"SIGCHLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"posix\"\n},\n{\nname:\"SIGCLD\",\nnumber:17,\naction:\"ignore\",\ndescription:\"Child process terminated, paused or unpaused\",\nstandard:\"other\"\n},\n{\nname:\"SIGCONT\",\nnumber:18,\naction:\"unpause\",\ndescription:\"Unpaused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGSTOP\",\nnumber:19,\naction:\"pause\",\ndescription:\"Paused\",\nstandard:\"posix\",\nforced:true\n},\n{\nname:\"SIGTSTP\",\nnumber:20,\naction:\"pause\",\ndescription:\"Paused using CTRL-Z or \\\"suspend\\\"\",\nstandard:\"posix\"\n},\n{\nname:\"SIGTTIN\",\nnumber:21,\naction:\"pause\",\ndescription:\"Background process cannot read terminal input\",\nstandard:\"posix\"\n},\n{\nname:\"SIGBREAK\",\nnumber:21,\naction:\"terminate\",\ndescription:\"User interruption with CTRL-BREAK\",\nstandard:\"other\"\n},\n{\nname:\"SIGTTOU\",\nnumber:22,\naction:\"pause\",\ndescription:\"Background process cannot write to terminal output\",\nstandard:\"posix\"\n},\n{\nname:\"SIGURG\",\nnumber:23,\naction:\"ignore\",\ndescription:\"Socket received out-of-band data\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXCPU\",\nnumber:24,\naction:\"core\",\ndescription:\"Process timed out\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGXFSZ\",\nnumber:25,\naction:\"core\",\ndescription:\"File too big\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGVTALRM\",\nnumber:26,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGPROF\",\nnumber:27,\naction:\"terminate\",\ndescription:\"Timeout or timer\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGWINCH\",\nnumber:28,\naction:\"ignore\",\ndescription:\"Terminal window size changed\",\nstandard:\"bsd\"\n},\n{\nname:\"SIGIO\",\nnumber:29,\naction:\"terminate\",\ndescription:\"I/O is available\",\nstandard:\"other\"\n},\n{\nname:\"SIGPOLL\",\nnumber:29,\naction:\"terminate\",\ndescription:\"Watched event\",\nstandard:\"other\"\n},\n{\nname:\"SIGINFO\",\nnumber:29,\naction:\"ignore\",\ndescription:\"Request for process information\",\nstandard:\"other\"\n},\n{\nname:\"SIGPWR\",\nnumber:30,\naction:\"terminate\",\ndescription:\"Device running out of power\",\nstandard:\"systemv\"\n},\n{\nname:\"SIGSYS\",\nnumber:31,\naction:\"core\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n},\n{\nname:\"SIGUNUSED\",\nnumber:31,\naction:\"terminate\",\ndescription:\"Invalid system call\",\nstandard:\"other\"\n}];","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { : , ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","export function isStream(stream) {\n\treturn stream !== null\n\t\t&& typeof stream === 'object'\n\t\t&& typeof stream.pipe === 'function';\n}\n\nexport function isWritableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.writable !== false\n\t\t&& typeof stream._write === 'function'\n\t\t&& typeof stream._writableState === 'object';\n}\n\nexport function isReadableStream(stream) {\n\treturn isStream(stream)\n\t\t&& stream.readable !== false\n\t\t&& typeof stream._read === 'function'\n\t\t&& typeof stream._readableState === 'object';\n}\n\nexport function isDuplexStream(stream) {\n\treturn isWritableStream(stream)\n\t\t&& isReadableStream(stream);\n}\n\nexport function isTransformStream(stream) {\n\treturn isDuplexStream(stream)\n\t\t&& typeof stream._transform === 'function';\n}\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n","'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n","'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n",null,"import { default as isAdminWindowsOrig } from \"./is-admin.mjs\"\nimport { isRoot } from \"./root.mjs\"\n\n/**\n * Check if the process is running as administrator on Windows.\n *\n * @example\n *\n * ```js\n * import { isAdminWindows } from \"admina\"\n *\n * console.log(await isAdminWindows())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as administrator.\n */\nexport const isAdminWindows = isAdminWindowsOrig\n\n/**\n * Detect if the process has root privilege on Posix.\n *\n * @example\n *\n * ```js\n * import { isAdminPosix } from \"admina\"\n *\n * console.log(isAdminPosix())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root.\n */\nexport const isAdminPosix = isRoot\n\n/**\n * Detect if the code is running as admin/root\n *\n * On Windows, it checks for admin access, and on Posix, it checks for root access\n *\n * @example\n *\n * ```js\n * import { isAdmin } from \"admina\"\n *\n * console.log(isAdmin())\n * //=> false\n * ```\n *\n * @returns Whether the process is running as root or admin.\n */\nexport function isAdmin() {\n if (process.platform === \"win32\") {\n return isAdminWindows()\n } else {\n return isRoot()\n }\n}\n",null,"// From `is-admin`: updated execa\n\nimport { execa } from \"execa\"\n\n// https://stackoverflow.com/a/28268802\nasync function testFltmc() {\n try {\n await execa(\"fltmc\")\n return true\n } catch {\n return false\n }\n}\n\nexport default async function isAdmin() {\n if (process.platform !== \"win32\") {\n return false\n }\n\n try {\n // https://stackoverflow.com/a/21295806/1641422\n await execa(\"fsutil\", [\"dirty\", \"query\", process.env.systemdrive ?? \"\"])\n return true\n } catch (error) {\n if ((error as { code?: string }).code === \"ENOENT\") {\n return testFltmc()\n }\n\n return false\n }\n}\n",null,"import { isSudo, execRoot, defaultExecOptions } from \"./root.mjs\"\nimport fs from \"fs\"\n\n/**\n * Give the user access to the given path (and its sub-directories if a directory). It changes the owner to the\n * SUDO_USER. This allows the user to use the folder without sudo\n *\n * @param path The path to give the user access to\n */\nexport async function grantUserWriteAccess(path: string) {\n if (\n (process.platform === \"linux\" || process.platform === \"darwin\") &&\n isSudo() &&\n process.env.SUDO_USER !== undefined\n ) {\n const isDirectory = fs.statSync(path).isDirectory()\n await execRoot(\"chown\", [...(isDirectory ? [\"-R\"] : []), process.env.SUDO_USER, path], defaultExecOptions)\n }\n}\n","import { warning } from \"ci-log\"\nimport updateNotifier from \"simple-update-notifier\"\nimport packageJson from \"../package-version.json\"\n\n// auto self update notifier\nexport async function checkUpdates() {\n try {\n await updateNotifier({ pkg: packageJson })\n } catch (err) {\n warning(`Failed to check for updates: ${err instanceof Error ? err.message + err.stack : err}`)\n }\n}\n","'use strict';\n\nvar process$1 = require('process');\nvar semver = require('semver');\nvar os = require('os');\nvar path = require('path');\nvar fs = require('fs');\nvar https = require('https');\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar packageJson = process$1.env.npm_package_json;\nvar userAgent = process$1.env.npm_config_user_agent;\nvar isNpm6 = Boolean(userAgent && userAgent.startsWith('npm'));\nvar isNpm7 = Boolean(packageJson && packageJson.endsWith('package.json'));\nvar isNpm = isNpm6 || isNpm7;\nvar isYarn = Boolean(userAgent && userAgent.startsWith('yarn'));\nvar isNpmOrYarn = isNpm || isYarn;\n\nvar homeDirectory = os.homedir();\nvar configDir = process.env.XDG_CONFIG_HOME ||\n path.join(homeDirectory, '.config', 'simple-update-notifier');\nvar getConfigFile = function (packageName) {\n return path.join(configDir, \"\".concat(packageName.replace('@', '').replace('/', '__'), \".json\"));\n};\nvar createConfigDir = function () {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n};\nvar getLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n try {\n if (!fs.existsSync(configFile)) {\n return undefined;\n }\n var file = JSON.parse(fs.readFileSync(configFile, 'utf8'));\n return file.lastUpdateCheck;\n }\n catch (_a) {\n return undefined;\n }\n};\nvar saveLastUpdate = function (packageName) {\n var configFile = getConfigFile(packageName);\n fs.writeFileSync(configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }));\n};\n\nvar getDistVersion = function (packageName, distTag) { return __awaiter(void 0, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n url = \"https://registry.npmjs.org/-/package/\".concat(packageName, \"/dist-tags\");\n return [2 /*return*/, new Promise(function (resolve, reject) {\n https\n .get(url, function (res) {\n var body = '';\n res.on('data', function (chunk) { return (body += chunk); });\n res.on('end', function () {\n try {\n var json = JSON.parse(body);\n var version = json[distTag];\n if (!version) {\n reject(new Error('Error getting version'));\n }\n resolve(version);\n }\n catch (_a) {\n reject(new Error('Could not parse version response'));\n }\n });\n })\n .on('error', function (err) { return reject(err); });\n })];\n });\n}); };\n\nvar hasNewVersion = function (_a) {\n var pkg = _a.pkg, _b = _a.updateCheckInterval, updateCheckInterval = _b === void 0 ? 1000 * 60 * 60 * 24 : _b, _c = _a.distTag, distTag = _c === void 0 ? 'latest' : _c, alwaysRun = _a.alwaysRun, debug = _a.debug;\n return __awaiter(void 0, void 0, void 0, function () {\n var lastUpdateCheck, latestVersion;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n createConfigDir();\n lastUpdateCheck = getLastUpdate(pkg.name);\n if (!(alwaysRun ||\n !lastUpdateCheck ||\n lastUpdateCheck < new Date().getTime() - updateCheckInterval)) return [3 /*break*/, 2];\n return [4 /*yield*/, getDistVersion(pkg.name, distTag)];\n case 1:\n latestVersion = _d.sent();\n saveLastUpdate(pkg.name);\n if (semver.gt(latestVersion, pkg.version)) {\n return [2 /*return*/, latestVersion];\n }\n else if (debug) {\n console.error(\"Latest version (\".concat(latestVersion, \") not newer than current version (\").concat(pkg.version, \")\"));\n }\n return [3 /*break*/, 3];\n case 2:\n if (debug) {\n console.error(\"Too recent to check for a new update. simpleUpdateNotifier() interval set to \".concat(updateCheckInterval, \"ms but only \").concat(new Date().getTime() - lastUpdateCheck, \"ms since last check.\"));\n }\n _d.label = 3;\n case 3: return [2 /*return*/, false];\n }\n });\n });\n};\n\nvar borderedText = function (text) {\n var lines = text.split('\\n');\n var width = Math.max.apply(Math, lines.map(function (l) { return l.length; }));\n var res = [\"\\u250C\".concat('─'.repeat(width + 2), \"\\u2510\")];\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n res.push(\"\\u2502 \".concat(line.padEnd(width), \" \\u2502\"));\n }\n res.push(\"\\u2514\".concat('─'.repeat(width + 2), \"\\u2518\"));\n return res.join('\\n');\n};\n\nvar simpleUpdateNotifier = function (args) { return __awaiter(void 0, void 0, void 0, function () {\n var latestVersion, err_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!args.alwaysRun &&\n (!process.stdout.isTTY || (isNpmOrYarn && !args.shouldNotifyInNpmScript))) {\n if (args.debug) {\n console.error('Opting out of running simpleUpdateNotifier()');\n }\n return [2 /*return*/];\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, hasNewVersion(args)];\n case 2:\n latestVersion = _a.sent();\n if (latestVersion) {\n console.error(borderedText(\"New version of \".concat(args.pkg.name, \" available!\\nCurrent Version: \").concat(args.pkg.version, \"\\nLatest Version: \").concat(latestVersion)));\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _a.sent();\n // Catch any network errors or cache writing errors so module doesn't cause a crash\n if (args.debug && err_1 instanceof Error) {\n console.error('Unexpected error in simpleUpdateNotifier():', err_1);\n }\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/];\n }\n });\n}); };\n\nmodule.exports = simpleUpdateNotifier;\n","{\n \"name\": \"setup-cpp\",\n \"version\": \"0.37.0\"\n}\n","import { getInput } from \"@actions/core\"\nimport { info } from \"ci-log\"\nimport mri from \"mri\"\nimport { Inputs, inputs } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\n\nexport function parseArgs(args: string[]): Opts {\n return mri & { help: boolean }>(args, {\n string: [...inputs, \"timeout\"],\n default: Object.fromEntries(inputs.map((inp) => [inp, maybeGetInput(inp)])),\n alias: { h: \"help\" },\n boolean: \"help\",\n })\n}\n\nexport function printHelp() {\n info(`\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--timeout\\t the timeout for the installation of each tool in minutes. By default it is 10 minutes.\n--compiler\\t the to install.\n \\t You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'\n--$tool_name\\t pass \"true\" or pass the you would like to install for this tool. e.g. --conan true or --conan \"1.42.1\"\n\nAll the available tools:\n`)\n\n console.table(\n {\n \"compiler and analyzer\": { tools: `--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat` },\n \"build system\": { tools: `--cmake, --ninja, --meson, --make, --task, --bazel` },\n \"package manager\": { tools: `--vcpkg, --conan, --choco, --brew, --nala` },\n cache: { tools: `--cppcache, --sccache` },\n documentation: { tools: `--doxygen, --graphviz` },\n coverage: { tools: `--gcovr, --opencppcoverage, --kcov` },\n other: { tools: `--python, --powershell, --sevenzip` },\n },\n [\"tools\"],\n )\n}\n/** Get an object from github actions */\n\nexport function maybeGetInput(key: string) {\n const value = getInput(key.toLowerCase())\n if (value !== \"false\" && value !== \"\") {\n return value\n }\n return undefined // skip installation\n}\nexport type Opts = mri.Argv<\n Record & {\n help: boolean\n timeout?: string\n }\n>\n\nexport function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {\n let msg = `✅ ${tool} was installed successfully:`\n if (installationInfo === undefined) {\n return msg\n }\n if (\"installDir\" in installationInfo) {\n msg += `\\n- The installation directory is ${installationInfo.installDir}`\n }\n if (installationInfo.binDir !== \"\") {\n msg += `\\n- The binary directory is ${installationInfo.binDir}`\n }\n return msg\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n","import { setupBazel } from \"./bazel/bazel\"\nimport { setupBrew } from \"./brew/brew\"\nimport { setupCcache } from \"./ccache/ccache\"\nimport { setupChocolatey } from \"./chocolatey/chocolatey\"\nimport { setupCmake } from \"./cmake/cmake\"\nimport { setupConan } from \"./conan/conan\"\nimport { setupCppcheck } from \"./cppcheck/cppcheck\"\nimport { setupDoxygen } from \"./doxygen/doxygen\"\nimport { setupGcc } from \"./gcc/gcc\"\nimport { setupGcovr } from \"./gcovr/gcovr\"\nimport { setupGraphviz } from \"./graphviz/graphviz\"\nimport { setupKcov } from \"./kcov/kcov\"\nimport { setupClangFormat, setupClangTools, setupLLVM } from \"./llvm/llvm\"\nimport { setupMake } from \"./make/make\"\nimport { setupMeson } from \"./meson/meson\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { setupNala } from \"./nala/nala\"\nimport { setupNinja } from \"./ninja/ninja\"\nimport { setupOpencppcoverage } from \"./opencppcoverage/opencppcoverage\"\nimport { setupPowershell } from \"./powershell/powershell\"\nimport { setupPython } from \"./python/python\"\nimport { setupSccache } from \"./sccache/sccache\"\nimport { setupSevenZip } from \"./sevenzip/sevenzip\"\nimport { setupTask } from \"./task/task\"\nimport { setupVcpkg } from \"./vcpkg/vcpkg\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\n\n/** The setup functions */\nexport const setups = {\n nala: setupNala,\n cmake: setupCmake,\n ninja: setupNinja,\n python: setupPython,\n vcpkg: setupVcpkg,\n bazel: setupBazel,\n conan: setupConan,\n meson: setupMeson,\n gcovr: setupGcovr,\n opencppcoverage: setupOpencppcoverage,\n llvm: setupLLVM,\n gcc: setupGcc,\n choco: setupChocolatey,\n brew: setupBrew,\n powershell: setupPowershell,\n ccache: setupCcache,\n sccache: setupSccache,\n doxygen: setupDoxygen,\n graphviz: setupGraphviz,\n cppcheck: setupCppcheck,\n clangtidy: setupClangTools,\n clangformat: setupClangFormat,\n msvc: setupMSVC,\n vcvarsall: setupVCVarsall,\n kcov: setupKcov,\n make: setupMake,\n task: setupTask,\n sevenzip: setupSevenZip,\n}\n\nexport type ToolName = keyof typeof setups\n\n/** The tools that can be installed */\nexport const tools = Object.keys(setups) as Array\n\n/** The possible inputs to the program */\nexport type Inputs = keyof typeof setups | \"compiler\" | \"architecture\" | \"timeout\"\n\n/** ‌ an array of possible inputs */\nexport const inputs: Array = [\"compiler\", \"architecture\", \"timeout\", ...tools]\n","import { execRootSync } from \"admina\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBazel(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // install bazelisk because it contains both\n return setupChocoPack(\"bazelisk\", version)\n }\n case \"darwin\": {\n // install bazelisk because it contains both\n return setupBrewPack(\"bazelisk\", version)\n }\n case \"linux\": {\n if (isArch()) {\n throw new Error(\"installing bazel on Arch linux is not supported yet\")\n } else if (hasDnf()) {\n // https://bazel.build/install/redhat\n await setupDnfPack([{ name: \"dnf-plugins-core\" }])\n execRootSync(\"dnf\", [\"copr\", \"enable\", \"vbatts/bazel\"])\n return setupDnfPack([{ name: \"bazel4\" }])\n } else if (isUbuntu()) {\n // https://bazel.build/install/ubuntu\n const keyFileName = await addAptKeyViaDownload(\n \"bazel-archive-keyring.gpg\",\n \"https://bazel.build/bazel-release.pub.gpg\",\n )\n execRootSync(\"bash\", [\n \"-c\",\n `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://storage.googleapis.com/bazel-apt stable jdk1.8\" | tee /etc/apt/sources.list.d/bazel.list`,\n ])\n return setupAptPack([{ name: \"bazel\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import which from \"which\"\n\nlet hasDnfCache: undefined | boolean = undefined\n\nexport function hasDnf(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (hasDnfCache === undefined) {\n hasDnfCache = which.sync(\"dnf\", { nothrow: true }) !== null\n }\n\n return hasDnfCache\n}\n","import which from \"which\"\n\nlet isArchCache: undefined | boolean = undefined\n\nexport function isArch(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isArchCache === undefined) {\n // detect arch by checking if pacman exists\n isArchCache = which.sync(\"pacman\", { nothrow: true }) !== null\n }\n\n return isArchCache\n}\n","import which from \"which\"\n\nlet isUbuntuCache: undefined | boolean = undefined\n\nexport function isUbuntu(): boolean {\n if (process.platform !== \"linux\") {\n return false\n }\n if (isUbuntuCache === undefined) {\n const apt = \"apt-get\"\n isUbuntuCache = which.sync(apt, { nothrow: true }) !== null\n }\n\n return isUbuntuCache\n}\n","import { execRoot, execRootSync } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { promises as fsPromises } from \"fs\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv, cpprc_path, sourceCpprc } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\nconst { appendFile } = fsPromises\nimport { info, warning } from \"ci-log\"\nimport escapeRegex from \"escape-string-regexp\"\nimport { execa, ExecaError } from \"execa\"\nimport which from \"which\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\nexport type AptPackage = {\n name: string\n version?: string\n repositories?: string[]\n}\n\nconst retryErrors = [\n \"E: Could not get lock\",\n \"dpkg: error processing archive\",\n \"dpkg: error: dpkg status database is locked by another process\",\n]\n\n/** A function that installs a package using apt */\nexport async function setupAptPack(packages: AptPackage[], update = false): Promise {\n const apt: string = getApt()\n\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via ${apt}`)\n }\n\n process.env.DEBIAN_FRONTEND = \"noninteractive\"\n\n if (!didUpdate || update) {\n updateRepos(apt)\n didUpdate = true\n }\n\n if (!didInit) {\n await initApt(apt)\n didInit = true\n }\n\n const allRepositories = [...new Set(packages.flatMap((pack) => pack.repositories ?? []))]\n\n if (allRepositories.length !== 0) {\n for (const repo of allRepositories) {\n // eslint-disable-next-line no-await-in-loop\n execRootSync(\"add-apt-repository\", [\"-y\", repo])\n }\n\n updateRepos(apt)\n }\n\n const aptArgs = await Promise.all(packages.map((pack) => getAptArg(pack.name, pack.version)))\n try {\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n } catch (err) {\n if (\"stderr\" in (err as ExecaError)) {\n const stderr = (err as ExecaError).stderr\n if (retryErrors.some((error) => stderr.includes(error))) {\n warning(`Failed to install packages ${aptArgs}. Retrying...`)\n execRootSync(apt, [\"install\", \"--fix-broken\", \"-y\", ...aptArgs])\n }\n } else {\n throw err\n }\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nexport enum AptPackageType {\n NameDashVersion,\n NameEqualsVersion,\n Name,\n None,\n}\n\nexport async function aptPackageType(name: string, version: string | undefined): Promise {\n if (version !== undefined && version !== \"\") {\n const { stdout } = await execa(\"apt-cache\", [\n \"search\",\n \"--names-only\",\n `^${escapeRegex(name)}-${escapeRegex(version)}$`,\n ])\n if (stdout.trim() !== \"\") {\n return AptPackageType.NameDashVersion\n }\n\n try {\n // check if apt-get show can find the version\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"apt-cache\", [\"show\", `${name}=${version}`])\n if (stdout.trim() === \"\") {\n return AptPackageType.NameEqualsVersion\n }\n } catch {\n // ignore\n }\n }\n\n try {\n const { stdout: showStdout } = await execa(\"apt-cache\", [\"show\", name])\n if (showStdout.trim() !== \"\") {\n return AptPackageType.Name\n }\n } catch {\n // ignore\n }\n\n return AptPackageType.None\n}\n\nasync function getAptArg(name: string, version: string | undefined) {\n const package_type = await aptPackageType(name, version)\n switch (package_type) {\n case AptPackageType.NameDashVersion:\n return `${name}-${version}`\n case AptPackageType.NameEqualsVersion:\n return `${name}=${version}`\n case AptPackageType.Name:\n return name\n case AptPackageType.None:\n default:\n throw new Error(`Could not find package ${name} ${version ?? \"\"}`)\n }\n}\n\nexport function hasNala() {\n return which.sync(\"nala\", { nothrow: true }) !== null\n}\n\nfunction getApt() {\n let apt: string\n if (hasNala()) {\n apt = \"nala\"\n } else {\n apt = \"apt-get\"\n }\n return apt\n}\n\nfunction updateRepos(apt: string) {\n execRootSync(apt, apt !== \"nala\" ? [\"update\", \"-y\"] : [\"update\"])\n}\n\n/** Install apt utils and certificates (usually missing from docker containers) */\nasync function initApt(apt: string) {\n execRootSync(apt, [\n \"install\",\n \"--fix-broken\",\n \"-y\",\n \"software-properties-common\",\n \"apt-utils\",\n \"ca-certificates\",\n \"gnupg\",\n ])\n const promises: Promise[] = [\n addAptKeyViaServer([\"3B4FE6ACC0B21F32\", \"40976EAF437D05B5\"], \"setup-cpp-ubuntu-archive.gpg\"),\n addAptKeyViaServer([\"1E9377A2BA9EF27F\"], \"launchpad-toolchain.gpg\"),\n ]\n if (apt === \"nala\") {\n // enable utf8 otherwise it fails because of the usage of ASCII encoding\n promises.push(\n addEnv(\"LANG\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n addEnv(\"LC_ALL\", \"C.UTF-8\", { shouldAddOnlyIfNotDefined: true }),\n )\n }\n await Promise.all(promises)\n}\n\nfunction initGpg() {\n execRootSync(\"gpg\", [\"-k\"])\n}\n\nexport async function addAptKeyViaServer(keys: string[], name: string, server = \"keyserver.ubuntu.com\") {\n try {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n\n await Promise.all(\n keys.map(async (key) => {\n await execRoot(\"gpg\", [\n \"--no-default-keyring\",\n \"--keyring\",\n `gnupg-ring:${fileName}`,\n \"--keyserver\",\n server,\n \"--recv-keys\",\n key,\n ])\n await execRoot(\"chmod\", [\"644\", fileName])\n }),\n )\n }\n return fileName\n } catch (err) {\n warning(`Failed to add apt key via server ${server}: ${err}`)\n return undefined\n }\n}\n\nexport async function addAptKeyViaDownload(name: string, url: string) {\n const fileName = `/etc/apt/trusted.gpg.d/${name}`\n if (!(await pathExists(fileName))) {\n initGpg()\n await setupAptPack([{ name: \"curl\" }, { name: \"ca-certificates\" }], undefined)\n await execa(\"curl\", [\"-s\", url, \"-o\", `/tmp/${name}`])\n execRootSync(\"gpg\", [\"--no-default-keyring\", \"--keyring\", `gnupg-ring:${fileName}`, \"--import\", `/tmp/${name}`])\n execRootSync(\"chmod\", [\"644\", fileName])\n }\n return fileName\n}\n\nexport async function updateAptAlternatives(name: string, path: string, priority: number = 40) {\n if (GITHUB_ACTIONS) {\n return execRoot(\"update-alternatives\", [\"--install\", `/usr/bin/${name}`, name, path, priority.toString()])\n } else {\n await sourceCpprc()\n return appendFile(\n cpprc_path,\n `\\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\\n`,\n )\n }\n}\n\nexport async function isPackageInstalled(regexp: string) {\n try {\n // check if a package matching the regexp is installed\n const { stdout } = await execa(\"dpkg\", [\"-l\", regexp])\n if (typeof stdout !== \"string\") {\n return false\n }\n const lines = stdout.split(\"\\n\")\n // check if the output contains any lines that start with \"ii\"\n return lines.some((line) => line.startsWith(\"ii\"))\n } catch {\n return false\n }\n}\n","import { addPath as ghAddPath, exportVariable, info, setFailed } from \"@actions/core\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { error, warning } from \"ci-log\"\nimport escapeSpace from \"escape-path-with-spaces\"\nimport escapeQuote from \"escape-quotes\"\nimport { execPowershell } from \"exec-powershell\"\nimport { appendFile, readFile, writeFile } from \"fs/promises\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { untildifyUser } from \"untildify-user\"\n\ntype AddEnvOptions = {\n /** If true, the value will be escaped with quotes and spaces will be escaped with backslash */\n shouldEscapeSpace: boolean\n /** If true, the variable will be only added if it is not defined */\n shouldAddOnlyIfNotDefined: boolean\n}\n\nconst defaultAddEnvOptions: AddEnvOptions = {\n shouldEscapeSpace: false,\n shouldAddOnlyIfNotDefined: false,\n}\n\n/**\n * Add an environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addEnv(\n name: string,\n valGiven: string | undefined,\n givenOptions: Partial = defaultAddEnvOptions,\n) {\n const options = { ...defaultAddEnvOptions, ...givenOptions }\n\n const val = escapeString(valGiven ?? \"\", options.shouldEscapeSpace)\n try {\n if (GITHUB_ACTIONS) {\n try {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n exportVariable(name, val)\n } catch (err) {\n error(err as Error)\n await addEnvSystem(name, val, options)\n }\n } else {\n await addEnvSystem(name, val, options)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to export environment variable ${name}=${val}. You should add it manually.`)\n }\n}\n\nfunction escapeString(valGiven: string, shouldEscapeSpace: boolean = false) {\n const spaceEscaped = shouldEscapeSpace ? escapeSpace(valGiven) : valGiven\n return escapeQuote(spaceEscaped, \"\\\"\", \"\\\\\")\n}\n\nconst ignoredPaths = [/\\/usr\\/bin\\/?/, /\\/usr\\/local\\/bin\\/?/]\n\n/** Skip adding /usr/bin to PATH if it is already there */\nfunction isIgnoredPath(path: string) {\n if (ignoredPaths.some((checkedPath) => checkedPath.test(path))) {\n const paths = process.env.PATH?.split(delimiter) ?? []\n return paths.includes(path)\n }\n return false\n}\n\n/**\n * Add a path to the PATH environment variable.\n *\n * This function is cross-platforms and works in all the local or CI systems.\n */\nexport async function addPath(path: string) {\n if (isIgnoredPath(path)) {\n return\n }\n\n process.env.PATH = `${path}${delimiter}${process.env.PATH}`\n try {\n if (GITHUB_ACTIONS) {\n try {\n ghAddPath(path)\n } catch (err) {\n error(err as Error)\n await addPathSystem(path)\n }\n } else {\n await addPathSystem(path)\n }\n } catch (err) {\n error(err as Error)\n setFailed(`Failed to add ${path} to the percistent PATH. You should add it manually.`)\n }\n}\n\nexport const cpprc_path = untildifyUser(\"~/.cpprc\")\n\nasync function addEnvSystem(name: string, valGiven: string | undefined, options: AddEnvOptions) {\n const val = valGiven ?? \"\"\n switch (process.platform) {\n case \"win32\": {\n if (options.shouldAddOnlyIfNotDefined) {\n if (process.env[name] !== undefined) {\n info(`Environment variable ${name} is already defined. Skipping.`)\n return\n }\n }\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit\n await execPowershell(`[Environment]::SetEnvironmentVariable('${name}', '${val}', \"User\")`)\n info(`${name}='${val}' was set in the environment.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n if (options.shouldAddOnlyIfNotDefined) {\n await appendFile(cpprc_path, `\\nif [ -z \"\\${${name}}\" ]; then export ${name}=\"${val}\"; fi\\n`)\n info(`if not defined ${name} then ${name}=\"${val}\" was added to \"${cpprc_path}`)\n } else {\n await appendFile(cpprc_path, `\\nexport ${name}=\"${val}\"\\n`)\n info(`${name}=\"${val}\" was added to \"${cpprc_path}`)\n }\n return\n }\n default: {\n // fall through shell path modification\n }\n }\n process.env[name] = val\n}\n\nasync function addPathSystem(path: string) {\n switch (process.platform) {\n case \"win32\": {\n // We do not use `execaSync(`setx PATH \"${path};%PATH%\"`)` because of its character limit and also because %PATH% is different for user and system\n await execPowershell(\n `$USER_PATH=([Environment]::GetEnvironmentVariable(\"PATH\", \"User\")); [Environment]::SetEnvironmentVariable(\"PATH\", \"${path};$USER_PATH\", \"User\")`,\n )\n info(`\"${path}\" was added to the PATH.`)\n return\n }\n case \"linux\":\n case \"darwin\": {\n await sourceCpprc()\n await appendFile(cpprc_path, `\\nexport PATH=\"${path}:$PATH\"\\n`)\n info(`\"${path}\" was added to \"${cpprc_path}\"`)\n return\n }\n default: {\n return\n }\n }\n}\n\n/* eslint-disable require-atomic-updates */\nlet setupCppInProfile_called = false\n\n/// handles adding conditions to source .cpprc file from .bashrc and .profile\nexport async function sourceCpprc() {\n if (setupCppInProfile_called) {\n return\n }\n\n const source_cpprc_string =\n `\\n# source .cpprc if SOURCE_CPPRC is not set to 0\\nif [[ \"$SOURCE_CPPRC\" != 0 && -f \"${cpprc_path}\" ]]; then source \"${cpprc_path}\"; fi\\n`\n\n try {\n await Promise.all([\n addCpprcHeader(),\n sourceCpprcInProfile(source_cpprc_string),\n sourceCpprcInBashrc(source_cpprc_string),\n ])\n } catch (err) {\n warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`)\n }\n\n setupCppInProfile_called = true\n}\n\nasync function addCpprcHeader() {\n // a variable that prevents source_cpprc from being called from .bashrc and .profile\n const cpprc_header = \"# Automatically Generated by setup-cpp\\nexport SOURCE_CPPRC=0\"\n\n if (await pathExists(cpprc_path)) {\n const cpprc_content = await readFile(cpprc_path, \"utf8\")\n if (!cpprc_content.includes(cpprc_header)) {\n // already executed setupCppInProfile\n await appendFile(cpprc_path, `\\n${cpprc_header}\\n`)\n info(`Added ${cpprc_header} to ${cpprc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInBashrc(source_cpprc_string: string) {\n const bashrc_path = untildifyUser(\"~/.bashrc\")\n if (await pathExists(bashrc_path)) {\n const bashrcContent = await readFile(bashrc_path, \"utf-8\")\n if (!bashrcContent.includes(source_cpprc_string)) {\n await appendFile(bashrc_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${bashrc_path}`)\n }\n }\n}\n\nasync function sourceCpprcInProfile(source_cpprc_string: string) {\n const profile_path = untildifyUser(\"~/.profile\")\n if (await pathExists(profile_path)) {\n const profileContent = await readFile(profile_path, \"utf-8\")\n if (!profileContent.includes(source_cpprc_string)) {\n await appendFile(profile_path, source_cpprc_string)\n info(`${source_cpprc_string} was added to ${profile_path}`)\n }\n }\n}\n\nexport async function finalizeCpprc() {\n if (await pathExists(cpprc_path)) {\n const entries = (await readFile(cpprc_path, \"utf-8\")).split(\"\\n\")\n\n const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry\n\n await writeFile(cpprc_path, unique_entries.join(\"\\n\"))\n\n await grantUserWriteAccess(cpprc_path)\n }\n}\n","const os = require(\"os\");\r\n\r\n// to detect on with os user had used path.resolve(...)\r\nconst is_posix_os = (os.platform() !== \"win32\");\r\nconst version = os.release();\r\n\r\n// For some windows version (Windows 10 v1803), it is not useful to escape spaces in path\r\n// https://docs.microsoft.com/en-us/windows/release-information/\r\nconst windows_version_regex = /(\\d+\\.\\d+)\\.(\\d+)/;\r\nconst should_not_escape = (major_release = \"\", os_build = \"\") =>\r\n /1\\d+\\.\\d+/.test(major_release) && Number(os_build) >= 17134.1184;\r\n\r\nmodule.exports = function (given_path) {\r\n return (is_posix_os)\r\n // for posix path, escape is simple\r\n ? given_path.replace(/(\\s+)/g, '\\\\$1')\r\n // for windows, it depend of the build\r\n : (should_not_escape(...windows_version_regex.exec(version).splice(1)))\r\n // on major version, no need to escape anymore\r\n // https://support.microsoft.com/en-us/help/4467268/url-encoded-unc-paths-not-url-decoded-in-windows-10-version-1803-later\r\n ? given_path\r\n // on older version, replace space with symbol %20\r\n : given_path.replace(/(\\s+)/g, '%20');\r\n};","// Generated by CoffeeScript 1.10.0\n(function() {\n var regexEscape, reverse;\n\n regexEscape = require('escape-string-regexp');\n\n reverse = function(s) {\n return s.split('').reverse().join('');\n };\n\n module.exports = function(s, chars, escapeChar) {\n var regex;\n if (chars == null) {\n chars = '\\'';\n }\n if (escapeChar == null) {\n escapeChar = '\\\\';\n }\n if (typeof s !== 'string') {\n return s;\n }\n regex = new RegExp(\"([\" + (regexEscape(chars)) + \"])(?!\" + (regexEscape(escapeChar)) + \")\", 'g');\n return reverse(reverse(s).replace(regex, \"$1\" + escapeChar));\n };\n\n}).call(this);\n","import * as execa from \"execa\"\nimport which from \"which\"\n\n/** The cached powershell path */\nlet powershell: string | undefined\n\n/**\n * Asynchronously execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns A promise to the execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershell(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.Options = { stdio: \"inherit\" },\n): execa.ExecaChildProcess {\n return execa.execa(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Execute a powershell command.\n *\n * @param command The powershell command to execute\n * @param startupFlags The optional startup flags to be passed to powershell. Defaults to `[\"-NoProfile\", \"-NoLogo\",\n * \"-NonInteractive\"]`. This means that the Powershell profile is not sourced first.\n * @param execOptions The options passed to `execa`. Defaults to `{ stdio: \"inherit\" }`\n * @returns The execution result\n * @note It prefers `pwsh` over `powershell`\n */\nexport function execPowershellSync(\n command: string,\n startupFlags: string[] = [\"-NoProfile\", \"-NoLogo\", \"-NonInteractive\"],\n execOptions: execa.SyncOptions = { stdio: \"inherit\" },\n): execa.ExecaSyncReturnValue {\n return execa.execaSync(getPowerShell(), [...startupFlags, \"-c\", command], execOptions)\n}\n\n/**\n * Get the path to the powershell executable.\n *\n * @note It prefers `pwsh` over `powershell`\n * @note It caches the path for the subsequent calls to this function\n */\nexport function getPowerShell() {\n if (powershell === undefined) {\n const maybePwsh = which.sync(\"pwsh\", { nothrow: true })\n if (maybePwsh !== null) {\n powershell = maybePwsh\n }\n const maybePowerShell = which.sync(\"powershell\", { nothrow: true })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n }\n if (powershell === undefined) {\n throw new Error(\"Could not find powershell\")\n }\n return powershell\n}\n","import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {addPipeMethods} from './lib/pipe.js';\nimport {handleInput, getSpawnedResult, makeAllStream, handleInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, parseTemplates, getEscapedCommand} from './lib/command.js';\nimport {logCommand, verboseDefault} from './lib/verbose.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\tverbose: verboseDefault,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\tmergePromise(dummySpawned, errorPromise);\n\t\treturn dummySpawned;\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\taddPipeMethods(spawned);\n\tmergePromise(spawned, handlePromiseOnce);\n\treturn spawned;\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\tlogCommand(escapedCommand, parsed.options);\n\n\tconst input = handleInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, {...parsed.options, input});\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nconst normalizeScriptStdin = ({input, inputFile, stdio}) => input === undefined && inputFile === undefined && stdio === undefined\n\t? {stdin: 'inherit'}\n\t: {};\n\nconst normalizeScriptOptions = (options = {}) => ({\n\tpreferLocal: true,\n\t...normalizeScriptStdin(options),\n\t...options,\n});\n\nfunction create$(options) {\n\tfunction $(templatesOrOptions, ...expressions) {\n\t\tif (!Array.isArray(templatesOrOptions)) {\n\t\t\treturn create$({...options, ...templatesOrOptions});\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templatesOrOptions, expressions);\n\t\treturn execa(file, args, normalizeScriptOptions(options));\n\t}\n\n\t$.sync = (templates, ...expressions) => {\n\t\tif (!Array.isArray(templates)) {\n\t\t\tthrow new TypeError('Please use $(options).sync`command` instead of $.sync(options)`command`.');\n\t\t}\n\n\t\tconst [file, ...args] = parseTemplates(templates, expressions);\n\t\treturn execaSync(file, args, normalizeScriptOptions(options));\n\t};\n\n\treturn $;\n}\n\nexport const $ = create$();\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n","import {signalsByName} from 'human-signals';\n\nconst getErrorPrefix = ({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled}) => {\n\tif (timedOut) {\n\t\treturn `timed out after ${timeout} milliseconds`;\n\t}\n\n\tif (isCanceled) {\n\t\treturn 'was canceled';\n\t}\n\n\tif (errorCode !== undefined) {\n\t\treturn `failed with ${errorCode}`;\n\t}\n\n\tif (signal !== undefined) {\n\t\treturn `was killed with ${signal} (${signalDescription})`;\n\t}\n\n\tif (exitCode !== undefined) {\n\t\treturn `failed with exit code ${exitCode}`;\n\t}\n\n\treturn 'failed';\n};\n\nexport const makeError = ({\n\tstdout,\n\tstderr,\n\tall,\n\terror,\n\tsignal,\n\texitCode,\n\tcommand,\n\tescapedCommand,\n\ttimedOut,\n\tisCanceled,\n\tkilled,\n\tparsed: {options: {timeout}},\n}) => {\n\t// `signal` and `exitCode` emitted on `spawned.on('exit')` event can be `null`.\n\t// We normalize them to `undefined`\n\texitCode = exitCode === null ? undefined : exitCode;\n\tsignal = signal === null ? undefined : signal;\n\tconst signalDescription = signal === undefined ? undefined : signalsByName[signal].description;\n\n\tconst errorCode = error && error.code;\n\n\tconst prefix = getErrorPrefix({timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled});\n\tconst execaMessage = `Command ${prefix}: ${command}`;\n\tconst isError = Object.prototype.toString.call(error) === '[object Error]';\n\tconst shortMessage = isError ? `${execaMessage}\\n${error.message}` : execaMessage;\n\tconst message = [shortMessage, stderr, stdout].filter(Boolean).join('\\n');\n\n\tif (isError) {\n\t\terror.originalMessage = error.message;\n\t\terror.message = message;\n\t} else {\n\t\terror = new Error(message);\n\t}\n\n\terror.shortMessage = shortMessage;\n\terror.command = command;\n\terror.escapedCommand = escapedCommand;\n\terror.exitCode = exitCode;\n\terror.signal = signal;\n\terror.signalDescription = signalDescription;\n\terror.stdout = stdout;\n\terror.stderr = stderr;\n\n\tif (all !== undefined) {\n\t\terror.all = all;\n\t}\n\n\tif ('bufferedData' in error) {\n\t\tdelete error.bufferedData;\n\t}\n\n\terror.failed = true;\n\terror.timedOut = Boolean(timedOut);\n\terror.isCanceled = isCanceled;\n\terror.killed = killed && !timedOut;\n\n\treturn error;\n};\n","const aliases = ['stdin', 'stdout', 'stderr'];\n\nconst hasAlias = options => aliases.some(alias => options[alias] !== undefined);\n\nexport const normalizeStdio = options => {\n\tif (!options) {\n\t\treturn;\n\t}\n\n\tconst {stdio} = options;\n\n\tif (stdio === undefined) {\n\t\treturn aliases.map(alias => options[alias]);\n\t}\n\n\tif (hasAlias(options)) {\n\t\tthrow new Error(`It's not possible to provide \\`stdio\\` in combination with one of ${aliases.map(alias => `\\`${alias}\\``).join(', ')}`);\n\t}\n\n\tif (typeof stdio === 'string') {\n\t\treturn stdio;\n\t}\n\n\tif (!Array.isArray(stdio)) {\n\t\tthrow new TypeError(`Expected \\`stdio\\` to be of type \\`string\\` or \\`Array\\`, got \\`${typeof stdio}\\``);\n\t}\n\n\tconst length = Math.max(stdio.length, aliases.length);\n\treturn Array.from({length}, (value, index) => stdio[index]);\n};\n\n// `ipc` is pushed unless it is already present\nexport const normalizeStdioNode = options => {\n\tconst stdio = normalizeStdio(options);\n\n\tif (stdio === 'ipc') {\n\t\treturn 'ipc';\n\t}\n\n\tif (stdio === undefined || typeof stdio === 'string') {\n\t\treturn [stdio, stdio, stdio, 'ipc'];\n\t}\n\n\tif (stdio.includes('ipc')) {\n\t\treturn stdio;\n\t}\n\n\treturn [...stdio, 'ipc'];\n};\n","import os from 'node:os';\nimport onExit from 'signal-exit';\n\nconst DEFAULT_FORCE_KILL_TIMEOUT = 1000 * 5;\n\n// Monkey-patches `childProcess.kill()` to add `forceKillAfterTimeout` behavior\nexport const spawnedKill = (kill, signal = 'SIGTERM', options = {}) => {\n\tconst killResult = kill(signal);\n\tsetKillTimeout(kill, signal, options, killResult);\n\treturn killResult;\n};\n\nconst setKillTimeout = (kill, signal, options, killResult) => {\n\tif (!shouldForceKill(signal, options, killResult)) {\n\t\treturn;\n\t}\n\n\tconst timeout = getForceKillAfterTimeout(options);\n\tconst t = setTimeout(() => {\n\t\tkill('SIGKILL');\n\t}, timeout);\n\n\t// Guarded because there's no `.unref()` when `execa` is used in the renderer\n\t// process in Electron. This cannot be tested since we don't run tests in\n\t// Electron.\n\t// istanbul ignore else\n\tif (t.unref) {\n\t\tt.unref();\n\t}\n};\n\nconst shouldForceKill = (signal, {forceKillAfterTimeout}, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;\n\nconst isSigterm = signal => signal === os.constants.signals.SIGTERM\n\t\t|| (typeof signal === 'string' && signal.toUpperCase() === 'SIGTERM');\n\nconst getForceKillAfterTimeout = ({forceKillAfterTimeout = true}) => {\n\tif (forceKillAfterTimeout === true) {\n\t\treturn DEFAULT_FORCE_KILL_TIMEOUT;\n\t}\n\n\tif (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {\n\t\tthrow new TypeError(`Expected the \\`forceKillAfterTimeout\\` option to be a non-negative integer, got \\`${forceKillAfterTimeout}\\` (${typeof forceKillAfterTimeout})`);\n\t}\n\n\treturn forceKillAfterTimeout;\n};\n\n// `childProcess.cancel()`\nexport const spawnedCancel = (spawned, context) => {\n\tconst killResult = spawned.kill();\n\n\tif (killResult) {\n\t\tcontext.isCanceled = true;\n\t}\n};\n\nconst timeoutKill = (spawned, signal, reject) => {\n\tspawned.kill(signal);\n\treject(Object.assign(new Error('Timed out'), {timedOut: true, signal}));\n};\n\n// `timeout` option handling\nexport const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise) => {\n\tif (timeout === 0 || timeout === undefined) {\n\t\treturn spawnedPromise;\n\t}\n\n\tlet timeoutId;\n\tconst timeoutPromise = new Promise((resolve, reject) => {\n\t\ttimeoutId = setTimeout(() => {\n\t\t\ttimeoutKill(spawned, killSignal, reject);\n\t\t}, timeout);\n\t});\n\n\tconst safeSpawnedPromise = spawnedPromise.finally(() => {\n\t\tclearTimeout(timeoutId);\n\t});\n\n\treturn Promise.race([timeoutPromise, safeSpawnedPromise]);\n};\n\nexport const validateTimeout = ({timeout}) => {\n\tif (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {\n\t\tthrow new TypeError(`Expected the \\`timeout\\` option to be a non-negative integer, got \\`${timeout}\\` (${typeof timeout})`);\n\t}\n};\n\n// `cleanup` option handling\nexport const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {\n\tif (!cleanup || detached) {\n\t\treturn timedPromise;\n\t}\n\n\tconst removeExitHandler = onExit(() => {\n\t\tspawned.kill();\n\t});\n\n\treturn timedPromise.finally(() => {\n\t\tremoveExitHandler();\n\t});\n};\n","import {createWriteStream} from 'node:fs';\nimport {ChildProcess} from 'node:child_process';\nimport {isWritableStream} from 'is-stream';\n\nconst isExecaChildProcess = target => target instanceof ChildProcess && typeof target.then === 'function';\n\nconst pipeToTarget = (spawned, streamName, target) => {\n\tif (typeof target === 'string') {\n\t\tspawned[streamName].pipe(createWriteStream(target));\n\t\treturn spawned;\n\t}\n\n\tif (isWritableStream(target)) {\n\t\tspawned[streamName].pipe(target);\n\t\treturn spawned;\n\t}\n\n\tif (!isExecaChildProcess(target)) {\n\t\tthrow new TypeError('The second argument must be a string, a stream or an Execa child process.');\n\t}\n\n\tif (!isWritableStream(target.stdin)) {\n\t\tthrow new TypeError('The target child process\\'s stdin must be available.');\n\t}\n\n\tspawned[streamName].pipe(target.stdin);\n\treturn target;\n};\n\nexport const addPipeMethods = spawned => {\n\tif (spawned.stdout !== null) {\n\t\tspawned.pipeStdout = pipeToTarget.bind(undefined, spawned, 'stdout');\n\t}\n\n\tif (spawned.stderr !== null) {\n\t\tspawned.pipeStderr = pipeToTarget.bind(undefined, spawned, 'stderr');\n\t}\n\n\tif (spawned.all !== undefined) {\n\t\tspawned.pipeAll = pipeToTarget.bind(undefined, spawned, 'all');\n\t}\n};\n","import {createReadStream, readFileSync} from 'node:fs';\nimport {isStream} from 'is-stream';\nimport getStream from 'get-stream';\nimport mergeStream from 'merge-stream';\n\nconst validateInputOptions = input => {\n\tif (input !== undefined) {\n\t\tthrow new TypeError('The `input` and `inputFile` options cannot be both set.');\n\t}\n};\n\nconst getInputSync = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn readFileSync(inputFile);\n};\n\n// `input` and `inputFile` option in sync mode\nexport const handleInputSync = options => {\n\tconst input = getInputSync(options);\n\n\tif (isStream(input)) {\n\t\tthrow new TypeError('The `input` option cannot be a stream in sync mode');\n\t}\n\n\treturn input;\n};\n\nconst getInput = ({input, inputFile}) => {\n\tif (typeof inputFile !== 'string') {\n\t\treturn input;\n\t}\n\n\tvalidateInputOptions(input);\n\treturn createReadStream(inputFile);\n};\n\n// `input` and `inputFile` option in async mode\nexport const handleInput = (spawned, options) => {\n\tconst input = getInput(options);\n\n\tif (input === undefined) {\n\t\treturn;\n\t}\n\n\tif (isStream(input)) {\n\t\tinput.pipe(spawned.stdin);\n\t} else {\n\t\tspawned.stdin.end(input);\n\t}\n};\n\n// `all` interleaves `stdout` and `stderr`\nexport const makeAllStream = (spawned, {all}) => {\n\tif (!all || (!spawned.stdout && !spawned.stderr)) {\n\t\treturn;\n\t}\n\n\tconst mixed = mergeStream();\n\n\tif (spawned.stdout) {\n\t\tmixed.add(spawned.stdout);\n\t}\n\n\tif (spawned.stderr) {\n\t\tmixed.add(spawned.stderr);\n\t}\n\n\treturn mixed;\n};\n\n// On failure, `result.stdout|stderr|all` should contain the currently buffered stream\nconst getBufferedData = async (stream, streamPromise) => {\n\t// When `buffer` is `false`, `streamPromise` is `undefined` and there is no buffered data to retrieve\n\tif (!stream || streamPromise === undefined) {\n\t\treturn;\n\t}\n\n\tstream.destroy();\n\n\ttry {\n\t\treturn await streamPromise;\n\t} catch (error) {\n\t\treturn error.bufferedData;\n\t}\n};\n\nconst getStreamPromise = (stream, {encoding, buffer, maxBuffer}) => {\n\tif (!stream || !buffer) {\n\t\treturn;\n\t}\n\n\tif (encoding) {\n\t\treturn getStream(stream, {encoding, maxBuffer});\n\t}\n\n\treturn getStream.buffer(stream, {maxBuffer});\n};\n\n// Retrieve result of child process: exit code, signal, error, streams (stdout/stderr/all)\nexport const getSpawnedResult = async ({stdout, stderr, all}, {encoding, buffer, maxBuffer}, processDone) => {\n\tconst stdoutPromise = getStreamPromise(stdout, {encoding, buffer, maxBuffer});\n\tconst stderrPromise = getStreamPromise(stderr, {encoding, buffer, maxBuffer});\n\tconst allPromise = getStreamPromise(all, {encoding, buffer, maxBuffer: maxBuffer * 2});\n\n\ttry {\n\t\treturn await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);\n\t} catch (error) {\n\t\treturn Promise.all([\n\t\t\t{error, signal: error.signal, timedOut: error.timedOut},\n\t\t\tgetBufferedData(stdout, stdoutPromise),\n\t\t\tgetBufferedData(stderr, stderrPromise),\n\t\t\tgetBufferedData(all, allPromise),\n\t\t]);\n\t}\n};\n","// eslint-disable-next-line unicorn/prefer-top-level-await\nconst nativePromisePrototype = (async () => {})().constructor.prototype;\n\nconst descriptors = ['then', 'catch', 'finally'].map(property => [\n\tproperty,\n\tReflect.getOwnPropertyDescriptor(nativePromisePrototype, property),\n]);\n\n// The return value is a mixin of `childProcess` and `Promise`\nexport const mergePromise = (spawned, promise) => {\n\tfor (const [property, descriptor] of descriptors) {\n\t\t// Starting the main `promise` is deferred to avoid consuming streams\n\t\tconst value = typeof promise === 'function'\n\t\t\t? (...args) => Reflect.apply(descriptor.value, promise(), args)\n\t\t\t: descriptor.value.bind(promise);\n\n\t\tReflect.defineProperty(spawned, property, {...descriptor, value});\n\t}\n};\n\n// Use promises instead of `child_process` events\nexport const getSpawnedPromise = spawned => new Promise((resolve, reject) => {\n\tspawned.on('exit', (exitCode, signal) => {\n\t\tresolve({exitCode, signal});\n\t});\n\n\tspawned.on('error', error => {\n\t\treject(error);\n\t});\n\n\tif (spawned.stdin) {\n\t\tspawned.stdin.on('error', error => {\n\t\t\treject(error);\n\t\t});\n\t}\n});\n","import {Buffer} from 'node:buffer';\nimport {ChildProcess} from 'node:child_process';\n\nconst normalizeArgs = (file, args = []) => {\n\tif (!Array.isArray(args)) {\n\t\treturn [file];\n\t}\n\n\treturn [file, ...args];\n};\n\nconst NO_ESCAPE_REGEXP = /^[\\w.-]+$/;\nconst DOUBLE_QUOTES_REGEXP = /\"/g;\n\nconst escapeArg = arg => {\n\tif (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {\n\t\treturn arg;\n\t}\n\n\treturn `\"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\\\\"')}\"`;\n};\n\nexport const joinCommand = (file, args) => normalizeArgs(file, args).join(' ');\n\nexport const getEscapedCommand = (file, args) => normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');\n\nconst SPACES_REGEXP = / +/g;\n\n// Handle `execaCommand()`\nexport const parseCommand = command => {\n\tconst tokens = [];\n\tfor (const token of command.trim().split(SPACES_REGEXP)) {\n\t\t// Allow spaces to be escaped by a backslash if not meant as a delimiter\n\t\tconst previousToken = tokens[tokens.length - 1];\n\t\tif (previousToken && previousToken.endsWith('\\\\')) {\n\t\t\t// Merge previous token with current one\n\t\t\ttokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;\n\t\t} else {\n\t\t\ttokens.push(token);\n\t\t}\n\t}\n\n\treturn tokens;\n};\n\nconst parseExpression = expression => {\n\tconst typeOfExpression = typeof expression;\n\n\tif (typeOfExpression === 'string') {\n\t\treturn expression;\n\t}\n\n\tif (typeOfExpression === 'number') {\n\t\treturn String(expression);\n\t}\n\n\tif (\n\t\ttypeOfExpression === 'object'\n\t\t&& expression !== null\n\t\t&& !(expression instanceof ChildProcess)\n\t\t&& 'stdout' in expression\n\t) {\n\t\tconst typeOfStdout = typeof expression.stdout;\n\n\t\tif (typeOfStdout === 'string') {\n\t\t\treturn expression.stdout;\n\t\t}\n\n\t\tif (Buffer.isBuffer(expression.stdout)) {\n\t\t\treturn expression.stdout.toString();\n\t\t}\n\n\t\tthrow new TypeError(`Unexpected \"${typeOfStdout}\" stdout in template expression`);\n\t}\n\n\tthrow new TypeError(`Unexpected \"${typeOfExpression}\" in template expression`);\n};\n\nconst concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0\n\t? [...tokens, ...nextTokens]\n\t: [\n\t\t...tokens.slice(0, -1),\n\t\t`${tokens[tokens.length - 1]}${nextTokens[0]}`,\n\t\t...nextTokens.slice(1),\n\t];\n\nconst parseTemplate = ({templates, expressions, tokens, index, template}) => {\n\tconst templateString = template ?? templates.raw[index];\n\tconst templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);\n\tconst newTokens = concatTokens(\n\t\ttokens,\n\t\ttemplateTokens,\n\t\ttemplateString.startsWith(' '),\n\t);\n\n\tif (index === expressions.length) {\n\t\treturn newTokens;\n\t}\n\n\tconst expression = expressions[index];\n\tconst expressionTokens = Array.isArray(expression)\n\t\t? expression.map(expression => parseExpression(expression))\n\t\t: [parseExpression(expression)];\n\treturn concatTokens(\n\t\tnewTokens,\n\t\texpressionTokens,\n\t\ttemplateString.endsWith(' '),\n\t);\n};\n\nexport const parseTemplates = (templates, expressions) => {\n\tlet tokens = [];\n\n\tfor (const [index, template] of templates.entries()) {\n\t\ttokens = parseTemplate({templates, expressions, tokens, index, template});\n\t}\n\n\treturn tokens;\n};\n\n","import {debuglog} from 'node:util';\nimport process from 'node:process';\n\nexport const verboseDefault = debuglog('execa').enabled;\n\nconst padField = (field, padding) => String(field).padStart(padding, '0');\n\nconst getTimestamp = () => {\n\tconst date = new Date();\n\treturn `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;\n};\n\nexport const logCommand = (escapedCommand, {verbose}) => {\n\tif (!verbose) {\n\t\treturn;\n\t}\n\n\tprocess.stderr.write(`[${getTimestamp()}] ${escapedCommand}\\n`);\n};\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"@actions/core\"\nimport { execaSync } from \"execa\"\nimport { join } from \"patha\"\nimport which from \"which\"\nimport { getBrewPath, setupBrew } from \"../../brew/brew\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasBrew = false\n\n/** A function that installs a package using brew */\nexport async function setupBrewPack(\n name: string,\n version?: string,\n extraArgs: string[] = [],\n): Promise {\n info(`Installing ${name} ${version ?? \"\"} via brew`)\n\n if (!hasBrew || which.sync(\"brew\", { nothrow: true }) === null) {\n await setupBrew(\"\", \"\", process.arch)\n hasBrew = true\n }\n\n const binDir = getBrewPath()\n\n // brew is not thread-safe\n execaSync(\n join(binDir, \"brew\"),\n [\"install\", version !== undefined && version !== \"\" ? `${name}@${version}` : name, ...extraArgs],\n {\n stdio: \"inherit\",\n },\n )\n\n return { binDir }\n}\n","import { mkdirP } from \"@actions/io\"\nimport { execaSync } from \"execa\"\nimport { readFileSync } from \"fs\"\nimport { tmpdir } from \"os\"\nimport path, { join } from \"path\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\n\n/* eslint-disable require-atomic-updates */\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupBrew(_version: string, _setupDir: string, _arch: string) {\n if (![\"darwin\", \"linux\"].includes(process.platform)) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"brew\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // brew is not thread-safe\n const brewTempDirectory = path.join(tmpdir(), \"setup-cpp\", \"brew\")\n await mkdirP(brewTempDirectory)\n\n execaSync(\"curl\", [\"-LJO\", \"https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh\"], {\n cwd: brewTempDirectory,\n })\n const installSh = join(brewTempDirectory, \"install.sh\")\n\n if (process.platform === \"linux\") {\n const installShContent = readFileSync(installSh, \"utf-8\")\n\n installShContent.replace(\"#!/bin/bash\", \"\")\n }\n\n execaSync(\"/bin/bash\", [installSh], {\n stdio: \"inherit\",\n env: {\n NONINTERACTIVE: \"1\",\n },\n })\n\n binDir = getBrewPath()\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport function getBrewPath() {\n if (process.platform === \"linux\") {\n return \"/home/linuxbrew/.linuxbrew/bin/\"\n } else {\n return \"/usr/local/bin/\"\n }\n}\n","/* eslint-disable require-atomic-updates */\nimport { info } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport which from \"which\"\nimport { setupChocolatey } from \"../../chocolatey/chocolatey\"\nimport { addPath } from \"../env/addEnv\"\nimport { InstallationInfo } from \"./setupBin\"\n\nlet hasChoco = false\n\n/** A function that installs a package using choco */\nexport async function setupChocoPack(name: string, version?: string, args: string[] = []): Promise {\n info(`Installing ${name} ${version ?? \"\"} via chocolatey`)\n\n if (!hasChoco || which.sync(\"choco\", { nothrow: true }) === null) {\n await setupChocolatey(\"\", \"\", process.arch)\n hasChoco = true\n }\n\n // https://github.com/jberezanski/ChocolateyPackages/issues/97#issuecomment-986825694\n const PATH = process.env.PATH\n const env = { ...process.env }\n delete env.TMP\n delete env.TEMP\n delete env.Path\n env.PATH = PATH\n\n if (version !== undefined && version !== \"\") {\n execaSync(\"choco\", [\"install\", \"-y\", name, `--version=${version}`, ...args], {\n env,\n extendEnv: false,\n stdio: \"inherit\",\n })\n } else {\n try {\n execaSync(\"choco\", [\"install\", \"-y\", name, ...args], { env, extendEnv: false, stdio: \"inherit\" })\n } catch (err) {\n // if the package requires a reboot, downgrade the error to a notice\n if ((err as Error).message.includes(\"exit code 3010\")) {\n info(`${name} might require a reboot for the completion of the installation.`)\n } else {\n throw err\n }\n }\n }\n\n const binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n await addPath(binDir)\n\n return { binDir }\n}\n","/* eslint-disable require-atomic-updates */\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\n\nlet binDir: string | undefined\n\nexport async function setupChocolatey(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _version: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _setupDir: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n if (process.platform !== \"win32\") {\n return undefined\n }\n\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"choco\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n let powershell = \"powershell.exe\"\n const maybePowerShell = which.sync(`${process.env.SystemRoot}\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe`, {\n nothrow: true,\n })\n if (maybePowerShell !== null) {\n powershell = maybePowerShell\n }\n\n // https://docs.chocolatey.org/en-us/choco/setup#install-with-cmd.exe\n execaSync(\n powershell,\n [\n \"-NoProfile\",\n \"-InputFormat\",\n \"None\",\n \"-ExecutionPolicy\",\n \"Bypass\",\n \"-Command\",\n \"[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))\",\n ],\n { stdio: \"inherit\" },\n )\n\n const chocoPath = `${process.env.ALLUSERSPROFILE}\\\\chocolatey\\\\bin`\n await addPath(chocoPath)\n\n const maybeChoco = which.sync(\"choco\", { nothrow: true })\n if (maybeChoco !== null) {\n binDir = dirname(maybeChoco)\n } else {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n\n if (await pathExists(binDir)) {\n return { binDir }\n }\n return undefined\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { InstallationInfo } from \"./setupBin\"\n\ntype DnfPackage = {\n name: string\n version?: string\n}\n\n/** A function that installs a package using dnf */\nexport async function setupDnfPack(packages: DnfPackage[]): Promise {\n for (const { name, version } of packages) {\n info(`Installing ${name} ${version ?? \"\"} via dnf`)\n }\n\n const dnfArgs = await Promise.all(packages.map((pack) => getDnfArg(pack.name, pack.version)))\n execRootSync(\"dnf\", [\"-y\", \"install\", ...dnfArgs])\n\n return { binDir: \"/usr/bin/\" }\n}\n\nasync function getDnfArg(name: string, version: string | undefined) {\n if (version !== undefined && version !== \"\") {\n // check if name-version is available\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}-${version}`])\n\n if (stdout.trim() !== \"\") {\n return `${name}-${version}`\n } else {\n // try with ${name}${version}\n // eslint-disable-next-line @typescript-eslint/no-shadow\n const { stdout } = await execa(\"dnf\", [\"search\", \"-q\", `${name}${version}`])\n if (stdout.trim() !== \"\") {\n return `${name}${version}`\n }\n\n warning(`Failed to install ${name} ${version} via dnf, trying without version`)\n }\n }\n return name\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupCcache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"ccache\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"ccache\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"ccache\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"ccache\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { execRootSync } from \"admina\"\nimport { info, warning } from \"ci-log\"\nimport { execa, execaSync } from \"execa\"\nimport which from \"which\"\nimport { InstallationInfo } from \"./setupBin\"\n\n/* eslint-disable require-atomic-updates */\nlet didUpdate: boolean = false\nlet didInit: boolean = false\n\n/** A function that installs a package using pacman */\nexport async function setupPacmanPack(name: string, version?: string, aur?: string): Promise {\n info(`Installing ${name} ${version ?? \"\"} via pacman`)\n\n const pacman = \"pacman\"\n\n if (aur === \"yay\" && which.sync(\"yay\", { nothrow: true }) === null) {\n // TODO: install yay automatically\n throw new Error(`yay is needed for ${name}, but it is not installed, please install it manually first`)\n }\n\n // yay can't run as root, so skip update\n if (!didUpdate && aur !== \"yay\") {\n execRootSync(pacman, [\"-Sy\", \"--noconfirm\"])\n didUpdate = true\n }\n\n // install base-devel\n if (!didInit && aur !== \"yay\") {\n execRootSync(pacman, [\"-S\", \"--noconfirm\", \"base-devel\"])\n didInit = true\n }\n\n const runInstall = (arg: string) => {\n if (aur === \"yay\") {\n // run yay as non-root, ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.\n return execaSync(aur, [\"-S\", \"--noconfirm\", arg])\n }\n return execRootSync(aur ?? pacman, [\"-S\", \"--noconfirm\", arg])\n }\n\n if (version !== undefined && version !== \"\") {\n // check if version is available\n const availableVersions = await availablePacmanVersions(pacman, name)\n if (availableVersions.includes(version)) {\n // try different version formats\n try {\n runInstall(`${name}=${version}`)\n } catch {\n runInstall(`${name}${version}`)\n }\n } else {\n // try without version\n info(`Failed to install ${name} ${version} via pacman, trying without version`)\n runInstall(name)\n }\n } else {\n // version not specified, install latest\n runInstall(name)\n }\n\n return { binDir: \"/usr/bin/\" }\n}\n\nconst pacmanSiVersionRegex = /Version\\s*:\\s*(.*)/g\n\n/** Query pacman for available versions */\nasync function availablePacmanVersions(pacman: string, name: string) {\n const availableVersions = []\n try {\n const { stdout } = await execa(pacman, [\"-Si\", name])\n\n for (const match of stdout.matchAll(pacmanSiVersionRegex)) {\n availableVersions.push(match[1])\n }\n } catch (err) {\n warning(`Failed to get available versions for ${name}: ${err}`)\n }\n return availableVersions\n}\n","import { extractTar } from \"@actions/tool-cache\"\nimport { addExeExt } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform data for cmake */\nfunction getCmakePackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const semVersion = semverCoerce(version) ?? version\n switch (platform) {\n case \"win32\": {\n const isOld = semverLte(semVersion, \"v3.19.6\")\n let osArchStr: string\n if ([\"ia32\", \"x86\", \"i386\", \"x32\"].includes(arch)) {\n osArchStr = isOld ? \"win32-x86\" : \"windows-i386\"\n } else {\n osArchStr = isOld ? \"win64-x64\" : \"windows-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.zip`,\n }\n }\n case \"darwin\": {\n const isOld = semverLte(semVersion, \"v3.19.1\")\n const osArchStr = isOld ? \"Darwin-x86_64\" : \"macos-universal\"\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"CMake.app/Contents/bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n case \"linux\": {\n const isOld = semverLte(semVersion, \"v3.19.8\")\n let osArchStr: string\n if ([\"aarch64\"].includes(arch)) {\n osArchStr = isOld ? \"Linux-aarch64\" : \"linux-aarch64\"\n } else {\n osArchStr = isOld ? \"Linux-x86_64\" : \"linux-x86_64\"\n }\n const folderName = `cmake-${version}-${osArchStr}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"cmake\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Setup cmake */\nexport function setupCmake(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"cmake\", version, getCmakePackageInfo, setupDir, arch)\n}\n",null,null,null,null,"import { mkdirP } from \"@actions/io\"\nimport { grantUserWriteAccess } from \"admina\"\nimport { warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport which from \"which\"\nimport { setupSevenZip } from \"../../sevenzip/sevenzip\"\nexport { extractTar, extractXar } from \"@actions/tool-cache\"\n\nlet sevenZip: string | undefined\n\n/// Extract 7z using 7z\nexport async function extract7Zip(file: string, dest: string) {\n await execa(await getSevenZip(), [\"x\", file, `-o${dest}`, \"-y\"], { stdio: \"inherit\" })\n await grantUserWriteAccess(dest)\n return dest\n}\n\n/// install 7z if needed\nasync function getSevenZip() {\n if (sevenZip === undefined) {\n if (which.sync(\"7z\", { nothrow: true }) === null) {\n await setupSevenZip(\"\", \"\", process.arch)\n }\n // eslint-disable-next-line require-atomic-updates\n sevenZip = \"7z\"\n }\n return sevenZip\n}\n\n/// Extract Exe using 7z\nexport function extractExe(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\n/// Extract Zip using 7z\nexport function extractZip(file: string, dest: string) {\n return extract7Zip(file, dest)\n}\n\nexport async function extractTarByExe(file: string, dest: string, flags = [\"--strip-components=0\"]) {\n try {\n await mkdirP(dest)\n } catch {\n // ignore\n }\n\n // TODO windows fails to create symlinks\n // https://github.com/heroku/heroku-slugs/issues/3\n\n try {\n await execa(\"tar\", [\"xf\", file, \"-C\", dest, ...flags], { stdio: \"inherit\" })\n } catch (e) {\n if (process.platform === \"win32\" && (e as Error).message.includes(\"Can't create '\\\\\\\\?\\\\C:\")) {\n warning(`Failed to extract symlink ${file} to ${dest}. Ignoring this symlink.`)\n }\n }\n\n grantUserWriteAccess(dest)\n return dest\n}\n","import { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSevenZip(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"7zip\", version)\n }\n case \"darwin\": {\n return setupBrewPack(\"p7zip\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"p7zip\", version)\n } else if (hasDnf()) {\n return setupDnfPack([\n { name: \"p7zip\", version },\n { name: \"p7zip-plugins\", version },\n ])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"p7zip-full\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { cacheDir, downloadTool, find } from \"@actions/tool-cache\"\nimport { info } from \"ci-log\"\nimport { join } from \"patha\"\nimport { addPath } from \"../env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { tmpdir } from \"os\"\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\n/** A type that describes a package */\nexport type PackageInfo = {\n /** Url to download the package */\n url: string\n /** The top folder name once it is extracted. It can be `\"\"` if there is no top folder */\n extractedFolderName: string\n /** The relative directory in which the binary is located. It can be `\"\"` if the exe is in the top folder */\n binRelativeDir: string\n /** The main binary file. */\n binFileName: string\n /** The function to extract the downloaded archive. It can be `undefined`, if the binary itself is downloaded directly. */\n extractFunction?: {\n (file: string, dest: string): Promise\n }\n}\n\nexport type InstallationInfo = {\n /** The top install dir */\n installDir?: string\n binDir: string\n bin?: string\n}\n\nlet didInit: boolean = false\n\n/**\n * A function that:\n *\n * - Downloads and extracts a package\n * - Adds the bin path of the package to PATH\n * - Caches the downloaded directory into tool cache for usage from other sessions\n *\n * @returns The installation directory\n */\nexport async function setupBin(\n name: string,\n version: string,\n getPackageInfo: (version: string, platform: NodeJS.Platform, arch: string) => PackageInfo | Promise,\n setupDir: string,\n arch: string,\n): Promise {\n info(`Installing ${name} ${version} ${arch} via direct downloading`)\n\n process.env.RUNNER_TEMP = process.env.RUNNER_TEMP ?? tmpdir()\n process.env.RUNNER_TOOL_CACHE = process.env.RUNNER_TOOL_CACHE ?? join(tmpdir(), \"setup-cpp\", \"hostedtoolcache\")\n\n const { url, binRelativeDir, binFileName, extractedFolderName, extractFunction } = await getPackageInfo(\n version,\n process.platform,\n arch,\n )\n\n // Restore from cache (if found).\n if (GITHUB_ACTIONS) {\n try {\n const dir = find(name, version)\n if (dir) {\n const installDir = join(dir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n if (await pathExists(join(binDir, binFileName))) {\n info(`${name} ${version} was found in the cache at ${binDir}.`)\n await addPath(binDir)\n\n return { installDir, binDir }\n }\n }\n } catch {\n // fails on a local machine?\n }\n }\n\n const installDir = join(setupDir, extractedFolderName)\n const binDir = join(installDir, binRelativeDir)\n const binFile = join(binDir, binFileName)\n\n // download ane extract the package into the installation directory.\n if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {\n try {\n info(`Download ${name} ${version}`)\n // try to download the package 4 times with 2 seconds delay\n const downloaded = await retry(\n () => {\n return downloadTool(url)\n },\n { name: url, max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n\n if (!didInit) {\n info(`Installing extraction dependencies`)\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"unzip\"), setupPacmanPack(\"tar\"), setupPacmanPack(\"xz\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"unzip\" }, { name: \"tar\" }, { name: \"xz-utils\" }])\n }\n }\n // eslint-disable-next-line require-atomic-updates\n didInit = true\n }\n\n info(`Extracting ${downloaded} to ${setupDir}`)\n await extractFunction?.(downloaded, setupDir)\n // if (typeof extractedBinDir === \"string\") {\n // binDir = extractedBinDir\n // installDir = extractedBinDir\n // }\n } catch (err) {\n throw new Error(`Failed to download ${name} ${version} ${arch} from ${url}: ${err}`)\n }\n }\n\n // Adding the bin dir to the path\n /** The directory which the tool is installed to */\n info(`Add ${binDir} to PATH`)\n await addPath(binDir)\n\n // check if inside Github Actions. If so, cache the installation\n if (GITHUB_ACTIONS && typeof process.env.RUNNER_TOOL_CACHE === \"string\") {\n await cacheDir(setupDir, name, version)\n }\n\n return { installDir, binDir }\n}\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAsPromised = exports.TimeoutError = void 0;\nclass TimeoutError extends Error {\n constructor(message, previousError) {\n super(message);\n this.name = \"TimeoutError\";\n this.previous = previousError;\n }\n}\nexports.TimeoutError = TimeoutError;\nfunction matches(match, err) {\n if (typeof match === 'function') {\n try {\n if (err instanceof match)\n return true;\n }\n catch (_) {\n return !!match(err);\n }\n }\n if (match === err.toString())\n return true;\n if (match === err.message)\n return true;\n return match instanceof RegExp\n && (match.test(err.message) || match.test(err.toString()));\n}\nfunction retryAsPromised(callback, optionsInput) {\n if (!callback || !optionsInput) {\n throw new Error('retry-as-promised must be passed a callback and a options set');\n }\n optionsInput = (typeof optionsInput === \"number\" ? { max: optionsInput } : optionsInput);\n const options = {\n $current: \"$current\" in optionsInput ? optionsInput.$current : 1,\n max: optionsInput.max,\n timeout: optionsInput.timeout || undefined,\n match: optionsInput.match ? Array.isArray(optionsInput.match) ? optionsInput.match : [optionsInput.match] : [],\n backoffBase: optionsInput.backoffBase === undefined ? 100 : optionsInput.backoffBase,\n backoffExponent: optionsInput.backoffExponent || 1.1,\n report: optionsInput.report,\n name: optionsInput.name || callback.name || 'unknown'\n };\n if (options.match && !Array.isArray(options.match))\n options.match = [options.match];\n if (options.report)\n options.report('Trying ' + options.name + ' #' + options.$current + ' at ' + new Date().toLocaleTimeString(), options);\n return new Promise(function (resolve, reject) {\n let timeout;\n let backoffTimeout;\n let lastError;\n if (options.timeout) {\n timeout = setTimeout(function () {\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n reject(new TimeoutError(options.name + ' timed out', lastError));\n }, options.timeout);\n }\n Promise.resolve(callback({ current: options.$current }))\n .then(resolve)\n .then(function () {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n })\n .catch(function (err) {\n if (timeout)\n clearTimeout(timeout);\n if (backoffTimeout)\n clearTimeout(backoffTimeout);\n lastError = err;\n if (options.report)\n options.report((err && err.toString()) || err, options, err);\n // Should not retry if max has been reached\n var shouldRetry = options.$current < options.max;\n if (!shouldRetry)\n return reject(err);\n shouldRetry = options.match.length === 0 || options.match.some(function (match) {\n return matches(match, err);\n });\n if (!shouldRetry)\n return reject(err);\n var retryDelay = options.backoffBase * Math.pow(options.backoffExponent, options.$current - 1);\n // Do some accounting\n options.$current++;\n if (options.report)\n options.report(`Retrying ${options.name} (${options.$current})`, options);\n if (retryDelay) {\n // Use backoff function to ease retry rate\n if (options.report)\n options.report(`Delaying retry of ${options.name} by ${retryDelay}`, options);\n backoffTimeout = setTimeout(function () {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }, retryDelay);\n }\n else {\n retryAsPromised(callback, options)\n .then(resolve)\n .catch(reject);\n }\n });\n });\n}\nexports.retryAsPromised = retryAsPromised;\n;\nexports.default = retryAsPromised;\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupConan(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"conan\", version)\n}\n","import { info } from \"@actions/core\"\nimport { execa, execaSync } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { mkdirp } from \"mkdirp\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { addPythonBaseExecPrefix, setupPython } from \"../../python/python\"\nimport { getVersion } from \"../../versions/versions\"\nimport { addPath } from \"../env/addEnv\"\nimport { hasDnf } from \"../env/hasDnf\"\nimport { isArch } from \"../env/isArch\"\nimport { isUbuntu } from \"../env/isUbuntu\"\nimport { ubuntuVersion } from \"../env/ubuntu_version\"\nimport { setupAptPack } from \"./setupAptPack\"\nimport { InstallationInfo } from \"./setupBin\"\nimport { setupDnfPack } from \"./setupDnfPack\"\nimport { setupPacmanPack } from \"./setupPacmanPack\"\n\nexport type SetupPipPackOptions = {\n /** Whether to use pipx instead of pip */\n usePipx?: boolean\n /** Whether to install the package as a user */\n user?: boolean\n /** Whether to upgrade the package */\n upgrade?: boolean\n /** Whether the package is a library */\n isLibrary?: boolean\n}\n\n/** A function that installs a package using pip */\nexport async function setupPipPack(\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n return setupPipPackWithPython(await getPython(), name, version, options)\n}\n\nexport async function setupPipPackWithPython(\n givenPython: string,\n name: string,\n version?: string,\n options: SetupPipPackOptions = {},\n): Promise {\n const { usePipx = true, user = true, upgrade = false, isLibrary = false } = options\n\n const isPipx = usePipx && !isLibrary && (await hasPipx(givenPython))\n const pip = isPipx ? \"pipx\" : \"pip\"\n\n const hasPackage = await pipHasPackage(givenPython, name)\n if (hasPackage) {\n try {\n info(`Installing ${name} ${version ?? \"\"} via ${pip}`)\n\n const nameAndVersion = version !== undefined && version !== \"\" ? `${name}==${version}` : name\n const upgradeFlag = upgrade ? (isPipx ? [\"upgrade\"] : [\"install\", \"--upgrade\"]) : [\"install\"]\n const userFlag = !isPipx && user ? [\"--user\"] : []\n\n const env = process.env\n\n if (isPipx && user) {\n // install to user home\n env.PIPX_HOME = await getPipxHome()\n env.PIPX_BIN_DIR = await getPipxBinDir()\n }\n\n execaSync(givenPython, [\"-m\", pip, ...upgradeFlag, ...userFlag, nameAndVersion], {\n stdio: \"inherit\",\n env,\n })\n } catch (err) {\n info(`Failed to install ${name} via ${pip}: ${err}.`)\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} via ${pip}: ${err}.`)\n }\n }\n } else {\n if ((await setupPipPackSystem(name)) === null) {\n throw new Error(`Failed to install ${name} as it was not found via ${pip} or the system package manager`)\n }\n }\n\n const execPaths = await addPythonBaseExecPrefix(givenPython)\n const binDir = await findBinDir(execPaths, name)\n\n await addPath(binDir)\n\n return { binDir }\n}\n\nexport async function hasPipx(givenPython: string) {\n return (await execa(givenPython, [\"-m\", \"pipx\", \"--help\"], { stdio: \"ignore\", reject: false })).exitCode === 0\n}\n\nasync function getPipxHome_raw() {\n let pipxHome = process.env.PIPX_HOME\n if (pipxHome !== undefined) {\n return pipxHome\n }\n\n // Based on https://pipx.pypa.io/stable/installation/\n const compatHome = untildifyUser(\"~/.local/pipx\")\n if (await pathExists(compatHome)) {\n return compatHome\n }\n\n switch (process.platform) {\n case \"win32\": {\n pipxHome = untildifyUser(\"~/AppData/Local/pipx\")\n break\n }\n case \"darwin\": {\n pipxHome = untildifyUser(\"~/Library/Application Support/pipx\")\n break\n }\n default: {\n pipxHome = untildifyUser(\"~/.local/share/pipx\")\n break\n }\n }\n\n await mkdirp(pipxHome)\n await mkdirp(join(pipxHome, \"trash\"))\n await mkdirp(join(pipxHome, \"shared\"))\n await mkdirp(join(pipxHome, \"venv\"))\n return pipxHome\n}\nconst getPipxHome = memoize(getPipxHome_raw, { isPromise: true })\n\nasync function getPipxBinDir_raw() {\n if (process.env.PIPX_BIN_DIR !== undefined) {\n return process.env.PIPX_BIN_DIR\n }\n\n const pipxBinDir = untildifyUser(\"~/.local/bin\")\n await addPath(pipxBinDir)\n await mkdirp(pipxBinDir)\n return pipxBinDir\n}\nconst getPipxBinDir = memoize(getPipxBinDir_raw, { isPromise: true })\n\nasync function getPython_raw(): Promise {\n const pythonBin = (await setupPython(getVersion(\"python\", undefined, await ubuntuVersion()), \"\", process.arch)).bin\n if (pythonBin === undefined) {\n throw new Error(\"Python binary was not found\")\n }\n return pythonBin\n}\nconst getPython = memoize(getPython_raw, { isPromise: true })\n\nasync function pipHasPackage(python: string, name: string) {\n const result = await execa(python, [\"-m\", \"pip\", \"-qq\", \"index\", \"versions\", name], {\n stdio: \"ignore\",\n reject: false,\n })\n return result.exitCode === 0\n}\n\nasync function findBinDir(dirs: string[], name: string) {\n const exists = await Promise.all(dirs.map((dir) => pathExists(join(dir, addExeExt(name)))))\n const dirIndex = exists.findIndex((exist) => exist)\n if (dirIndex !== -1) {\n const foundDir = dirs[dirIndex]\n return foundDir\n }\n\n const whichDir = which.sync(addExeExt(name), { nothrow: true })\n if (whichDir !== null) {\n return dirname(whichDir)\n }\n\n return dirs[dirs.length - 1]\n}\n\nexport function setupPipPackSystem(name: string, addPythonPrefix = true) {\n if (process.platform === \"linux\") {\n info(`Installing ${name} via the system package manager`)\n if (isArch()) {\n return setupPacmanPack(addPythonPrefix ? `python-${name}` : name)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: addPythonPrefix ? `python3-${name}` : name }])\n }\n }\n return null\n}\n",null,null,null,null,null,"import { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\nimport { pathArg } from './path-arg.js'\nimport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore start */\nexport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nexport { mkdirpNative, mkdirpNativeSync } from './mkdirp-native.js'\nexport { useNative, useNativeSync } from './use-native.js'\n/* c8 ignore stop */\n\nexport const mkdirpSync = (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNativeSync(resolved)\n ? mkdirpNativeSync(path, resolved)\n : mkdirpManualSync(path, resolved)\n}\n\nexport const sync = mkdirpSync\nexport const manual = mkdirpManual\nexport const manualSync = mkdirpManualSync\nexport const native = mkdirpNative\nexport const nativeSync = mkdirpNativeSync\nexport const mkdirp = Object.assign(\n async (path: string, opts?: MkdirpOptions) => {\n path = pathArg(path)\n const resolved = optsArg(opts)\n return useNative(resolved)\n ? mkdirpNative(path, resolved)\n : mkdirpManual(path, resolved)\n },\n {\n mkdirpSync,\n mkdirpNative,\n mkdirpNativeSync,\n mkdirpManual,\n mkdirpManualSync,\n\n sync: mkdirpSync,\n native: mkdirpNative,\n nativeSync: mkdirpNativeSync,\n manual: mkdirpManual,\n manualSync: mkdirpManualSync,\n useNative,\n useNativeSync,\n }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpManualSync = (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n): string | undefined | void => {\n const parent = dirname(path)\n const opts = { ...optsArg(options), recursive: false }\n\n if (parent === path) {\n try {\n return opts.mkdirSync(path, opts)\n } catch (er) {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n return\n }\n }\n\n try {\n opts.mkdirSync(path, opts)\n return made || path\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))\n }\n if (fer && fer.code !== 'EEXIST' && fer && fer.code !== 'EROFS') {\n throw er\n }\n try {\n if (!opts.statSync(path).isDirectory()) throw er\n } catch (_) {\n throw er\n }\n }\n}\n\nexport const mkdirpManual = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions,\n made?: string | undefined | void\n ): Promise => {\n const opts = optsArg(options)\n opts.recursive = false\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirAsync(path, opts).catch(er => {\n // swallowed by recursive implementation on posix systems\n // any other error is a failure\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code !== 'EISDIR') {\n throw er\n }\n })\n }\n\n return opts.mkdirAsync(path, opts).then(\n () => made || path,\n async er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(parent, opts).then(\n (made?: string | undefined | void) => mkdirpManual(path, opts, made)\n )\n }\n if (fer && fer.code !== 'EEXIST' && fer.code !== 'EROFS') {\n throw er\n }\n return opts.statAsync(path).then(\n st => {\n if (st.isDirectory()) {\n return made\n } else {\n throw er\n }\n },\n () => {\n throw er\n }\n )\n }\n )\n },\n { sync: mkdirpManualSync }\n)\n",null,"import {\n MakeDirectoryOptions,\n mkdir,\n mkdirSync,\n stat,\n Stats,\n statSync,\n} from 'fs'\n\nexport interface FsProvider {\n stat?: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync?: (path: string) => Stats\n mkdirSync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n}\n\ninterface Options extends FsProvider {\n mode?: number | string\n fs?: FsProvider\n mkdirAsync?: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync?: (path: string) => Promise\n}\n\nexport type MkdirpOptions = Options | number | string\n\nexport interface MkdirpOptionsResolved {\n mode: number\n fs: FsProvider\n mkdirAsync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => Promise\n statAsync: (path: string) => Promise\n stat: (\n path: string,\n callback: (err: NodeJS.ErrnoException | null, stats: Stats) => any\n ) => any\n mkdir: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean },\n callback: (err: NodeJS.ErrnoException | null, made?: string) => any\n ) => any\n statSync: (path: string) => Stats\n mkdirSync: (\n path: string,\n opts: MakeDirectoryOptions & { recursive?: boolean }\n ) => string | undefined\n recursive?: boolean\n}\n\nexport const optsArg = (opts?: MkdirpOptions): MkdirpOptionsResolved => {\n if (!opts) {\n opts = { mode: 0o777 }\n } else if (typeof opts === 'object') {\n opts = { mode: 0o777, ...opts }\n } else if (typeof opts === 'number') {\n opts = { mode: opts }\n } else if (typeof opts === 'string') {\n opts = { mode: parseInt(opts, 8) }\n } else {\n throw new TypeError('invalid options argument')\n }\n\n const resolved = opts as MkdirpOptionsResolved\n const optsFs = opts.fs || {}\n\n opts.mkdir = opts.mkdir || optsFs.mkdir || mkdir\n\n opts.mkdirAsync = opts.mkdirAsync\n ? opts.mkdirAsync\n : async (\n path: string,\n options: MakeDirectoryOptions & { recursive?: boolean }\n ): Promise => {\n return new Promise((res, rej) =>\n resolved.mkdir(path, options, (er, made) =>\n er ? rej(er) : res(made)\n )\n )\n }\n\n opts.stat = opts.stat || optsFs.stat || stat\n opts.statAsync = opts.statAsync\n ? opts.statAsync\n : async (path: string) =>\n new Promise((res, rej) =>\n resolved.stat(path, (err, stats) => (err ? rej(err) : res(stats)))\n )\n\n opts.statSync = opts.statSync || optsFs.statSync || statSync\n opts.mkdirSync = opts.mkdirSync || optsFs.mkdirSync || mkdirSync\n\n return resolved\n}\n",null,"import { dirname } from 'path'\nimport { findMade, findMadeSync } from './find-made.js'\nimport { mkdirpManual, mkdirpManualSync } from './mkdirp-manual.js'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nexport const mkdirpNativeSync = (\n path: string,\n options?: MkdirpOptions\n): string | void | undefined => {\n const opts = optsArg(options)\n opts.recursive = true\n const parent = dirname(path)\n if (parent === path) {\n return opts.mkdirSync(path, opts)\n }\n\n const made = findMadeSync(opts, path)\n try {\n opts.mkdirSync(path, opts)\n return made\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManualSync(path, opts)\n } else {\n throw er\n }\n }\n}\n\nexport const mkdirpNative = Object.assign(\n async (\n path: string,\n options?: MkdirpOptions\n ): Promise => {\n const opts = { ...optsArg(options), recursive: true }\n const parent = dirname(path)\n if (parent === path) {\n return await opts.mkdirAsync(path, opts)\n }\n\n return findMade(opts, path).then((made?: string | undefined) =>\n opts\n .mkdirAsync(path, opts)\n .then(m => made || m)\n .catch(er => {\n const fer = er as NodeJS.ErrnoException\n if (fer && fer.code === 'ENOENT') {\n return mkdirpManual(path, opts)\n } else {\n throw er\n }\n })\n )\n },\n { sync: mkdirpNativeSync }\n)\n",null,"import { dirname } from 'path'\nimport { MkdirpOptionsResolved } from './opts-arg.js'\n\nexport const findMade = async (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): Promise => {\n // we never want the 'made' return value to be a root directory\n if (path === parent) {\n return\n }\n\n return opts.statAsync(parent).then(\n st => (st.isDirectory() ? path : undefined), // will fail later\n er => {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMade(opts, dirname(parent), parent)\n : undefined\n }\n )\n}\n\nexport const findMadeSync = (\n opts: MkdirpOptionsResolved,\n parent: string,\n path?: string\n): undefined | string => {\n if (path === parent) {\n return undefined\n }\n\n try {\n return opts.statSync(parent).isDirectory() ? path : undefined\n } catch (er) {\n const fer = er as NodeJS.ErrnoException\n return fer && fer.code === 'ENOENT'\n ? findMadeSync(opts, dirname(parent), parent)\n : undefined\n }\n}\n",null,"const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform\nimport { parse, resolve } from 'path'\nexport const pathArg = (path: string) => {\n if (/\\0/.test(path)) {\n // simulate same failure that node raises\n throw Object.assign(\n new TypeError('path must be a string without null bytes'),\n {\n path,\n code: 'ERR_INVALID_ARG_VALUE',\n }\n )\n }\n\n path = resolve(path)\n if (platform === 'win32') {\n const badWinChars = /[*|\"<>?:]/\n const { root } = parse(path)\n if (badWinChars.test(path.substring(root.length))) {\n throw Object.assign(new Error('Illegal characters in path.'), {\n path,\n code: 'EINVAL',\n })\n }\n }\n\n return path\n}\n",null,"import { mkdir, mkdirSync } from 'fs'\nimport { MkdirpOptions, optsArg } from './opts-arg.js'\n\nconst version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version\nconst versArr = version.replace(/^v/, '').split('.')\nconst hasNative = +versArr[0] > 10 || (+versArr[0] === 10 && +versArr[1] >= 12)\n\nexport const useNativeSync = !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdirSync === mkdirSync\n\nexport const useNative = Object.assign(\n !hasNative\n ? () => false\n : (opts?: MkdirpOptions) => optsArg(opts).mkdir === mkdir,\n {\n sync: useNativeSync,\n }\n)\n","/* eslint-disable require-atomic-updates */\nimport { getExecOutput } from \"@actions/exec\"\nimport assert from \"assert\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { execa } from \"execa\"\nimport memoize from \"micro-memoize\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { hasPipx, setupPipPackSystem, setupPipPackWithPython } from \"../utils/setup/setupPipPack\"\nimport { isBinUptoDate } from \"../utils/setup/version\"\nimport { unique } from \"../utils/std\"\nimport { MinVersions } from \"../versions/default_versions\"\n\nexport async function setupPython(version: string, setupDir: string, arch: string): Promise {\n const installInfo = await findOrSetupPython(version, setupDir, arch)\n assert(installInfo.bin !== undefined)\n const foundPython = installInfo.bin\n\n // setup pip\n const foundPip = await findOrSetupPip(foundPython)\n if (foundPip === undefined) {\n throw new Error(\"pip was not installed correctly\")\n }\n\n await setupPipx(foundPython)\n\n await setupWheel(foundPython)\n\n return installInfo\n}\n\nasync function setupPipx(foundPython: string) {\n try {\n if (!(await hasPipx(foundPython))) {\n try {\n await setupPipPackWithPython(foundPython, \"pipx\", undefined, { upgrade: true, usePipx: false })\n } catch (err) {\n if (setupPipPackSystem(\"pipx\", false) === null) {\n throw new Error(`pipx was not installed correctly ${err}`)\n }\n }\n }\n await execa(foundPython, [\"-m\", \"pipx\", \"ensurepath\"], { stdio: \"inherit\" })\n await setupPipPackWithPython(foundPython, \"venv\", undefined, { upgrade: false, usePipx: false })\n } catch (err) {\n warning(`Failed to install pipx: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\n/** Setup wheel and setuptools */\nasync function setupWheel(foundPython: string) {\n try {\n await setupPipPackWithPython(foundPython, \"setuptools\", undefined, {\n upgrade: true,\n isLibrary: true,\n usePipx: false,\n })\n await setupPipPackWithPython(foundPython, \"wheel\", undefined, { upgrade: true, isLibrary: true, usePipx: false })\n } catch (err) {\n warning(`Failed to install setuptools or wheel: ${(err as Error).toString()}. Ignoring...`)\n }\n}\n\nasync function findOrSetupPython(version: string, setupDir: string, arch: string) {\n let installInfo: InstallationInfo | undefined\n let foundPython = await findPython(setupDir)\n\n if (foundPython !== undefined) {\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } else {\n // if python is not found, try to install it\n if (GITHUB_ACTIONS) {\n // install python in GitHub Actions\n try {\n info(\"Installing python in GitHub Actions\")\n const { setupActionsPython } = await import(\"./actions_python\")\n await setupActionsPython(version, setupDir, arch)\n\n foundPython = (await findPython(setupDir))!\n const binDir = dirname(foundPython)\n installInfo = { bin: foundPython, installDir: binDir, binDir }\n } catch (err) {\n warning((err as Error).toString())\n }\n }\n if (installInfo === undefined) {\n // install python via system package manager\n installInfo = await setupPythonSystem(setupDir, version)\n }\n }\n\n if (foundPython === undefined || installInfo.bin === undefined) {\n foundPython = (await findPython(setupDir))!\n installInfo.bin = foundPython\n }\n\n return installInfo\n}\n\nasync function setupPythonSystem(setupDir: string, version: string) {\n let installInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (setupDir) {\n await setupChocoPack(\"python3\", version, [`--params=/InstallDir:${setupDir}`])\n } else {\n await setupChocoPack(\"python3\", version)\n }\n // Adding the bin dir to the path\n const bin = (await findPython(setupDir))!\n const binDir = dirname(bin)\n /** The directory which the tool is installed to */\n await addPath(binDir)\n installInfo = { installDir: binDir, binDir, bin }\n break\n }\n case \"darwin\": {\n installInfo = await setupBrewPack(\"python3\", version)\n // add the python and pip binaries to the path\n const brewPythonPrefix = await execa(\"brew\", [\"--prefix\", \"python\"], { stdio: \"pipe\" })\n const brewPythonBin = join(brewPythonPrefix.stdout, \"libexec\", \"bin\")\n await addPath(brewPythonBin)\n\n break\n }\n case \"linux\": {\n if (isArch()) {\n installInfo = await setupPacmanPack(\"python\", version)\n } else if (hasDnf()) {\n installInfo = await setupDnfPack([{ name: \"python3\", version }])\n } else if (isUbuntu()) {\n installInfo = await setupAptPack([{ name: \"python3\", version }, { name: \"python-is-python3\" }])\n } else {\n throw new Error(\"Unsupported linux distributions\")\n }\n break\n }\n default: {\n throw new Error(\"Unsupported platform\")\n }\n }\n return installInfo\n}\n\nasync function findPython(binDir?: string) {\n for (const pythonBin of [\"python3\", \"python\"]) {\n // eslint-disable-next-line no-await-in-loop\n const foundPython = await isPythonUpToDate(pythonBin, binDir)\n if (foundPython !== undefined) {\n return foundPython\n }\n }\n return undefined\n}\n\nasync function isPythonUpToDate(candidate: string, binDir?: string) {\n try {\n if (binDir !== undefined) {\n const pythonBinPath = join(binDir, addExeExt(candidate))\n if (await pathExists(pythonBinPath)) {\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n }\n const pythonBinPaths = (await which(candidate, { nothrow: true, all: true })) ?? []\n for (const pythonBinPath of pythonBinPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (await isBinUptoDate(pythonBinPath, MinVersions.python!)) {\n return pythonBinPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function findOrSetupPip(foundPython: string) {\n const maybePip = await findPip()\n\n if (maybePip === undefined) {\n // install pip if not installed\n info(\"pip was not found. Installing pip\")\n await setupPip(foundPython)\n return findPip() // recurse to check if pip is on PATH and up-to-date\n }\n\n return maybePip\n}\n\nasync function findPip() {\n for (const pipCandidate of [\"pip3\", \"pip\"]) {\n // eslint-disable-next-line no-await-in-loop\n const maybePip = await isPipUptoDate(pipCandidate)\n if (maybePip !== undefined) {\n return maybePip\n }\n }\n return undefined\n}\n\nasync function isPipUptoDate(pip: string) {\n try {\n const pipPaths = (await which(pip, { nothrow: true, all: true })) ?? []\n for (const pipPath of pipPaths) {\n // eslint-disable-next-line no-await-in-loop\n if (pipPath !== null && (await isBinUptoDate(pipPath, MinVersions.pip!))) {\n return pipPath\n }\n }\n } catch {\n // fall through\n }\n return undefined\n}\n\nasync function setupPip(foundPython: string) {\n const upgraded = await ensurePipUpgrade(foundPython)\n if (!upgraded) {\n // ensure that pip is installed on Linux (happens when python is found but pip not installed)\n await setupPipPackSystem(\"pip\")\n\n // upgrade pip\n await ensurePipUpgrade(foundPython)\n }\n}\n\nasync function ensurePipUpgrade(foundPython: string) {\n try {\n await execa(foundPython, [\"-m\", \"ensurepip\", \"-U\", \"--upgrade\"], { stdio: \"inherit\" })\n return true\n } catch (err1) {\n info((err1 as Error).toString())\n try {\n // ensure pip is disabled on Ubuntu\n await execa(foundPython, [\"-m\", \"pip\", \"install\", \"--upgrade\", \"pip\"], { stdio: \"inherit\" })\n return true\n } catch (err2) {\n info((err2 as Error).toString())\n // pip module not found\n }\n }\n // all methods failed\n return false\n}\n\nasync function addPythonBaseExecPrefix_raw(python: string) {\n const dirs: string[] = []\n\n // detection based on the platform\n if (process.platform === \"linux\") {\n dirs.push(\"/home/runner/.local/bin/\")\n } else if (process.platform === \"darwin\") {\n dirs.push(\"/usr/local/bin/\")\n }\n\n // detection using python.sys\n const base_exec_prefix = (await getExecOutput(`${python} -c \"import sys;print(sys.base_exec_prefix);\"`)).stdout.trim()\n // any of these are possible depending on the operating system!\n dirs.push(join(base_exec_prefix, \"Scripts\"), join(base_exec_prefix, \"Scripts\", \"bin\"), join(base_exec_prefix, \"bin\"))\n\n // remove duplicates\n return unique(dirs)\n}\n\n/**\n * Add the base exec prefix to the PATH. This is required for Conan, Meson, etc. to work properly.\n *\n * The answer is cached for subsequent calls\n */\nexport const addPythonBaseExecPrefix = memoize(addPythonBaseExecPrefix_raw, { isPromise: true })\n","import { getExecOutput } from \"@actions/exec\"\nimport { info } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverCompare from \"semver/functions/compare\"\nimport semverValid from \"semver/functions/valid\"\n\n/**\n * Gets the specific versions supported by this action compatible with the supplied (specific or minimum) version in\n * descending order of release (e.g., `5.0.2`, `5.0.1`, and `5.0.0` for `5`).\n */\nexport function getSpecificVersions(versions: Set, semversion: string): string[] {\n return Array.from(versions)\n .filter((v) => /^\\d+\\.\\d+\\.\\d+$/.test(v) && v.startsWith(semversion))\n .sort((a, b) => {\n try {\n return semverCompare(a, b)\n } catch (err) {\n return a.localeCompare(b)\n }\n })\n .reverse()\n}\n\n/**\n * Gets the specific and minimum versions that can be used to refer to the supplied specific versions (e.g., `3`, `3.5`,\n * `3.5.2` for `3.5.2`).\n */\nexport function getVersions(specific: string[]): Set {\n const versions = new Set(specific)\n\n for (const version of specific) {\n versions.add(/^\\d+/.exec(version)![0])\n versions.add(/^\\d+\\.\\d+/.exec(version)![0])\n }\n\n return versions\n}\n\n/** Gets the most recent specific version for which there is a valid download URL. */\nexport async function getSpecificVersionAndUrl(\n versions: Set,\n platform: string,\n version: string,\n getUrl: (platform: string, version: string) => string | null | Promise,\n): Promise<[string, string]> {\n // specific ubuntu version\n if (platform === \"linux\" && version.includes(\"ubuntu\")) {\n const url = await getUrl(platform, version)\n // eslint-disable-next-line no-await-in-loop\n if (url !== null && (await isUrlOnline(url))) {\n return [version, url]\n }\n }\n\n // if the given set doesn't include the version, throw an error\n if (!versions.has(version)) {\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n }\n\n const offlineUrls: string[] = []\n\n // TODO use Promise.any\n for (const specificVersion of getSpecificVersions(versions, version)) {\n // eslint-disable-next-line no-await-in-loop\n const url = await getUrl(platform, specificVersion)\n if (url !== null) {\n // eslint-disable-next-line no-await-in-loop\n if (await isUrlOnline(url)) {\n return [specificVersion, url]\n } else {\n offlineUrls.push(url)\n }\n }\n }\n\n throw new Error(\n `Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${\n JSON.stringify(\n versions,\n )\n }`,\n )\n}\n\nexport const defaultVersionRegex = /v?(\\d\\S*)/\n\n/** Get the version of a binary */\nexport async function getBinVersion(file: string, versionRegex: RegExp = defaultVersionRegex) {\n try {\n const execout = await getExecOutput(file, [\"--version\"])\n const version_output = execout.stdout || execout.stderr || \"\"\n const version = version_output.trim().match(versionRegex)?.[1]\n return semverCoerce(version) ?? undefined\n } catch (e) {\n console.error(e)\n return undefined\n }\n}\n\n/** Check if the given bin is up to date against the target version */\nexport async function isBinUptoDate(\n givenFile: string,\n targetVersion: string,\n versionRegex: RegExp = defaultVersionRegex,\n) {\n const givenVersion = await getBinVersion(givenFile, versionRegex)\n if (givenVersion !== undefined && targetVersion !== \"\") {\n return semverCompare(givenVersion, targetVersion) !== -1\n } else {\n // assume given version is old\n return false\n }\n}\n\n/** Coerce the given version if it is invalid */\nexport function semverCoerceIfInvalid(version: string) {\n if (semverValid(version) === null) {\n // version coercion\n try {\n // find the semver version of an integer\n const coercedVersion = semverCoerce(version)\n if (coercedVersion !== null) {\n info(`Coerced version '${version}' to '${coercedVersion}'`)\n return coercedVersion.version\n }\n } catch (err) {\n // handled below\n }\n }\n return version\n}\n\nexport function removeVPrefix(version: string) {\n return parseInt(version.replace(/^v/, \"\"), 10)\n}\n\nexport function addVPrefix(version: string) {\n if (!version.match(/^v/)) {\n return `v${version}`\n }\n return version\n}\n","// src/modules/https-utils.ts\nimport { request } from \"https\";\nfunction isStatusOK(result) {\n return result.statusCode !== void 0 && result.statusCode >= 200 && result.statusCode <= 399;\n}\nfunction requestWorks(url, method) {\n return new Promise((resolve) => {\n try {\n const req = request(url, { method }, (result) => {\n resolve(isStatusOK(result));\n });\n req.on(\"error\", (_error) => {\n resolve(false);\n });\n req.end();\n } catch {\n resolve(false);\n }\n });\n}\n\n// src/modules/isUrlString.ts\nimport { URL } from \"url\";\nvar isUrlString = (url) => {\n if (typeof url !== \"string\") {\n return false;\n }\n const trimmedUrl = url.trim();\n if (trimmedUrl.includes(\" \")) {\n return false;\n }\n try {\n new URL(trimmedUrl);\n return true;\n } catch {\n return false;\n }\n};\n\n// src/modules/isUrlOnline.ts\nvar isUrlOnline = async (url) => {\n const isUrl = isUrlString(url);\n if (!isUrl) {\n return false;\n }\n let response = await requestWorks(url, \"HEAD\");\n if (response) {\n return true;\n }\n response = await requestWorks(url, \"GET\");\n return !!response;\n};\n\n// src/modules/prependHttp.ts\nvar prependHttp = ({\n url,\n https = true\n}) => {\n const trimmedUrl = url.trim();\n if (/^\\.*\\/|^(?!localhost)\\w+:/u.test(trimmedUrl)) {\n return url;\n }\n return trimmedUrl.replace(\n /^(?!(?:\\w+:)?\\/\\/)/u,\n https ? \"https://\" : \"http://\"\n );\n};\nexport {\n isUrlOnline,\n isUrlString,\n prependHttp\n};\n","export function unique(dirs: string[]) {\n return [...new Set(dirs)]\n}\n","import { isArch } from \"../utils/env/isArch\"\n\n// passing \"\" to a tool installed by a package manager (apt, brew, choco) will result in the default version of that package manager.\n// the directly downloaded tools require a given version (\"\" doesn't work).\n\nfunction getLLVMDefault() {\n switch (process.platform) {\n case \"win32\":\n return \"17.0.6\"\n case \"linux\":\n // used for non-ubuntu (Fedora, Arch)\n // the suffixes relate to the suffix in the llvm releases\n return \"17.0.6-ubuntu-22.04\"\n case \"darwin\":\n return \"15.0.3\"\n default:\n return \"17.0.6\"\n }\n}\n\nexport const DefaultVersions: Record = {\n llvm: getLLVMDefault(), // https://github.com/llvm/llvm-project/releases\n clangtidy: getLLVMDefault(),\n clangformat: getLLVMDefault(),\n ninja: \"1.11.1\", // https://github.com/ninja-build/ninja/releases\n cmake: \"3.28.1\", // https://github.com/Kitware/CMake/releases\n gcovr: \"5.2\", // \"6.0\", // https://pypi.org/project/gcovr/\n conan: \"1.62.0\", // 2.0.17 // https://github.com/conan-io/conan/releases\n meson: \"1.3.1\", // https://github.com/mesonbuild/meson/releases\n kcov: \"42\", // https://github.com/SimonKagstrom/kcov/releases\n task: \"3.33.1\", // https://github.com/go-task/task/releases\n doxygen: isArch() ? \"1.10.0-1\" : \"1.10.0\", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/\n gcc: isArch() ? \"13.2.1-3\" : \"13\", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc\n // mingw: isArch() ? \"12.2.0-1\" : \"8\", // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=mingw-w64 // https://archlinux.org/packages/extra/x86_64/mingw-w64-gcc/\n}\n\nexport const MinVersions: Record = {\n pip: \"22.2.0\",\n python: \"3.7.9\",\n}\n\n/// If an ubuntu versions is not in this map:\n// - the newer ubuntu versions use the first entry (e.g. v20),\n// - the older ones use \"\"\nexport const DefaultLinuxVersion: Record | undefined> = {\n gcc: {\n 22: \"13\",\n 20: \"11\",\n 18: \"11\",\n 16: \"11\",\n 14: \"11\",\n },\n mingw: {\n 22: \"8.0.0-1\",\n 20: \"7.0.0-2\",\n },\n // the suffixes relate to the suffix in the llvm releases\n llvm: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangtidy: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n clangformat: {\n 22: \"17.0.6-ubuntu-22.04\",\n 20: \"17.0.6-ubuntu-22.04\",\n 18: \"15.0.6-ubuntu-18.04\",\n 16: \"15.0.6-ubuntu-18.04\",\n 14: \"13.0.0-ubuntu-16.04\",\n },\n gcovr: {\n 22: \"6.0\",\n 20: \"6.0\",\n 18: \"5.0\",\n },\n meson: {\n 20: \"1.0.0\",\n 18: \"0.61.4\",\n },\n nala: {\n 22: \"\",\n 21: \"legacy\",\n 20: \"legacy\",\n 18: \"legacy\",\n 16: \"legacy\",\n 14: \"legacy\",\n },\n kcov: {\n 22: \"42-binary\",\n 20: \"40-binary\", // https://github.com/SimonKagstrom/kcov/releases\n 18: \"40\",\n 16: \"40\",\n 14: \"40\",\n },\n}\n","import { Opts } from \"../cli-options\"\nimport { Inputs } from \"../tool\"\nimport { DefaultLinuxVersion, DefaultVersions } from \"./default_versions\"\n\n/** Get the default version if passed true or undefined, otherwise return the version itself */\nexport function getVersion(name: string, version: string | undefined, osVersion: number[] | null = null) {\n if (isVersionDefault(version) && process.platform === \"linux\" && osVersion !== null && name in DefaultLinuxVersion) {\n return getDefaultLinuxVersion(osVersion, DefaultLinuxVersion[name]!)\n } else if (isVersionDefault(version) && name in DefaultVersions) {\n return DefaultVersions[name]!\n } else if (version === \"true\") {\n return \"\"\n }\n return version ?? \"\"\n}\n\nfunction isVersionDefault(version: string | undefined) {\n return version === \"true\" || version === undefined\n}\n\n/// choose the default linux version based on ubuntu version\nfunction getDefaultLinuxVersion(osVersion: number[], toolLinuxVersions: Record) {\n const osVersionMaj = osVersion[0]\n\n // find which version block the os version is in\n const satisfyingVersion = Object.keys(toolLinuxVersions)\n .map((v) => parseInt(v, 10))\n .sort((a, b) => b - a) // sort in descending order\n .find((v) => osVersionMaj >= v)\n\n return satisfyingVersion === undefined ? \"\" : toolLinuxVersions[satisfyingVersion]\n}\n\n/**\n * Sync the versions for the given inputs\n *\n * If the return is false, it means that versions don't match the target version\n */\nexport function syncVersions(opts: Opts, tools: Inputs[]): boolean {\n const toolsInUse = tools.filter((tool) => opts[tool] !== undefined)\n const toolsNonDefaultVersion = toolsInUse.filter((tool) => !isVersionDefault(opts[tool]))\n\n const targetVersion = toolsNonDefaultVersion.length >= 1 ? opts[toolsNonDefaultVersion[0]] : \"true\"\n\n if (toolsNonDefaultVersion.some((tool) => opts[tool] !== targetVersion)) {\n // error if any explicit versions don't match the target version\n return false\n }\n\n toolsInUse.forEach((tool) => {\n opts[tool] = targetVersion\n })\n\n return true\n}\n","import { warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport os from \"os\"\nimport { getUbuntuVersion } from \"ubuntu-version\"\nimport which from \"which\"\nimport { setupAptPack } from \"../setup/setupAptPack\"\nimport { isUbuntu } from \"./isUbuntu\"\n\nasync function ubuntuVersion_raw(): Promise {\n try {\n if (isUbuntu()) {\n try {\n if (which.sync(\"lsb_release\", { nothrow: true }) === null) {\n await setupAptPack([{ name: \"lsb-release\" }])\n }\n } catch {\n return detectUsingOsVersion()\n }\n\n const versionSplitted = await getUbuntuVersion()\n\n if (versionSplitted.length === 0) {\n return detectUsingOsVersion()\n }\n\n return versionSplitted\n } else {\n return null\n }\n } catch (err) {\n warning((err as Error).toString())\n return null\n }\n}\n\n/** Detect Ubuntu version */\nexport const ubuntuVersion = memoize(ubuntuVersion_raw, { isPromise: true })\n\n/** Detect Ubuntu version using os.version() for Ubuntu based distros */\nfunction detectUsingOsVersion() {\n if (!(\"version\" in os && typeof os.version === \"function\")) {\n return null\n }\n\n // #46~22.04.1-Ubuntu SMP ...\n const osVersion = os.version()\n const versionSplitted = osVersion.split(\".\")\n const majorVersion = parseInt(versionSplitted[0].replace(\"#\", \"\"), 10)\n const minorVersion = parseInt(versionSplitted[1].replace(\"~\", \"\"), 10)\n const patchVersion = parseInt(versionSplitted[2].split(\"-\")[0], 10)\n\n return [majorVersion, minorVersion, patchVersion]\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getUbuntuVersion = void 0;\nconst child_process_1 = require(\"child_process\");\nfunction isSystemError(e) {\n return 'errno' in e;\n}\nfunction command(exe, args) {\n return new Promise((resolve, reject) => {\n child_process_1.execFile(exe, args, { encoding: 'utf8', shell: false }, (error, stdout, stderr) => {\n if (error) {\n if (isSystemError(error) && error.code === 'ENOENT') {\n resolve(null); // When lsb_release is not found\n return;\n }\n reject(new Error(`Could not execute \\`${exe} ${args.join(' ')}\\`: ${error} (stderr=${stderr})`));\n return;\n }\n resolve(stdout);\n });\n });\n}\nasync function getUbuntuVersion() {\n if (process.platform !== 'linux') {\n return [];\n }\n const stdout = await command('lsb_release', ['-a']);\n if (stdout === null) {\n return [];\n }\n const reDistributor = /^Distributor ID:\\s*(.+)$/;\n const reDescription = /^Description:\\s*Ubuntu\\s+(\\d+)\\.(\\d+)(?:\\.(\\d+))?/;\n const reRelease = /^Release:\\s*(\\d+)\\.(\\d+)(?:\\.(\\d+))?$/;\n let description = null;\n let release = null;\n let distributorFound = false;\n for (const line of stdout.split('\\n')) {\n const m = line.match(reDistributor);\n if (m !== null) {\n const distributor = m[1];\n if (distributor !== 'Ubuntu') {\n return [];\n }\n distributorFound = true;\n }\n const desc = line.match(reDescription);\n if (desc) {\n description = desc;\n }\n const rel = line.match(reRelease);\n if (rel) {\n release = rel;\n }\n if (distributorFound && description && release) {\n break;\n }\n }\n if (!distributorFound) {\n return [];\n }\n for (const m of [description, release]) {\n if (m) {\n const ss = [m[1], m[2]];\n if (m[3]) {\n ss.push(m[3]);\n }\n return ss.map(s => parseInt(s, 10));\n }\n }\n return [];\n}\nexports.getUbuntuVersion = getUbuntuVersion;\n//# sourceMappingURL=index.js.map","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"cppcheck\", version)\n const binDir = await activateWinCppcheck()\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"cppcheck\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"cppcheck\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"ccache\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"cppcheck\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinCppcheck() {\n const binDir = \"C:/Program Files/Cppcheck\"\n await addPath(binDir)\n return binDir\n}\n","import { info, notice } from \"ci-log\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGraphviz } from \"../graphviz/graphviz\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { extractTar, extractZip } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { getVersion } from \"../versions/versions\"\n\nimport { pathExists } from \"path-exists\"\nimport retry from \"retry-as-promised\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { macosVersion } from \"../utils/env/macos_version\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupDmg } from \"../utils/setup/setupDmg\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\n\n/** Get the platform data for cmake */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getDoxygenPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n switch (platform) {\n case \"linux\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractTar,\n url: `https://www.doxygen.nl/files/${folderName}.linux.bin.tar.gz`,\n }\n }\n case \"win32\": {\n const folderName = `doxygen-${version}`\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: extractZip,\n url: `https://www.doxygen.nl/files/${folderName}.windows.x64.bin.zip`,\n }\n }\n case \"darwin\": {\n const folderName = `Doxygen-${version}`\n return {\n binRelativeDir: \"Doxygen/Doxygen.app/Contents/Resources/\",\n binFileName: addExeExt(\"doxygen\"),\n extractedFolderName: folderName,\n extractFunction: setupDmg,\n url: `https://doxygen.nl/files/${folderName}.dmg`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\nexport async function setupDoxygen(version: string, setupDir: string, arch: string) {\n switch (process.platform) {\n case \"win32\": {\n // try to download the package 4 times with 2 seconds delay\n await retry(\n () => {\n return setupChocoPack(\"doxygen.install\", version)\n },\n { name: \"doxygen.install\", max: 4, backoffBase: 2000, report: (err) => info(err) },\n )\n const binDir = await activateWinDoxygen()\n const installationInfo = { binDir }\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n return installationInfo\n }\n case \"darwin\": {\n // let installationInfo: InstallationInfo\n // try {\n // installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n // } catch {\n const installationInfo = await setupBrewPack(\"doxygen\", undefined)\n // }\n\n // only install graphviz if the macOS version is greater than 11\n if (macosVersion()[0] > 11) {\n await setupGraphviz(getVersion(\"graphviz\", undefined), \"\", arch)\n }\n return installationInfo\n }\n case \"linux\": {\n let installationInfo: InstallationInfo\n if (version === \"\" || isArch() || hasDnf()) {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"doxygen\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"doxygen\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([{ name: \"doxygen\", version }])\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n } else if (isUbuntu()) {\n try {\n // doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself\n installationInfo = await setupBin(\"doxygen\", version, getDoxygenPackageInfo, setupDir, arch)\n try {\n await setupAptPack([{ name: \"libclang-cpp9\" }])\n } catch (err) {\n info(`Failed to download libclang-cpp9 that might be needed for running doxygen. ${err}`)\n }\n } catch (err) {\n notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)\n installationInfo = await setupAptPack([{ name: \"doxygen\" }])\n }\n } else {\n throw new Error(`Unsupported linux distributions`)\n }\n await setupGraphviz(getVersion(\"graphviz\", undefined, await ubuntuVersion()), \"\", arch)\n return installationInfo\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateWinDoxygen() {\n switch (process.platform) {\n case \"win32\": {\n for (\n const binDir of [\n \"C:/ProgramData/chocolatey/bin\",\n \"C:/Program Files/doxygen/bin\",\n \"C:/Program Files (x86)/doxygen\",\n ]\n ) {\n // eslint-disable-next-line no-await-in-loop\n if (await pathExists(join(binDir, \"doxygen.exe\"))) {\n // eslint-disable-next-line no-await-in-loop\n await addPath(binDir)\n return binDir\n }\n }\n throw new Error(\"Failed to find doxygen binary\")\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGraphviz(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"graphviz\", version)\n return activateGraphviz()\n }\n case \"darwin\": {\n return setupBrewPack(\"graphviz\", version)\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"graphviz\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"graphviz\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"graphviz\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n\nasync function activateGraphviz(): Promise {\n switch (process.platform) {\n case \"win32\": {\n const binDir = \"C:/Program Files/Graphviz/bin\"\n await addPath(binDir)\n return { binDir }\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import macosRelease from \"macos-release\"\nimport memoize from \"micro-memoize\"\n\n/**\n * Get macOS version\n *\n * @returns {number[]} - The macOS version as an array of numbers\n */\nfunction macosVersion_raw() {\n if (process.platform !== \"darwin\") {\n return []\n }\n\n const { version } = macosRelease()\n return version.split(\".\").map((v) => parseInt(v, 10))\n}\nexport const macosVersion = memoize(macosVersion_raw)\n","import os from 'node:os';\n\nconst nameMap = new Map([\n\t[23, ['Sonoma', '14']],\n\t[22, ['Ventura', '13']],\n\t[21, ['Monterey', '12']],\n\t[20, ['Big Sur', '11']],\n\t[19, ['Catalina', '10.15']],\n\t[18, ['Mojave', '10.14']],\n\t[17, ['High Sierra', '10.13']],\n\t[16, ['Sierra', '10.12']],\n\t[15, ['El Capitan', '10.11']],\n\t[14, ['Yosemite', '10.10']],\n\t[13, ['Mavericks', '10.9']],\n\t[12, ['Mountain Lion', '10.8']],\n\t[11, ['Lion', '10.7']],\n\t[10, ['Snow Leopard', '10.6']],\n\t[9, ['Leopard', '10.5']],\n\t[8, ['Tiger', '10.4']],\n\t[7, ['Panther', '10.3']],\n\t[6, ['Jaguar', '10.2']],\n\t[5, ['Puma', '10.1']],\n]);\n\nexport default function macosRelease(release) {\n\trelease = Number((release || os.release()).split('.')[0]);\n\n\tconst [name, version] = nameMap.get(release) || ['Unknown', ''];\n\n\treturn {\n\t\tname,\n\t\tversion,\n\t};\n}\n","import { join } from \"path\"\n\nexport async function setupDmg(path: string, destDir: string) {\n const { ArchiveHdi } = await import(\"@shockpkg/archive-files/esm/archive/hdi.mjs\")\n\n const dmg = new ArchiveHdi(path)\n await dmg.read(async (entry) => {\n await entry.extract(join(destDir, entry.path))\n })\n}\n","import { addEnv, addPath } from \"../utils/env/addEnv\"\n\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { ExecaReturnValue } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport semverCoerce from \"semver/functions/coerce\"\nimport semverMajor from \"semver/functions/major\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { extract7Zip } from \"../utils/setup/extract\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\ninterface MingwInfo {\n releaseName: string\n fileSuffix: string\n}\n\n// https://github.com/brechtsanders/winlibs_mingw/releases\nconst GccToMingwInfo = {\n \"13\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt\": { releaseName: \"13.2.0-16.0.6-11.0.0-ucrt-r1\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.2-ucrt-mcf\": { releaseName: \"13.2.0mcf-16.0.6-11.0.1-ucrt-r2\", fileSuffix: \"13.2.0-mingw-w64ucrt-11.0.1-r2\" },\n \"13.2-msvcrt\": { releaseName: \"13.2.0-16.0.6-11.0.1-msvcrt-r1\", fileSuffix: \"13.2.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"13.1-ucrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-ucrt-r1\", fileSuffix: \"13.1.0-mingw-w64ucrt-11.0.0-r1\" },\n \"13.1-msvcrt\": { releaseName: \"13.1.0posix-16.0.3-11.0.0-msvcrt-r1\", fileSuffix: \"13.1.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-ucrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-ucrt-r1\", fileSuffix: \"12.3.0-mingw-w64ucrt-11.0.0-r1\" },\n \"12.3.0-msvcrt\": { releaseName: \"12.3.0-16.0.4-11.0.0-msvcrt-r1\", fileSuffix: \"12.3.0-mingw-w64msvcrt-11.0.0-r1\" },\n \"12.2.0-ucrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-ucrt-r2\", fileSuffix: \"12.2.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.2.0-msvcrt\": { releaseName: \"12.2.0-14.0.6-10.0.0-msvcrt-r2\", fileSuffix: \"12.2.0-mingw-w64msvcrt-10.0.0-r2\" },\n \"12.1.0-ucrt\": { releaseName: \"12.1.0-14.0.4-10.0.0-ucrt-r2\", fileSuffix: \"12.1.0-mingw-w64ucrt-10.0.0-r2\" },\n \"12.1.0-msvcrt\": {\n releaseName: \"12.1.0-14.0.6-10.0.0-msvcrt-r3\",\n fileSuffix: \"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3\",\n },\n \"11\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-ucrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-ucrt-r3\", fileSuffix: \"11.3.0-mingw-w64ucrt-10.0.0-r3\" },\n \"11.3.0-msvcrt\": { releaseName: \"11.3.0-14.0.3-10.0.0-msvcrt-r3\", fileSuffix: \"11.3.0-mingw-w64msvcrt-10.0.0-r3\" },\n \"11.2.0-ucrt\": { releaseName: \"11.2.0-9.0.0-ucrt-r5\", fileSuffix: \"11.2.0-mingw-w64ucrt-9.0.0-r5\" },\n \"11.2.0-msvcrt\": { releaseName: \"11.2.0-9.0.0-msvcrt-r5\", fileSuffix: \"11.2.0-mingw-w64msvcrt-9.0.0-r5\" },\n \"10\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.5.0-msvcrt\": { releaseName: \"10.5.0-11.0.1-msvcrt-r1\", fileSuffix: \"10.5.0-mingw-w64msvcrt-11.0.1-r1\" },\n \"10.3.0\": { releaseName: \"10.3.0-12.0.0-9.0.0-r2\", fileSuffix: \"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2\" },\n \"10.2.0\": { releaseName: \"10.2.0-7.0.0-r4\", fileSuffix: \"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4\" },\n \"9\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n \"9.4.0\": { releaseName: \"9.4.0-9.0.0-r1\", fileSuffix: \"9.4.0-mingw-w64-9.0.0-r1\" },\n} as Record\n\nfunction getGccPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n switch (platform) {\n case \"win32\": {\n const mingwInfo = GccToMingwInfo[version]\n if (mingwInfo === undefined) {\n throw new Error(`mingw version ${version} is not supported`)\n }\n const mingwArch = arch === \"ia32\" ? \"i686\" : \"x86_64\"\n const exceptionModel: \"seh\" | \"dwarf\" = \"seh\" // SEH is native windows exception model https://github.com/brechtsanders/winlibs_mingw/issues/4#issuecomment-599296483\n return {\n binRelativeDir: \"bin/\",\n binFileName: addExeExt(\"g++\"),\n extractedFolderName: \"mingw64\",\n extractFunction: extract7Zip,\n url:\n `https://github.com/brechtsanders/winlibs_mingw/releases/download/${mingwInfo.releaseName}/winlibs-${mingwArch}-posix-${exceptionModel}-gcc-${mingwInfo.fileSuffix}.7z`,\n }\n }\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupGcc(version: string, setupDir: string, arch: string, priority: number = 40) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\": {\n if (arch === \"arm\" || arch === \"arm64\") {\n await setupChocoPack(\"gcc-arm-embedded\", version)\n }\n try {\n installationInfo = await setupBin(\"g++\", version, getGccPackageInfo, setupDir, arch)\n } catch (err) {\n info(`Failed to download g++ binary. ${err}. Falling back to chocolatey.`)\n installationInfo = await setupChocoMingw(version, arch)\n }\n break\n }\n case \"darwin\": {\n installationInfo = await setupBrewPack(\"gcc\", version)\n break\n }\n case \"linux\": {\n if (arch === \"x64\") {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([\n { name: \"gcc\", version },\n { name: \"gcc-c++\", version },\n { name: \"libstdc++-devel\" },\n ])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"gcc\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n { name: \"g++\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n } else {\n info(`Install g++-multilib because gcc for ${arch} was requested`)\n if (isArch()) {\n await setupPacmanPack(\"gcc-multilib\", version)\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"gcc-multilib\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] }])\n }\n }\n break\n }\n // TODO support bare-metal (need to support passing it as the input)\n // TODO support abi\n // case \"none\": {\n // if (arch === \"arm\" || arch === \"arm64\") {\n // return setupAptPack(\"gcc-arm-none-eabi\", version, [\n // \"ppa:ubuntu-toolchain-r/test\",\n // ])\n // } else {\n // throw new Error(`Unsupported platform for ${arch}`)\n // }\n // }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n await activateGcc(version, installationInfo.binDir, priority)\n return installationInfo\n }\n return undefined\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMingw(version: string, setupDir: string, arch: string) {\n let installationInfo: InstallationInfo | undefined\n switch (process.platform) {\n case \"win32\":\n case \"darwin\": {\n return setupGcc(version, setupDir, arch)\n }\n case \"linux\": {\n if (isArch()) {\n installationInfo = await setupPacmanPack(\"mingw-w64-gcc\", version)\n } else if (hasDnf()) {\n installationInfo = await setupDnfPack([{ name: \"mingw64-gcc\", version }])\n } else if (isUbuntu()) {\n installationInfo = await setupAptPack([\n { name: \"mingw-w64\", version, repositories: [\"ppa:ubuntu-toolchain-r/test\"] },\n ])\n }\n break\n }\n default: {\n throw new Error(`Unsupported platform for ${arch}`)\n }\n }\n if (installationInfo !== undefined) {\n // TODO: setup alternatives and update CC/CXX env. ?\n // Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode\n // Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...\n // update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode\n // await activateGcc(version, installationInfo.binDir)\n return installationInfo\n }\n return undefined\n}\n\nasync function setupChocoMingw(version: string, arch: string): Promise {\n await setupChocoPack(\"mingw\", version)\n let binDir: string | undefined\n if (arch === \"x64\" && (await pathExists(\"C:/tools/mingw64/bin\"))) {\n binDir = \"C:/tools/mingw64/bin\"\n await addPath(binDir)\n } else if (arch === \"ia32\" && (await pathExists(\"C:/tools/mingw32/bin\"))) {\n binDir = \"C:/tools/mingw32/bin\"\n await addPath(binDir)\n } else if (await pathExists(`${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin/g++.exe`)) {\n binDir = `${process.env.ChocolateyInstall ?? \"C:/ProgramData/chocolatey\"}/bin`\n }\n if (binDir !== undefined) {\n return { binDir }\n }\n return undefined\n}\n\nasync function activateGcc(version: string, binDir: string, priority: number = 40) {\n const promises: Promise>[] = []\n // Setup gcc as the compiler\n\n // TODO\n // const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n // const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n // promises.push(\n // addEnv(\"LD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${ld}`),\n // addEnv(\"DYLD_LIBRARY_PATH\", `${installDir}/lib${path.delimiter}${dyld}`),\n // addEnv(\"CPATH\", `${installDir}/lib/gcc/${majorVersion}/include`),\n // addEnv(\"LDFLAGS\", `-L${installDir}/lib`),\n // addEnv(\"CPPFLAGS\", `-I${installDir}/include`)\n // )\n\n if (process.platform === \"win32\") {\n promises.push(addEnv(\"CC\", addExeExt(`${binDir}/gcc`)), addEnv(\"CXX\", addExeExt(`${binDir}/g++`)))\n } else {\n const majorVersion = semverMajor(semverCoerce(version) ?? version)\n if (majorVersion >= 5) {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${majorVersion}`), addEnv(\"CXX\", `${binDir}/g++-${majorVersion}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${majorVersion}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${majorVersion}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${majorVersion}`, priority),\n )\n }\n } else {\n promises.push(addEnv(\"CC\", `${binDir}/gcc-${version}`), addEnv(\"CXX\", `${binDir}/g++-${version}`))\n\n if (isUbuntu()) {\n promises.push(\n updateAptAlternatives(\"cc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"cxx\", `${binDir}/g++-${version}`, priority),\n updateAptAlternatives(\"gcc\", `${binDir}/gcc-${version}`, priority),\n updateAptAlternatives(\"g++\", `${binDir}/g++-${version}`, priority),\n )\n }\n }\n }\n\n promises.push(setupMacOSSDK())\n\n if (GITHUB_ACTIONS) {\n await addGccLoggingMatcher()\n }\n\n await Promise.all(promises)\n}\n\nasync function addGccLoggingMatcher() {\n const matcherPath = join(__dirname, \"gcc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the gcc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { getExecOutput } from \"@actions/exec\"\nimport { error } from \"ci-log\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nexport async function setupMacOSSDK() {\n if (process.platform === \"darwin\") {\n try {\n const xcrun = await getExecOutput(\"xcrun --sdk macosx --show-sdk-path\")\n const sdkroot = xcrun.stdout || xcrun.stderr\n if (sdkroot) {\n await addEnv(\"SDKROOT\", sdkroot.trim())\n } else {\n error(`SDKROOT not set`)\n }\n } catch (e) {\n error(e as Error | string)\n }\n }\n}\n","import semverMajor from \"semver/functions/major\"\nimport semverValid from \"semver/functions/valid\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"gcovr\", version)\n}\n\nexport function activateGcovLLVM() {\n return addEnv(\"GCOV\", \"llvm-cov gcov\")\n}\n\nexport function activateGcovGCC(gccVersion: string) {\n const gccSemver = semverValid(gccVersion)\n const gccMajor = gccSemver !== null ? semverMajor(gccSemver) : gccVersion\n const gcov = gccMajor !== \"\" ? `gcov-${gccMajor}` : \"gcov\"\n\n return addEnv(\"GCOV\", gcov)\n}\n","import { info } from \"ci-log\"\nimport { execa } from \"execa\"\nimport { addExeExt, join } from \"patha\"\nimport { untildifyUser } from \"untildify-user\"\nimport which from \"which\"\nimport { setupCmake } from \"../cmake/cmake\"\nimport { setupNinja } from \"../ninja/ninja\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { extractTarByExe } from \"../utils/setup/extract\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\nimport { addVPrefix, removeVPrefix } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\n\nfunction getDownloadKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/releases/download/${version}/kcov-amd64.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"usr/local/bin\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: extractTarByExe,\n }\n}\n\nfunction getBuildKcovPackageInfo(version: string): PackageInfo {\n return {\n url: `https://github.com/SimonKagstrom/kcov/archive/refs/tags/${version}.tar.gz`,\n extractedFolderName: \"\",\n binRelativeDir: \"build/src\",\n binFileName: addExeExt(\"kcov\"),\n extractFunction: buildKcov,\n }\n}\n\nasync function buildKcov(file: string, dest: string) {\n const out = await extractTarByExe(file, dest, [\"--strip-components=1\"])\n\n // build after extraction using CMake\n const cmake = await getCmake()\n\n if (process.platform === \"linux\") {\n if (isArch()) {\n await Promise.all([setupPacmanPack(\"libdwarf\"), setupPacmanPack(\"libcurl-openssl\")])\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"libdwarf-devel\" }, { name: \"libcurl-devel\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libdw-dev\" }, { name: \"libcurl4-openssl-dev\" }])\n }\n }\n\n // apply gcc13.patch\n try {\n if (which.sync(\"patch\", { nothrow: true }) !== null) {\n const patch = join(__dirname, \"gcc13.patch\")\n await execa(\"patch\", [\"-N\", \"-p1\", \"-i\", patch], { cwd: out, stdio: \"inherit\" })\n } else {\n info(\"`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13\")\n }\n } catch {\n // ignore\n }\n\n const buildDir = join(out, \"build\")\n await execa(cmake, [\"-S\", out, \"-B\", buildDir, \"-DCMAKE_BUILD_TYPE=Release\", \"-G\", \"Ninja\"], {\n cwd: out,\n stdio: \"inherit\",\n })\n await execa(cmake, [\"--build\", buildDir, \"--config\", \"Release\"], { cwd: out, stdio: \"inherit\" })\n // execRootSync(cmake, [\"--install\", buildDir], out)\n // return \"user/local/bin\" // the cmake install prefix\n return out\n}\n\nasync function getCmake() {\n let cmake = which.sync(\"cmake\", { nothrow: true })\n if (cmake === null) {\n const { binDir } = await setupCmake(\n getVersion(\"cmake\", undefined, await ubuntuVersion()),\n join(untildifyUser(\"~\"), \"cmake\"),\n \"\",\n )\n cmake = join(binDir, \"cmake\")\n }\n const ninja = which.sync(\"ninja\", { nothrow: true })\n if (ninja === null) {\n await setupNinja(getVersion(\"ninja\", undefined, await ubuntuVersion()), join(untildifyUser(\"~\"), \"ninja\"), \"\")\n }\n return cmake\n}\n\nexport async function setupKcov(versionGiven: string, setupDir: string, arch: string) {\n if (process.platform !== \"linux\") {\n info(\"Kcov is not supported on non-linux\")\n return\n }\n\n // parse version\n const versionSplit = versionGiven.split(\"-\")\n let version = addVPrefix(versionSplit[0])\n const installMethod = versionSplit[1] as \"binary\" | undefined\n const version_number = removeVPrefix(version)\n // fix inconsistency in tagging\n if (version_number === 38) {\n version = \"v38\"\n }\n\n let installationInfo: InstallationInfo\n if (installMethod === \"binary\" && version_number >= 39) {\n installationInfo = await setupBin(\"kcov\", version, getDownloadKcovPackageInfo, setupDir, arch)\n if (isArch()) {\n await setupPacmanPack(\"binutils\")\n } else if (hasDnf()) {\n await setupDnfPack([{ name: \"binutils\" }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"libbinutils\" }])\n }\n return installationInfo\n } else {\n installationInfo = await setupBin(\"kcov\", version, getBuildKcovPackageInfo, setupDir, arch)\n }\n return installationInfo\n}\n","import { addExeExt } from \"patha\"\nimport { extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name Ninja uses in their download links */\nfunction getNinjaPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"win\"\n case \"darwin\":\n return \"mac\"\n case \"linux\":\n return \"linux\"\n default:\n throw new Error(`Unsupported platform '${platform}'`)\n }\n}\n\n/** Get the platform data for ninja */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction getNinjaPackageInfo(version: string, platform: NodeJS.Platform, _arch: string): PackageInfo {\n const ninjaPlatform = getNinjaPlatform(platform)\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"ninja\"),\n extractedFolderName: \"\",\n extractFunction: extractZip,\n url: `https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${ninjaPlatform}.zip`,\n }\n}\n\nexport function setupNinja(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"ninja\", version, getNinjaPackageInfo, setupDir, arch)\n}\n","import { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport memoize from \"micro-memoize\"\nimport { delimiter } from \"path\"\nimport { pathExists } from \"path-exists\"\nimport { addExeExt, join } from \"patha\"\nimport { setupGcc } from \"../gcc/gcc\"\nimport { setupMacOSSDK } from \"../macos-sdk/macos-sdk\"\nimport { addEnv } from \"../utils/env/addEnv\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack, updateAptAlternatives } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo, setupBin } from \"../utils/setup/setupBin\"\nimport { semverCoerceIfInvalid } from \"../utils/setup/version\"\nimport { getVersion } from \"../versions/versions\"\nimport { LLVMPackages, setupLLVMApt } from \"./llvm_installer\"\nimport { getLLVMPackageInfo } from \"./llvm_url\"\n\nexport async function setupLLVM(version: string, setupDir: string, arch: string): Promise {\n const installationInfo = await setupLLVMWithoutActivation(version, setupDir, arch)\n await activateLLVM(installationInfo.installDir ?? setupDir)\n return installationInfo\n}\n\nasync function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {\n // install LLVM and its dependencies in parallel\n const [installationInfo, _1, _2] = await Promise.all([\n setupLLVMOnly(version, setupDir, arch),\n setupLLVMDeps(arch),\n addLLVMLoggingMatcher(),\n ])\n\n return installationInfo\n}\nconst setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })\n\n/**\n * Setup clang-format\n *\n * This uses the LLVM installer on Ubuntu, and the LLVM binaries on other platforms\n */\nexport function setupClangFormat(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch, LLVMPackages.ClangFormat)\n}\n\n/** Setup llvm tools (clang tidy, etc.) without activating llvm and using it as the compiler */\nexport function setupClangTools(version: string, setupDir: string, arch: string) {\n return setupLLVMOnly(version, setupDir, arch)\n}\n\nasync function setupLLVMOnly(\n version: string,\n setupDir: string,\n arch: string,\n packages: LLVMPackages = LLVMPackages.All,\n) {\n const coeredVersion = semverCoerceIfInvalid(version)\n const majorVersion = parseInt(coeredVersion.split(\".\")[0], 10)\n try {\n if (isUbuntu()) {\n return await setupLLVMApt(majorVersion, packages)\n }\n } catch (err) {\n info(`Failed to install llvm via system package manager ${err}`)\n }\n\n const installationInfo = await setupBin(\"llvm\", version, getLLVMPackageInfo, setupDir, arch)\n await llvmBinaryDeps(majorVersion)\n return installationInfo\n}\n\nasync function llvmBinaryDeps_raw(majorVersion: number) {\n if (isUbuntu()) {\n if (majorVersion <= 10) {\n await setupAptPack([{ name: \"libtinfo5\" }])\n } else {\n await setupAptPack([{ name: \"libtinfo-dev\" }])\n }\n }\n}\nconst llvmBinaryDeps = memoize(llvmBinaryDeps_raw, { isPromise: true })\n\nasync function setupLLVMDeps_raw(arch: string) {\n if (process.platform === \"linux\") {\n // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first,\n // but with a lower priority than the one used by activateLLVM()\n await setupGcc(getVersion(\"gcc\", undefined, await ubuntuVersion()), \"\", arch, 40)\n }\n}\nconst setupLLVMDeps = memoize(setupLLVMDeps_raw, { isPromise: true })\n\nexport async function activateLLVM(directory: string) {\n const ld = process.env.LD_LIBRARY_PATH ?? \"\"\n const dyld = process.env.DYLD_LIBRARY_PATH ?? \"\"\n\n const actPromises: Promise[] = [\n // the output of this action\n addEnv(\"LLVM_PATH\", directory),\n\n // Setup LLVM as the compiler\n addEnv(\"LD_LIBRARY_PATH\", `${directory}/lib${delimiter}${ld}`),\n addEnv(\"DYLD_LIBRARY_PATH\", `${directory}/lib${delimiter}${dyld}`),\n\n // compiler flags\n addEnv(\"LDFLAGS\", `-L\"${directory}/lib\"`),\n addEnv(\"CPPFLAGS\", `-I\"${directory}/include\"`),\n\n // compiler paths\n addEnv(\"CC\", addExeExt(`${directory}/bin/clang`)),\n addEnv(\"CXX\", addExeExt(`${directory}/bin/clang++`)),\n\n addEnv(\"LIBRARY_PATH\", `${directory}/lib`),\n\n // os sdks\n setupMacOSSDK(),\n ]\n\n // TODO Causes issues with clangd\n // TODO Windows builds fail with llvm's CPATH\n // if (process.platform !== \"win32\") {\n // if (await pathExists(`${directory}/lib/clang/${version}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${version}/include`))\n // } else if (await pathExists(`${directory}/lib/clang/${llvmMajor}/include`)) {\n // promises.push(addEnv(\"CPATH\", `${directory}/lib/clang/${llvmMajor}/include`))\n // }\n // }\n\n if (isUbuntu()) {\n const priority = 60\n actPromises.push(\n updateAptAlternatives(\"cc\", `${directory}/bin/clang`, priority),\n updateAptAlternatives(\"cxx\", `${directory}/bin/clang++`, priority),\n updateAptAlternatives(\"clang\", `${directory}/bin/clang`),\n updateAptAlternatives(\"clang++\", `${directory}/bin/clang++`),\n updateAptAlternatives(\"lld\", `${directory}/bin/lld`),\n updateAptAlternatives(\"ld.lld\", `${directory}/bin/ld.lld`),\n updateAptAlternatives(\"llvm-ar\", `${directory}/bin/llvm-ar`),\n )\n }\n\n await Promise.all(actPromises)\n}\n\nasync function addLLVMLoggingMatcher() {\n if (GITHUB_ACTIONS) {\n const matcherPath = join(__dirname, \"llvm_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the llvm_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n }\n}\n","import { execRoot } from \"admina\"\nimport { info } from \"console\"\nimport { execa } from \"execa\"\nimport { promises } from \"fs\"\nimport { DEFAULT_TIMEOUT } from \"../installTool\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasNala, isPackageInstalled, setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nconst { readFile, writeFile, chmod } = promises\n\nexport enum LLVMPackages {\n All,\n ClangFormat,\n Core,\n}\n\nexport async function setupLLVMApt(\n majorVersion: number,\n packages: LLVMPackages = LLVMPackages.All,\n): Promise {\n // TODO for older versions, this also includes the minor version\n const installationFolder = `/usr/lib/llvm-${majorVersion}`\n\n await setupAptPack([{ name: \"curl\" }])\n await execa(\"curl\", [\"-LJO\", \"https://apt.llvm.org/llvm.sh\"], { cwd: \"/tmp\" })\n const neededPackages = await patchAptLLVMScript(\"/tmp/llvm.sh\", \"/tmp/llvm-setup-cpp.sh\", majorVersion, packages)\n await setupAptPack(neededPackages)\n await chmod(\"/tmp/llvm-setup-cpp.sh\", \"755\")\n await execRoot(\n \"bash\",\n [\"/tmp/llvm-setup-cpp.sh\", `${majorVersion}`, ...(packages === LLVMPackages.All ? [\"all\"] : [])],\n {\n stdio: \"inherit\",\n shell: true,\n timeout: DEFAULT_TIMEOUT,\n },\n )\n\n await addPath(`${installationFolder}/bin`)\n\n return {\n installDir: `${installationFolder}`,\n binDir: `${installationFolder}/bin`,\n bin: `${installationFolder}/bin/clang++`,\n }\n}\n\nasync function patchAptLLVMScript(path: string, target_path: string, majorVersion: number, packages: LLVMPackages) {\n let script = await readFile(path, \"utf-8\")\n\n script = debugScript(script)\n script = nonInteractiveScript(script)\n script = choosePackages(packages, script, majorVersion)\n script = await removeConflictingPackages(script)\n script = useNalaScript(script)\n\n await writeFile(target_path, script)\n\n // the packages needed by the script\n return [{ name: \"lsb-release\" }, { name: \"wget\" }, { name: \"software-properties-common\" }, { name: \"gnupg\" }]\n}\n\nfunction debugScript(script: string) {\n if (!process.env.NODE_DEBUG) {\n return script.replace(/set -eux/g, \"set -eu\")\n }\n return script\n}\n\nfunction nonInteractiveScript(script: string) {\n // make the scirpt non-interactive and fix broken packages\n return script.replace(\n /add-apt-repository \"\\${REPO_NAME}\"/g,\n // eslint-disable-next-line no-template-curly-in-string\n \"add-apt-repository -y \\\"${REPO_NAME}\\\"\",\n )\n}\n\nasync function removeConflictingPackages(givenScript: string) {\n // fix conflicts between libclang-rt and libclang\n let script = givenScript.replace(\n /apt-get install -y/g,\n \"apt-get install -o Dpkg::Options::=\\\"--force-overwrite\\\" -y --fix-broken\",\n )\n\n // check if these are installed and if so, remove them from the script as they conflict\n const conflictingPackages = [\"libc++-$LLVM_VERSION-dev\", \"libc++abi-$LLVM_VERSION-dev\", \"libunwind-$LLVM_VERSION-dev\"]\n await Promise.all(\n conflictingPackages.map(async (pack) => {\n const installingPack = pack.replace(\"$LLVM_VERSION\", \"*\")\n if (await isPackageInstalled(installingPack)) {\n info(`Removing conflicting package ${installingPack}`)\n script = script.replace(pack, \"\")\n }\n }),\n )\n return script\n}\n\nfunction useNalaScript(script: string) {\n // use nala if it is available\n if (hasNala()) {\n return script.replace(/apt-get/g, \"nala\")\n }\n return script\n}\n\nfunction choosePackages(packages: LLVMPackages, script: string, majorVersion: number) {\n if (packages === LLVMPackages.ClangFormat) {\n return script.replace(/ -y \\$PKG/g, ` -y clang-format-${majorVersion}`)\n }\n return script\n}\n","import { endGroup, startGroup } from \"@actions/core\"\nimport { error } from \"ci-log\"\nimport pTimeout from \"p-timeout\"\nimport { join } from \"patha\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setups, ToolName } from \"./tool\"\nimport { InstallationInfo } from \"./utils/setup/setupBin\"\nimport { setupVCVarsall } from \"./vcvarsall/vcvarsall\"\nimport { getVersion } from \"./versions/versions\"\n\nexport const DEFAULT_TIMEOUT = 20 * 60 * 1000 // 20 minutes\n\nexport async function installTool(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n setupCppDir: string,\n successMessages: string[],\n errorMessages: string[],\n timeout: number = DEFAULT_TIMEOUT,\n) {\n startGroup(`Installing ${tool} ${version}`)\n let hasLLVM = false\n try {\n hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {\n milliseconds: timeout,\n message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,\n })\n } catch (e) {\n // push error message to the logger\n error(e as string | Error)\n errorMessages.push(`${tool} failed to install`)\n }\n endGroup()\n return hasLLVM\n}\n\nasync function installToolImpl(\n tool: ToolName,\n version: string,\n osVersion: number[] | null,\n arch: string,\n hasLLVM: boolean,\n setupCppDir: string,\n successMessages: string[],\n) {\n let installationInfo: InstallationInfo | undefined | void\n if (tool === \"vcvarsall\") {\n // eslint-disable-next-line no-await-in-loop\n await setupVCVarsall(getVersion(tool, version, osVersion), undefined, arch, undefined, undefined, false, false)\n } else {\n // get the setup function\n const setupFunction = setups[tool]\n\n // eslint-disable-next-line no-param-reassign\n hasLLVM = [\"llvm\", \"clangformat\", \"clangtidy\"].includes(tool)\n\n // the tool installation directory (for the functions that ue it)\n const setupDir = join(setupCppDir, hasLLVM ? \"llvm\" : tool)\n\n // eslint-disable-next-line no-await-in-loop\n installationInfo = await setupFunction(getVersion(tool, version, osVersion), setupDir, arch)\n }\n // preparing a report string\n successMessages.push(getSuccessMessage(tool, installationInfo))\n return hasLLVM\n}\n","export class TimeoutError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = 'TimeoutError';\n\t}\n}\n\n/**\nAn error to be thrown when the request is aborted by AbortController.\nDOMException is thrown instead of this Error when DOMException is available.\n*/\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\n/**\nTODO: Remove AbortError and just throw DOMException when targeting Node 18.\n*/\nconst getDOMException = errorMessage => globalThis.DOMException === undefined\n\t? new AbortError(errorMessage)\n\t: new DOMException(errorMessage);\n\n/**\nTODO: Remove below function and just 'reject(signal.reason)' when targeting Node 18.\n*/\nconst getAbortedReason = signal => {\n\tconst reason = signal.reason === undefined\n\t\t? getDOMException('This operation was aborted.')\n\t\t: signal.reason;\n\n\treturn reason instanceof Error ? reason : getDOMException(reason);\n};\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t} = options;\n\n\tlet timer;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (options.signal) {\n\t\t\tconst {signal} = options;\n\t\t\tif (signal.aborted) {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t}\n\n\t\t\tsignal.addEventListener('abort', () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t});\n\t\t}\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\tpromise.then(resolve, reject);\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tresolve(await promise);\n\t\t\t} catch (error) {\n\t\t\t\treject(error);\n\t\t\t}\n\t\t})();\n\t});\n\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { info } from \"ci-log\"\nimport { setupMSVCDevCmd } from \"msvc-dev-cmd/lib.js\"\nimport { pathExists } from \"path-exists\"\nimport { addEnv } from \"../utils/env/addEnv\"\n\nfunction getArch(arch: string): string {\n switch (arch) {\n case \"x32\":\n case \"32\":\n case \"ia32\": {\n return \"x86\"\n }\n case \"64\": {\n return \"x64\"\n }\n default: {\n return arch\n }\n }\n}\n\nexport async function setupVCVarsall(\n vsversion: string,\n VCTargetsPath: string | undefined,\n arch: string,\n toolset: string | undefined,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (VCTargetsPath !== undefined && (await pathExists(VCTargetsPath))) {\n info(`Adding ${VCTargetsPath} to PATH`)\n await addEnv(\"VCTargetsPath\", VCTargetsPath)\n }\n\n await setupMSVCDevCmd(getArch(arch), sdk, toolset, uwp, spectre, vsversion)\n}\n","const core = require('@actions/core')\nconst child_process = require('child_process')\nconst fs = require('fs')\nconst path = require('path')\nconst process = require('process')\n\nconst PROGRAM_FILES_X86 = process.env['ProgramFiles(x86)']\nconst PROGRAM_FILES = [process.env['ProgramFiles(x86)'], process.env['ProgramFiles']]\n\n\nconst EDITIONS = ['Enterprise', 'Professional', 'Community', 'BuildTools']\nconst YEARS = ['2022', '2019', '2017']\n\nconst VsYearVersion = {\n '2022': '17.0',\n '2019': '16.0',\n '2017': '15.0',\n '2015': '14.0',\n '2013': '12.0',\n}\n\n/**\n * Convert the vs version (e.g. 2022) or year (e.g. 17.0) to the version number (e.g. 17.0)\n * @param {string | undefined} vsversion the year (e.g. 2022) or version number (e.g. 17.0)\n * @returns {string | undefined} the version number (e.g. 17.0)\n */\nfunction vsversion_to_versionnumber(vsversion) {\n if (Object.values(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n if (vsversion in VsYearVersion) {\n return VsYearVersion[vsversion]\n }\n }\n return vsversion\n}\nexports.vsversion_to_versionnumber = vsversion_to_versionnumber\n\n/**\n * Convert the vs version (e.g. 17.0) or year (e.g. 2022) to the year (e.g. 2022)\n * @param {string} vsversion the version number (e.g. 17.0) or year (e.g. 2022)\n * @returns {string} the year (e.g. 2022)\n */\nfunction vsversion_to_year(vsversion) {\n if (Object.keys(VsYearVersion).includes(vsversion)) {\n return vsversion\n } else {\n for (const [year, ver] of Object.entries(VsYearVersion)) {\n if (ver === vsversion) {\n return year\n }\n }\n }\n return vsversion\n}\nexports.vsversion_to_year = vsversion_to_year\n\nconst VSWHERE_PATH = `${PROGRAM_FILES_X86}\\\\Microsoft Visual Studio\\\\Installer`\n\n/**\n * Find MSVC tools with vswhere\n * @param {string} pattern the pattern to search for\n * @param {string} version_pattern the version pattern to search for\n * @returns {string | null} the path to the found MSVC tools\n */\nfunction findWithVswhere(pattern, version_pattern) {\n try {\n let installationPath = child_process.execSync(`vswhere -products * ${version_pattern} -prerelease -property installationPath`).toString().trim()\n return installationPath + '\\\\' + pattern\n } catch (e) {\n core.warning(`vswhere failed: ${e}`)\n }\n return null\n}\nexports.findWithVswhere = findWithVswhere\n\n/**\n * Find the vcvarsall.bat file for the given Visual Studio version\n * @param {string | undefined} vsversion the version of Visual Studio to find (year or version number)\n * @returns {string} the path to the vcvarsall.bat file\n */\nfunction findVcvarsall(vsversion) {\n const vsversion_number = vsversion_to_versionnumber(vsversion)\n let version_pattern\n if (vsversion_number) {\n const upper_bound = vsversion_number.split('.')[0] + '.9'\n version_pattern = `-version \"${vsversion_number},${upper_bound}\"`\n } else {\n version_pattern = \"-latest\"\n }\n\n // If vswhere is available, ask it about the location of the latest Visual Studio.\n let path = findWithVswhere('VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat', version_pattern)\n if (path && fs.existsSync(path)) {\n core.info(`Found with vswhere: ${path}`)\n return path\n }\n core.info(\"Not found with vswhere\")\n\n // If that does not work, try the standard installation locations,\n // starting with the latest and moving to the oldest.\n const years = vsversion ? [vsversion_to_year(vsversion)] : YEARS\n for (const prog_files of PROGRAM_FILES) {\n for (const ver of years) {\n for (const ed of EDITIONS) {\n path = `${prog_files}\\\\Microsoft Visual Studio\\\\${ver}\\\\${ed}\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat`\n core.info(`Trying standard location: ${path}`)\n if (fs.existsSync(path)) {\n core.info(`Found standard location: ${path}`)\n return path\n }\n }\n }\n }\n core.info(\"Not found in standard locations\")\n\n // Special case for Visual Studio 2015 (and maybe earlier), try it out too.\n path = `${PROGRAM_FILES_X86}\\\\Microsoft Visual C++ Build Tools\\\\vcbuildtools.bat`\n if (fs.existsSync(path)) {\n core.info(`Found VS 2015: ${path}`)\n return path\n }\n core.info(`Not found in VS 2015 location: ${path}`)\n\n throw new Error('Microsoft Visual Studio not found')\n}\nexports.findVcvarsall = findVcvarsall\n\nfunction isPathVariable(name) {\n const pathLikeVariables = ['PATH', 'INCLUDE', 'LIB', 'LIBPATH']\n return pathLikeVariables.indexOf(name.toUpperCase()) != -1\n}\n\nfunction filterPathValue(path) {\n let paths = path.split(';')\n // Remove duplicates by keeping the first occurance and preserving order.\n // This keeps path shadowing working as intended.\n function unique(value, index, self) {\n return self.indexOf(value) === index\n }\n return paths.filter(unique).join(';')\n}\n\n/**\n * Setup MSVC Developer Command Prompt\n * @param {string} arch - Target architecture\n * @param {string | undefined} sdk - Windows SDK number to build for\n * @param {string | undefined} toolset - VC++ compiler toolset version\n * @param {boolean | 'true' | 'false' | undefined} uwp - Build for Universal Windows Platform\n * @param {boolean | 'true' | 'false' | undefined} spectre - Enable Spectre mitigations\n * @param {string | undefined} vsversion - The Visual Studio version to use. This can be the version number (e.g. 16.0 for 2019) or the year (e.g. \"2019\").\n */\nfunction setupMSVCDevCmd(arch, sdk, toolset, uwp, spectre, vsversion) {\n if (process.platform != 'win32') {\n core.info('This is not a Windows virtual environment, bye!')\n return\n }\n\n // Add standard location of \"vswhere\" to PATH, in case it's not there.\n process.env.PATH += path.delimiter + VSWHERE_PATH\n\n // There are all sorts of way the architectures are called. In addition to\n // values supported by Microsoft Visual C++, recognize some common aliases.\n let arch_aliases = {\n \"win32\": \"x86\",\n \"win64\": \"x64\",\n \"x86_64\": \"x64\",\n \"x86-64\": \"x64\",\n }\n // Ignore case when matching as that's what humans expect.\n if (arch.toLowerCase() in arch_aliases) {\n arch = arch_aliases[arch.toLowerCase()]\n }\n\n // Due to the way Microsoft Visual C++ is configured, we have to resort to the following hack:\n // Call the configuration batch file and then output *all* the environment variables.\n\n var args = [arch]\n\n if (uwp && JSON.parse(uwp) === true) {\n args.push('uwp')\n }\n if (sdk) {\n args.push(sdk)\n }\n if (toolset) {\n args.push(`-vcvars_ver=${toolset}`)\n }\n if (spectre && JSON.parse(spectre) === true) {\n args.push('-vcvars_spectre_libs=spectre')\n }\n\n const vcvars = `\"${findVcvarsall(vsversion)}\" ${args.join(' ')}`\n core.debug(`vcvars command-line: ${vcvars}`)\n\n const cmd_output_string = child_process.execSync(`set && cls && ${vcvars} && cls && set`, {shell: \"cmd\"}).toString()\n const cmd_output_parts = cmd_output_string.split('\\f')\n\n const old_environment = cmd_output_parts[0].split('\\r\\n')\n const vcvars_output = cmd_output_parts[1].split('\\r\\n')\n const new_environment = cmd_output_parts[2].split('\\r\\n')\n\n // If vsvars.bat is given an incorrect command line, it will print out\n // an error and *still* exit successfully. Parse out errors from output\n // which don't look like environment variables, and fail if appropriate.\n const error_messages = vcvars_output.filter((line) => {\n if (line.match(/^\\[ERROR.*\\]/)) {\n // Don't print this particular line which will be confusing in output.\n if (!line.match(/Error in script usage. The correct usage is:$/)) {\n return true\n }\n }\n return false\n })\n if (error_messages.length > 0) {\n throw new Error('invalid parameters' + '\\r\\n' + error_messages.join('\\r\\n'))\n }\n\n // Convert old environment lines into a dictionary for easier lookup.\n let old_env_vars = {}\n for (let string of old_environment) {\n const [name, value] = string.split('=')\n old_env_vars[name] = value\n }\n\n // Now look at the new environment and export everything that changed.\n // These are the variables set by vsvars.bat. Also export everything\n // that was not there during the first sweep: those are new variables.\n core.startGroup('Environment variables')\n for (let string of new_environment) {\n // vsvars.bat likes to print some fluff at the beginning.\n // Skip lines that don't look like environment variables.\n if (!string.includes('=')) {\n continue;\n }\n let [name, new_value] = string.split('=')\n let old_value = old_env_vars[name]\n // For new variables \"old_value === undefined\".\n if (new_value !== old_value) {\n core.info(`Setting ${name}`)\n // Special case for a bunch of PATH-like variables: vcvarsall.bat\n // just prepends its stuff without checking if its already there.\n // This makes repeated invocations of this action fail after some\n // point, when the environment variable overflows. Avoid that.\n if (isPathVariable(name)) {\n new_value = filterPathValue(new_value)\n }\n core.exportVariable(name, new_value)\n }\n }\n core.endGroup()\n\n core.info(`Configured Developer Command Prompt`)\n}\nexports.setupMSVCDevCmd = setupMSVCDevCmd\n","import { info, warning } from \"ci-log\"\nimport { isUrlOnline } from \"is-url-online\"\nimport { addExeExt } from \"patha\"\nimport semverLte from \"semver/functions/lte\"\nimport { extractExe, extractTarByExe } from \"../utils/setup/extract\"\nimport { PackageInfo } from \"../utils/setup/setupBin\"\nimport { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from \"../utils/setup/version\"\n\n// ================================================\n// Version\n// ================================================\n\n/** The specific and minimum LLVM versions supported by this action. */\nexport const VERSIONS: Set = getVersions([\n \"3.5.0\",\n \"3.5.1\",\n \"3.5.2\",\n \"3.6.0\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.0\",\n \"3.7.1\",\n \"3.8.0\",\n \"3.8.1\",\n \"3.9.0\",\n \"3.9.1\",\n \"4.0.0\",\n \"4.0.1\",\n \"5.0.0\",\n \"5.0.1\",\n \"5.0.2\",\n \"6.0.0\",\n \"6.0.1\",\n \"7.0.0\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.0\",\n \"8.0.1\",\n \"9.0.0\",\n \"9.0.1\",\n \"10.0.0\",\n \"10.0.1\",\n \"11.0.0\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.0\",\n \"12.0.1\",\n \"13.0.0\",\n \"13.0.1\",\n \"14.0.0\",\n \"14.0.1\",\n \"14.0.2\",\n \"14.0.3\",\n \"14.0.4\",\n \"14.0.5\",\n \"14.0.6\",\n \"15.0.0\",\n \"15.0.1\",\n \"15.0.2\",\n \"15.0.3\",\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"15.0.7\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/** The LLVM versions that were never released for the Windows platform. */\nconst WIN32_MISSING: Set = new Set([\"10.0.1\", \"15.0.5\", \"15.0.6\", \"17.0.5\"])\n\n/** The LLVM versions that were never released for the Darwin platform. */\nconst DARWIN_MISSING = new Set([\n \"3.5.1\",\n \"3.6.1\",\n \"3.6.2\",\n \"3.7.1\",\n \"3.8.1\",\n \"3.9.1\",\n \"6.0.1\",\n \"7.0.1\",\n \"7.1.0\",\n \"8.0.1\",\n \"11.0.1\",\n \"11.1.0\",\n \"12.0.1\",\n // missing x86_64\n // TODO add arm64 support\n \"15.0.4\",\n \"15.0.5\",\n \"15.0.6\",\n \"16.0.0\",\n \"16.0.1\",\n \"16.0.2\",\n \"16.0.3\",\n \"16.0.4\",\n \"16.0.5\",\n \"16.0.6\",\n \"17.0.1\",\n \"17.0.2\",\n \"17.0.3\",\n \"17.0.4\",\n \"17.0.5\",\n \"17.0.6\",\n \"18.1.0\",\n \"18.1.1\",\n \"18.1.2\",\n])\n\n/**\n * The LLVM versions that should use the last RC version instead of the release version for the Linux (Ubuntu) platform.\n * This is useful when there were binaries released for the Linux (Ubuntu) platform for the last RC version but not for\n * the actual release version.\n */\nconst UBUNTU_RC: Map = new Map()\n\n/**\n * The (latest) Ubuntu versions for each LLVM version.\n *\n * https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.1 or https://releases.llvm.org/14.0.1\n */\n// TODO change based on ubuntu version\nconst UBUNTU_SUFFIX_MAP: { [key: string]: string } = {\n \"3.5.0\": \"-ubuntu-14.04\",\n \"3.5.1\": \"\",\n \"3.5.2\": \"-ubuntu-14.04\",\n \"3.6.0\": \"-ubuntu-14.04\",\n \"3.6.1\": \"-ubuntu-14.04\",\n \"3.6.2\": \"-ubuntu-14.04\",\n \"3.7.0\": \"-ubuntu-14.04\",\n \"3.7.1\": \"-ubuntu-14.04\",\n \"3.8.0\": \"-ubuntu-16.04\",\n \"3.8.1\": \"-ubuntu-16.04\",\n \"3.9.0\": \"-ubuntu-16.04\",\n \"3.9.1\": \"-ubuntu-16.04\",\n \"4.0.0\": \"-ubuntu-16.04\",\n \"5.0.0\": \"-ubuntu16.04\",\n \"5.0.1\": \"-ubuntu-16.04\",\n \"5.0.2\": \"-ubuntu-16.04\",\n \"6.0.0\": \"-ubuntu-16.04\",\n \"6.0.1\": \"-ubuntu-16.04\",\n \"7.0.0\": \"-ubuntu-16.04\",\n \"7.0.1\": \"-ubuntu-18.04\",\n \"7.1.0\": \"-ubuntu-14.04\",\n \"8.0.0\": \"-ubuntu-18.04\",\n \"9.0.0\": \"-ubuntu-18.04\",\n \"9.0.1\": \"-ubuntu-16.04\",\n \"10.0.0\": \"-ubuntu-18.04\",\n \"10.0.1\": \"-ubuntu-16.04\",\n \"11.0.0\": \"-ubuntu-20.04\",\n \"11.0.1\": \"-ubuntu-16.04\",\n \"11.1.0\": \"-ubuntu-16.04\",\n \"12.0.0\": \"-ubuntu-20.04\",\n \"12.0.1\": \"-ubuntu-16.04\",\n \"13.0.0\": \"-ubuntu-20.04\",\n \"13.0.0-ubuntu-16.04\": \"-ubuntu-16.04\",\n \"13.0.0-ubuntu-20.04\": \"-ubuntu-20.04\",\n \"13.0.1\": \"-ubuntu-18.04\",\n \"13.0.1-ubuntu-18.04\": \"-ubuntu-18.04\",\n \"14.0.0\": \"-ubuntu-18.04\",\n // \"14.0.1\": \"-ubuntu-18.04\", // only available for powerpc64le\n \"15.0.2\": \"-rhel86\",\n \"15.0.5\": \"-ubuntu-18.04\",\n \"15.0.6\": \"-ubuntu-18.04\",\n \"16.0.0\": \"-ubuntu-18.04\",\n \"16.0.2\": \"-ubuntu-22.04\",\n \"16.0.3\": \"-ubuntu-22.04\",\n \"16.0.4\": \"-ubuntu-22.04\",\n \"17.0.2\": \"-ubuntu-22.04\",\n \"17.0.4\": \"-ubuntu-22.04\",\n \"17.0.5\": \"-ubuntu-22.04\",\n \"17.0.6\": \"-ubuntu-22.04\",\n}\n\n/** The latest supported LLVM version for the Linux (Ubuntu) platform. */\nconst MAX_UBUNTU: string = \"17.0.6\"\n\n// ================================================\n// URL\n// ================================================\n\n/** Gets a LLVM download URL for GitHub. */\nfunction getGitHubUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${file}`\n}\n\n/** Gets a LLVM download URL for https://releases.llvm.org. */\nfunction getReleaseUrl(version: string, prefix: string, suffix: string): string {\n const file = `${prefix}${version}${suffix}`\n return `https://releases.llvm.org/${version}/${file}`\n}\n\n/** Gets an LLVM download URL for the Darwin platform. */\nfunction getDarwinUrl(version: string): string | null {\n if (DARWIN_MISSING.has(version)) {\n return null\n }\n\n const darwin = version === \"9.0.0\" ? \"-darwin-apple\" : \"-apple-darwin\"\n const prefix = \"clang+llvm-\"\n const suffix = `-x86_64${darwin}.tar.xz`\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Linux (Ubuntu) platform. */\nexport function getLinuxUrl(versionGiven: string): string {\n let version = versionGiven\n\n const rc = UBUNTU_RC.get(version)\n if (rc !== undefined) {\n version = rc\n }\n\n let linuxVersion: string\n // ubuntu-version is specified\n if (version.includes(\"ubuntu\")) {\n const givenUbuntuVersion = version.replace(/-ubuntu-.*/, \"\")\n if (!VERSIONS.has(givenUbuntuVersion)) {\n throw new Error(`Unsupported Ubuntu version: ${givenUbuntuVersion}`)\n }\n linuxVersion = version.replace(givenUbuntuVersion, \"\")\n version = getSpecificVersions(VERSIONS, givenUbuntuVersion)[0]\n } else if (version !== \"\" && version in UBUNTU_SUFFIX_MAP) {\n linuxVersion = UBUNTU_SUFFIX_MAP[version]\n } else {\n // default to the maximum version\n linuxVersion = UBUNTU_SUFFIX_MAP[MAX_UBUNTU]\n warning(`Falling back to LLVM version ${MAX_UBUNTU} ${linuxVersion} for the Ubuntu.`)\n }\n\n const prefix = \"clang+llvm-\"\n\n let suffix: string\n if (version === \"5.0.0\") {\n suffix = `-linux-x86_64${linuxVersion}.tar.xz`\n } else if (linuxVersion.includes(\"-rhel86\")) {\n suffix = `-x86_64-unknown-linux-gnu${linuxVersion}.tar.xz`\n } else {\n suffix = `-x86_64-linux-gnu${linuxVersion}.tar.xz`\n }\n\n if (semverLte(version, \"9.0.1\")) {\n return getReleaseUrl(version, prefix, suffix)\n } else {\n return getGitHubUrl(version, prefix, suffix)\n }\n}\n\n/** Gets an LLVM download URL for the Windows platform. */\nasync function getWin32Url(version: string): Promise {\n if (WIN32_MISSING.has(version)) {\n return null\n }\n\n const prefix = \"LLVM-\"\n const suffix = semverLte(version, \"3.7.0\") ? \"-win32.exe\" : \"-win64.exe\"\n\n const olderThan9_1 = semverLte(version, \"9.0.1\")\n let url: string\n let fallback = false\n if (olderThan9_1) {\n url = getReleaseUrl(version, prefix, suffix)\n if (!(await isUrlOnline(url))) {\n fallback = true // fallback to github\n }\n }\n if (fallback || !olderThan9_1) {\n url = getGitHubUrl(version, prefix, suffix)\n }\n\n return url!\n}\n\n/** Gets an LLVM download URL. */\nexport function getUrl(platform: string, version: string): string | null | Promise {\n switch (platform) {\n case \"darwin\":\n return getDarwinUrl(version)\n case \"linux\":\n return getLinuxUrl(version)\n case \"win32\":\n return getWin32Url(version)\n default:\n return null\n }\n}\n\nexport async function getLLVMPackageInfo(\n version: string,\n platform: NodeJS.Platform,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _arch: string,\n): Promise {\n const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)\n info(`specific llvm version: ${specificVersion}`)\n return {\n url,\n extractedFolderName: \"\",\n binRelativeDir: \"bin\",\n binFileName: addExeExt(\"clang\"),\n extractFunction: platform === \"win32\"\n ? extractExe\n : (file: string, dest: string) => {\n return extractTarByExe(file, dest, [\"--strip-components=1\"])\n },\n }\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupMake(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"make\", version)\n }\n case \"darwin\": {\n await setupBrewPack(\"make\", version)\n await addPath(\"/usr/local/opt/make/libexec/gnubin\")\n return { binDir: \"/usr/local/opt/make/libexec/gnubin\" }\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"make\", version)\n } else if (hasDnf()) {\n return setupDnfPack([{ name: \"make\", version }])\n } else if (isUbuntu()) {\n return setupAptPack([{ name: \"make\", version }])\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupPipPack } from \"../utils/setup/setupPipPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupMeson(version: string | undefined, _setupDir: string, _arch: string) {\n return setupPipPack(\"meson\", version)\n}\n","import { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupVCVarsall } from \"../vcvarsall/vcvarsall\"\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { findVcvarsall, vsversion_to_versionnumber } from \"msvc-dev-cmd/lib.js\"\nimport { join } from \"patha\"\n\nimport { error, info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\n\ntype MSVCVersion = \"2022\" | \"17.0\" | \"2019\" | \"16.0\" | \"2017\" | \"15.0\" | \"2015\" | \"14.0\" | \"2013\" | \"12.0\" | string\n\nexport async function setupMSVC(\n versionGiven: MSVCVersion,\n _setupDir: string,\n arch: string,\n sdk?: string,\n uwp?: boolean,\n spectre?: boolean,\n) {\n if (process.platform !== \"win32\") {\n return\n }\n const version = vsversion_to_versionnumber(versionGiven) as string\n\n // check if the given version is already installed\n info(`Checking if MSVC ${version} is already installed`)\n let installed = false\n try {\n const vcvarsall_path = findVcvarsall(version) as string\n installed = true\n info(`Found the pre-installed version of MSVC at ${vcvarsall_path}`)\n } catch {\n // not installed, try installing\n }\n\n let toolset: string | undefined\n let VCTargetsPath: string | undefined\n // https://github.com/aminya/setup-cpp/issues/1\n if (!installed) {\n try {\n if (version === \"14.0\") {\n toolset = \"14.0\"\n await setupChocoPack(\"visualcpp-build-tools\", \"14.0.25420.1\", [\"--ignore-dependencies\"])\n VCTargetsPath = \"C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140\"\n } else if (version === \"15.0\") {\n toolset = \"14.16\"\n await setupChocoPack(\"visualstudio2017buildtools\", \"15.9.41.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16\" // TODO verify path\n } else if (version === \"16.0\") {\n toolset = \"14.29\"\n await setupChocoPack(\"visualstudio2019buildtools\", \"16.11.7.0\", [])\n VCTargetsPath = \"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133\"\n } else if (version === \"17.0\") {\n toolset = undefined\n await setupChocoPack(\"visualstudio2022buildtools\", \"117.0.5.0\", [])\n VCTargetsPath = undefined\n } else {\n error(`The given MSVC versions ${versionGiven} is not supported yet.`)\n }\n } catch (e) {\n error(e as string | Error)\n }\n }\n // run vcvarsall.bat environment variables\n await setupVCVarsall(version, VCTargetsPath, arch, toolset, sdk, uwp, spectre)\n\n if (GITHUB_ACTIONS) {\n await addMSVCLoggingMatcher()\n }\n}\n\nasync function addMSVCLoggingMatcher() {\n const matcherPath = join(__dirname, \"msvc_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the msvc_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import { execRootSync } from \"admina\"\nimport { dirname } from \"patha\"\nimport which from \"which\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { addAptKeyViaDownload, hasNala, setupAptPack } from \"../utils/setup/setupAptPack\"\n\nlet binDir: string | undefined\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupNala(version: string, _setupDir: string, _arch: string) {\n if (!isUbuntu()) {\n return undefined\n }\n if (typeof binDir === \"string\") {\n return { binDir }\n }\n\n const maybeBinDir = which.sync(\"nala\", { nothrow: true })\n if (maybeBinDir !== null) {\n binDir = dirname(maybeBinDir)\n return { binDir }\n }\n\n // https://github.com/volitank/nala#-installation\n const keyFileName = await addAptKeyViaDownload(\n \"volian-archive-scar-unstable.gpg\",\n \"https://deb.volian.org/volian/scar.key\",\n )\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `echo \"deb [signed-by=${keyFileName}] http://deb.volian.org/volian/ scar main\" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,\n ])\n\n try {\n if (version !== \"legacy\") {\n await setupAptPack([{ name: \"nala\" }], true)\n } else {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n } catch (err) {\n await setupAptPack([{ name: \"nala-legacy\" }], true)\n }\n\n binDir = \"/usr/bin\" // eslint-disable-line require-atomic-updates\n\n return { binDir }\n}\n\nexport function bashWithNala(script: string) {\n if (hasNala()) {\n return `apt-get() { nala $@; }; export -f apt-get; ${script}; unset -f apt-get`\n }\n return script\n}\n","import { addPath } from \"../utils/env/addEnv\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupOpencppcoverage(version: string | undefined, _setupDir: string, _arch: string) {\n if (process.platform !== \"win32\") {\n return\n }\n await setupChocoPack(\"opencppcoverage\", version)\n const binDir = await activateOpencppcoverage()\n return { binDir }\n}\n\nasync function activateOpencppcoverage() {\n const binDir = \"C:/Program Files/OpenCppCoverage\"\n await addPath(binDir)\n return binDir\n}\n","import { execRootSync } from \"admina\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { ubuntuVersion } from \"../utils/env/ubuntu_version\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupPowershell(version: string | undefined, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n await setupChocoPack(\"powershell-core\", version)\n const binDir = \"C:/Program Files/PowerShell/7\"\n await addPath(binDir)\n return { binDir }\n }\n case \"darwin\": {\n return setupBrewPack(\"powershell\", version, [\"--cask\"])\n }\n case \"linux\": {\n if (isArch()) {\n return setupPacmanPack(\"powershell-bin\", version, \"yay\")\n } else if (hasDnf()) {\n setupDnfPack([{ name: \"curl\" }])\n execRootSync(\"/bin/bash\", [\n \"-c\",\n `curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo`,\n ])\n return setupDnfPack([{ name: \"powershell\", version }])\n } else if (isUbuntu()) {\n await setupAptPack([{ name: \"curl\" }])\n const ubuntuVerSplitted = (await ubuntuVersion())!\n const ubuntuVersionString = `${ubuntuVerSplitted[0]}.0${ubuntuVerSplitted[1]}`\n\n execRootSync(\"curl\", [\n \"-LJO\",\n `https://packages.microsoft.com/config/ubuntu/${ubuntuVersionString}/packages-microsoft-prod.deb`,\n ])\n execRootSync(\"dpkg\", [\"-i\", \"packages-microsoft-prod.deb\"])\n\n // TODO Debian\n // const keyFileName = await addAptKeyViaDownload(\n // \"microsoft.asc\",\n // \"https://packages.microsoft.com/keys/microsoft.asc\"\n // )\n // execRootSync(\"/bin/bash\", [\n // \"-c\",\n // `echo \"deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main\" > /etc/apt/sources.list.d/microsoft.list`,\n // ])\n\n return setupAptPack([{ name: \"powershell\", version }], true)\n }\n throw new Error(`Unsupported linux distribution`)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { setupBrewPack } from \"../utils/setup/setupBrewPack\"\nimport { setupChocoPack } from \"../utils/setup/setupChocoPack\"\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function setupSccache(version: string, _setupDir: string, _arch: string) {\n switch (process.platform) {\n case \"win32\": {\n return setupChocoPack(\"sccache\", version)\n }\n case \"linux\":\n case \"darwin\": {\n return setupBrewPack(\"sccache\", version)\n }\n default: {\n throw new Error(`Unsupported platform`)\n }\n }\n}\n","import { addExeExt } from \"patha\"\nimport { extractTarByExe, extractZip } from \"../utils/setup/extract\"\nimport { InstallationInfo, PackageInfo, setupBin } from \"../utils/setup/setupBin\"\n\n/** Get the platform name task uses in their download links */\nfunction getTaskPlatform(platform: NodeJS.Platform) {\n switch (platform) {\n case \"win32\":\n return \"windows\"\n default:\n return platform\n }\n}\n\n/** Get the arch name task uses in their download links */\nfunction getTaskArch(arch: string) {\n switch (arch) {\n case \"x64\":\n return \"amd64\"\n case \"ia32\":\n case \"x86\":\n case \"i386\":\n case \"x32\":\n return \"386\"\n default:\n return arch\n }\n}\n\n/** Get the platform data for task */\nfunction getTaskPackageInfo(version: string, platform: NodeJS.Platform, arch: string): PackageInfo {\n const taskPlatform = getTaskPlatform(platform)\n const taskArch = getTaskArch(arch)\n const isZip = platform === \"win32\"\n const extension = isZip ? \"zip\" : \"tar.gz\"\n return {\n binRelativeDir: \"\",\n binFileName: addExeExt(\"task\"),\n extractedFolderName: \"\",\n extractFunction: isZip ? extractZip : extractTarByExe,\n url: `https://github.com/go-task/task/releases/download/v${version}/task_${taskPlatform}_${taskArch}.${extension}`,\n }\n}\n\nexport function setupTask(version: string, setupDir: string, arch: string): Promise {\n return setupBin(\"task\", version, getTaskPackageInfo, setupDir, arch)\n}\n","import { grantUserWriteAccess } from \"admina\"\nimport { notice } from \"ci-log\"\nimport { execaSync } from \"execa\"\nimport { pathExists } from \"path-exists\"\nimport { addShExt, addShRelativePrefix, dirname, join } from \"patha\"\nimport which from \"which\"\nimport { addPath } from \"../utils/env/addEnv\"\nimport { hasDnf } from \"../utils/env/hasDnf\"\nimport { isArch } from \"../utils/env/isArch\"\nimport { isUbuntu } from \"../utils/env/isUbuntu\"\nimport { setupAptPack } from \"../utils/setup/setupAptPack\"\nimport { InstallationInfo } from \"../utils/setup/setupBin\"\nimport { setupDnfPack } from \"../utils/setup/setupDnfPack\"\nimport { setupPacmanPack } from \"../utils/setup/setupPacmanPack\"\n\nlet hasVCPKG = false\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport async function setupVcpkg(_version: string, setupDir: string, _arch: string): Promise {\n if (!hasVCPKG || which.sync(\"vcpkg\", { nothrow: true }) === null) {\n if (process.platform === \"linux\") {\n // vcpkg download and extraction dependencies\n if (isArch()) {\n await Promise.all([\n setupPacmanPack(\"curl\"),\n setupPacmanPack(\"zip\"),\n setupPacmanPack(\"unzip\"),\n setupPacmanPack(\"tar\"),\n setupPacmanPack(\"git\"),\n setupPacmanPack(\"pkg-config\"),\n ])\n } else if (hasDnf()) {\n await setupDnfPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n } else if (isUbuntu()) {\n await setupAptPack([\n { name: \"curl\" },\n { name: \"zip\" },\n { name: \"unzip\" },\n { name: \"tar\" },\n { name: \"git\" },\n { name: \"pkg-config\" },\n ])\n }\n }\n\n if (!(await pathExists(join(setupDir, addShExt(\"bootstrap-vcpkg\", \".bat\"))))) {\n execaSync(\"git\", [\"clone\", \"https://github.com/microsoft/vcpkg\"], { cwd: dirname(setupDir), stdio: \"inherit\" })\n } else {\n notice(`Vcpkg folder already exists at ${setupDir}. This might mean that ~/vcpkg is restored from the cache.`)\n }\n\n execaSync(addShExt(addShRelativePrefix(\"bootstrap-vcpkg\"), \".bat\"), {\n cwd: setupDir,\n shell: true,\n stdio: \"inherit\",\n })\n\n await grantUserWriteAccess(setupDir)\n\n await addPath(setupDir)\n // eslint-disable-next-line require-atomic-updates\n hasVCPKG = true\n return { binDir: setupDir }\n }\n\n return { binDir: dirname(which.sync(\"vcpkg\")) }\n}\n","import { endGroup, notice, startGroup } from \"@actions/core\"\nimport { error, info } from \"ci-log\"\nimport { join } from \"path\"\nimport semverValid from \"semver/functions/valid\"\nimport { getSuccessMessage } from \"./cli-options\"\nimport { setupGcc, setupMingw } from \"./gcc/gcc\"\nimport { activateGcovGCC, activateGcovLLVM } from \"./gcovr/gcovr\"\nimport { setupLLVM } from \"./llvm/llvm\"\nimport { setupMSVC } from \"./msvc/msvc\"\nimport { addEnv } from \"./utils/env/addEnv\"\nimport { getVersion } from \"./versions/versions\"\n\n/** Detecting the compiler version. Divide the given string by `-` and use the second element as the version */\nexport function getCompilerInfo(compilerAndVersion: string) {\n const compilerAndMaybeVersion = compilerAndVersion.split(\"-\")\n const compiler = compilerAndMaybeVersion[0]\n if (1 in compilerAndMaybeVersion) {\n const maybeVersion = compilerAndMaybeVersion[1]\n if (semverValid(maybeVersion) !== null) {\n return { compiler, version: maybeVersion }\n } else {\n info(`Invalid semver version ${maybeVersion} used for the compiler.`)\n return { compiler, version: maybeVersion }\n }\n }\n return { compiler, version: undefined }\n}\n\n/** Installing the specified compiler */\nexport async function installCompiler(\n compilerAndVersion: string,\n osVersion: number[] | null,\n setupCppDir: string,\n arch: string,\n successMessages: string[],\n hasLLVM: boolean,\n errorMessages: string[],\n) {\n try {\n const { compiler, version } = getCompilerInfo(compilerAndVersion)\n\n // install the compiler. We allow some aliases for the compiler name\n startGroup(`Installing ${compiler} ${version ?? \"\"}`)\n switch (compiler) {\n case \"llvm\":\n case \"clang\":\n case \"clang++\": {\n const installationInfo = await setupLLVM(\n getVersion(\"llvm\", version, osVersion),\n join(setupCppDir, \"llvm\"),\n arch,\n )\n\n await activateGcovLLVM()\n\n successMessages.push(getSuccessMessage(\"llvm\", installationInfo))\n break\n }\n case \"gcc\":\n case \"mingw\":\n case \"cygwin\":\n case \"msys\": {\n const gccVersion = compiler === \"mingw\"\n ? getVersion(\"mingw\", version, osVersion)\n : getVersion(\"gcc\", version, osVersion)\n const installationInfo = compiler === \"mingw\"\n ? await setupMingw(gccVersion, join(setupCppDir, \"gcc\"), arch)\n : await setupGcc(gccVersion, join(setupCppDir, \"gcc\"), arch)\n\n if (hasLLVM) {\n // remove back the added CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n await activateGcovGCC(gccVersion)\n\n successMessages.push(getSuccessMessage(\"gcc\", installationInfo))\n break\n }\n case \"cl\":\n case \"msvc\":\n case \"msbuild\":\n case \"vs\":\n case \"visualstudio\":\n case \"visualcpp\":\n case \"visualc++\": {\n const installationInfo = await setupMSVC(\n getVersion(\"msvc\", version, osVersion),\n join(setupCppDir, \"msvc\"),\n arch,\n )\n\n if (hasLLVM) {\n // remove the CPPFLAGS of LLVM that include the LLVM headers\n await addEnv(\"CPPFLAGS\", \"\")\n }\n\n successMessages.push(getSuccessMessage(\"msvc\", installationInfo))\n break\n }\n case \"appleclang\":\n case \"applellvm\": {\n notice(\"Assuming apple-clang is already installed\")\n await Promise.all([addEnv(\"CC\", \"clang\"), addEnv(\"CXX\", \"clang++\")])\n successMessages.push(getSuccessMessage(\"apple-clang\", undefined))\n break\n }\n default: {\n errorMessages.push(`Unsupported compiler ${compiler}`)\n }\n }\n } catch (err) {\n error(err as string | Error)\n errorMessages.push(`Failed to install the ${compilerAndVersion}`)\n }\n\n endGroup()\n}\n"],"mappings":";G2LII,CAAAA,CAAA,CWMAC,CAAA,CEFAC,CAAA,CSAAC,CAAA,CqDFAC,CAAA,ClFJAC,CAAA,CCAAC,CAAA,CCAAC,CAAA,C,8I5CSJ,QAAS,CAAAC,EAAOR,CAAI,CAAEC,CAAO,CAAEC,CAAE,EAM/B,GALuB,YAAnB,MAAO,CAAAD,CAAA,GACTC,CAAA,CAAKD,CAAA,CACLA,CAAA,CAAU,CAAC,GAGT,CAACC,CAAA,CAAI,CACP,GAAI,UAAmB,EAAnB,MAAO,CAAAO,OAAA,CACT,KAAM,CAAAC,SAAI,CAAU,yBAGtB,MAAO,IAAI,CAAAD,OAAA,CAAQ,SAAUP,CAAO,CAAEC,CAAM,EAC1CK,CAAA,CAAMR,CAAA,CAAMC,CAAA,EAAW,CAAC,EAAG,SAAUD,CAAE,CAAEC,CAAE,EACrCD,CAAA,CACFG,CAAA,CAA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,CAAY,kCACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,EACPC,MAAA,CAAO,YACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,qBACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,8BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,wBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,cACZC,QAAA,CAAS,MACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+CACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,UACPC,WAAA,CAAY,WACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,SACZC,QAAA,CAAS,QACTE,MAAA,CAAO,EACP,EACA,CACAtgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,gDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,oCACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,QACPC,WAAA,CAAY,qDACZC,QAAA,CAAS,OACT,EACA,CACApgC,IAAA,CAAK,SACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,mCACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,oBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,OACPC,WAAA,CAAY,eACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,YACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,UACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,WACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,SACPC,WAAA,CAAY,+BACZC,QAAA,CAAS,KACT,EACA,CACApgC,IAAA,CAAK,QACLigC,MAAA,CAAO,GACPC,MAAA,CAAO,YACPC,WAAA,CAAY,mBACZC,QAAA,CAAS,OACT,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ACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAGKiiB,EAAA,CAA6B,GAAI,CAAAtT,GAAA,CAAI,CAAC,SAAU,SAAU,SAAU,SAAS,EAG7EwT,EAAA,CAAiB,GAAI,CAAAxT,GAAA,CAAI,CAC7B,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,SACA,SAGA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACA,SACD,EAOKyT,EAAA,CAAiC,GAAI,CAAAugB,GAAA,GAQrCpgB,EAAA,CAA+C,CACnD,QAAS,gBACT,QAAS,GACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,eACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,QAAS,gBACT,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,sBAAuB,gBACvB,sBAAuB,gBACvB,SAAU,gBACV,sBAAuB,gBACvB,SAAU,gBAEV,SAAU,UACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,gBACV,SAAU,eACZ,EAGMC,EAAA,CAAqB,S,0CN3J3B,KAAM,CAAAG,EAAA,CAA6BxL,E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,CAAM78B,EAAA,CACNi7B,IAAA,CwFXK,QAAAA,CAAmB5+C,CAAe,CAAEC,CAAgB,CAAEC,CAAY,EACvE,MAAO,CAAA4V,EAAA,CAAS,OAAQ9V,CAAA,CAASqkB,EAAA,CAAoBpkB,CAAA,CAAUC,CAAA,CACjE,GxFUEugD,QAAA,CAAUnsC,EACZ,EAKawS,EAAA,CAAQ/kB,MAAA,CAAOuB,IAAI,CAAC+d,EAAA,EAMpBmE,EAAA,CAAwB,CAAC,WAAY,eAAgB,aAAcsB,EAAA,CAAM,C,6C7DqFtFlC,EAAA,CAAK3jB,OAAA,CAAQy/C,IAAI,EACd92C,IAAI,CAAC5J,CAAC,GACLiB,OAAA,CAAQkG,QAAQ,CAAGnH,CACrB,IACC0V,KAAK,CAAC1V,CAAC,GACN,GAAA4K,EAAA,CAAA3E,KAAI,EAAE,oBACN,GAAA2E,EAAA,CAAA3E,KAAI,EAAEjG,CAAA,EACNiB,OAAA,CAAQkG,QAAQ,CAAG,CACrB","ignoreList":[]} \ No newline at end of file diff --git a/src/utils/compat/fs/types.d.ts b/src/utils/compat/fs/types.d.ts new file mode 100644 index 00000000..62ae2ddf --- /dev/null +++ b/src/utils/compat/fs/types.d.ts @@ -0,0 +1,31 @@ +declare module "fs/promises" { + import * as fs from "fs" + export default fs.promises + + export const { + access, + appendFile, + chmod, + chown, + copyFile, + lchmod, + lchown, + link, + lstat, + mkdir, + mkdtemp, + open, + readdir, + readFile, + readlink, + realpath, + rename, + rmdir, + stat, + symlink, + truncate, + unlink, + utimes, + writeFile, + } = fs.promises +} diff --git a/src/utils/env/addEnv.ts b/src/utils/env/addEnv.ts index 2cdb13b0..9a9798a6 100644 --- a/src/utils/env/addEnv.ts +++ b/src/utils/env/addEnv.ts @@ -5,7 +5,7 @@ import { error, warning } from "ci-log" import escapeSpace from "escape-path-with-spaces" import escapeQuote from "escape-quotes" import { execPowershell } from "exec-powershell" -import { appendFileSync, readFile, readFileSync, writeFileSync } from "fs" +import { appendFile, readFile, writeFile } from "fs/promises" import { delimiter } from "path" import { pathExists } from "path-exists" import { untildifyUser } from "untildify-user" @@ -121,12 +121,12 @@ async function addEnvSystem(name: string, valGiven: string | undefined, options: } case "linux": case "darwin": { - await setupCppInProfile() + await sourceCpprc() if (options.shouldAddOnlyIfNotDefined) { - appendFileSync(cpprc_path, `\nif [ -z "\${${name}}" ]; then export ${name}="${val}"; fi\n`) + await appendFile(cpprc_path, `\nif [ -z "\${${name}}" ]; then export ${name}="${val}"; fi\n`) info(`if not defined ${name} then ${name}="${val}" was added to "${cpprc_path}`) } else { - appendFileSync(cpprc_path, `\nexport ${name}="${val}"\n`) + await appendFile(cpprc_path, `\nexport ${name}="${val}"\n`) info(`${name}="${val}" was added to "${cpprc_path}`) } return @@ -150,8 +150,8 @@ async function addPathSystem(path: string) { } case "linux": case "darwin": { - await setupCppInProfile() - appendFileSync(cpprc_path, `\nexport PATH="${path}:$PATH"\n`) + await sourceCpprc() + await appendFile(cpprc_path, `\nexport PATH="${path}:$PATH"\n`) info(`"${path}" was added to "${cpprc_path}"`) return } @@ -165,48 +165,20 @@ async function addPathSystem(path: string) { let setupCppInProfile_called = false /// handles adding conditions to source .cpprc file from .bashrc and .profile -export async function setupCppInProfile() { +export async function sourceCpprc() { if (setupCppInProfile_called) { return } - // a variable that prevents source_cpprc from being called from .bashrc and .profile - const source_cpprc_str = "# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0" - - if (await pathExists(cpprc_path)) { - const cpprc_content = readFileSync(cpprc_path, "utf8") - if (!cpprc_content.includes(source_cpprc_str)) { - // already executed setupCppInProfile - appendFileSync(cpprc_path, `\n${source_cpprc_str}\n`) - info(`Added ${source_cpprc_str} to ${cpprc_path}`) - } - } - - // source cpprc in bashrc/profile - const source_cpprc_string = `\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${cpprc_path}" ]]; then source "${cpprc_path}"; fi\n` try { - // source cpprc in .profile - const profile_path = untildifyUser("~/.profile") - if (await pathExists(profile_path)) { - const profileContent = readFileSync(profile_path, "utf-8") - if (!profileContent.includes(source_cpprc_string)) { - appendFileSync(profile_path, source_cpprc_string) - info(`${source_cpprc_string} was added to ${profile_path}`) - } - } - - // source cpprc in .bashrc too - const bashrc_path = untildifyUser("~/.bashrc") - if (await pathExists(bashrc_path)) { - const bashrcContent = readFileSync(bashrc_path, "utf-8") - if (!bashrcContent.includes(source_cpprc_string)) { - appendFileSync(bashrc_path, source_cpprc_string) - info(`${source_cpprc_string} was added to ${bashrc_path}`) - } - } + await Promise.all([ + addCpprcHeader(), + sourceCpprcInProfile(source_cpprc_string), + sourceCpprcInBashrc(source_cpprc_string), + ]) } catch (err) { warning(`Failed to add ${source_cpprc_string} to .profile or .bashrc. You should add it manually: ${err}`) } @@ -214,13 +186,49 @@ export async function setupCppInProfile() { setupCppInProfile_called = true } +async function addCpprcHeader() { + // a variable that prevents source_cpprc from being called from .bashrc and .profile + const cpprc_header = "# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0" + + if (await pathExists(cpprc_path)) { + const cpprc_content = await readFile(cpprc_path, "utf8") + if (!cpprc_content.includes(cpprc_header)) { + // already executed setupCppInProfile + await appendFile(cpprc_path, `\n${cpprc_header}\n`) + info(`Added ${cpprc_header} to ${cpprc_path}`) + } + } +} + +async function sourceCpprcInBashrc(source_cpprc_string: string) { + const bashrc_path = untildifyUser("~/.bashrc") + if (await pathExists(bashrc_path)) { + const bashrcContent = await readFile(bashrc_path, "utf-8") + if (!bashrcContent.includes(source_cpprc_string)) { + await appendFile(bashrc_path, source_cpprc_string) + info(`${source_cpprc_string} was added to ${bashrc_path}`) + } + } +} + +async function sourceCpprcInProfile(source_cpprc_string: string) { + const profile_path = untildifyUser("~/.profile") + if (await pathExists(profile_path)) { + const profileContent = await readFile(profile_path, "utf-8") + if (!profileContent.includes(source_cpprc_string)) { + await appendFile(profile_path, source_cpprc_string) + info(`${source_cpprc_string} was added to ${profile_path}`) + } + } +} + export async function finalizeCpprc() { if (await pathExists(cpprc_path)) { - const entries = readFileSync(cpprc_path, "utf-8").split("\n") + const entries = (await readFile(cpprc_path, "utf-8")).split("\n") const unique_entries = [...new Set(entries.reverse())].reverse() // remove duplicates, keeping the latest entry - writeFileSync(cpprc_path, unique_entries.join("\n")) + await writeFile(cpprc_path, unique_entries.join("\n")) await grantUserWriteAccess(cpprc_path) } diff --git a/src/utils/setup/setupAptPack.ts b/src/utils/setup/setupAptPack.ts index bfdd27cf..63146c92 100644 --- a/src/utils/setup/setupAptPack.ts +++ b/src/utils/setup/setupAptPack.ts @@ -2,7 +2,7 @@ import { execRoot, execRootSync } from "admina" import { GITHUB_ACTIONS } from "ci-info" import { promises as fsPromises } from "fs" import { pathExists } from "path-exists" -import { addEnv, cpprc_path, setupCppInProfile } from "../env/addEnv" +import { addEnv, cpprc_path, sourceCpprc } from "../env/addEnv" import { InstallationInfo } from "./setupBin" const { appendFile } = fsPromises import { info, warning } from "ci-log" @@ -223,7 +223,7 @@ export async function updateAptAlternatives(name: string, path: string, priority if (GITHUB_ACTIONS) { return execRoot("update-alternatives", ["--install", `/usr/bin/${name}`, name, path, priority.toString()]) } else { - await setupCppInProfile() + await sourceCpprc() return appendFile( cpprc_path, `\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${name} ${name} ${path} ${priority}; fi\n`,